Skip to content

Commit

Permalink
Merge pull request #42 from ruidajo/main
Browse files Browse the repository at this point in the history
Updating the FontAwesome dependency and modifying the template const icons.
  • Loading branch information
DeveloperPaul123 authored Jul 9, 2024
2 parents d97b816 + a6a6108 commit 1c6e9e4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 175 deletions.
165 changes: 0 additions & 165 deletions assets/icons/LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion assets/icons/square-phone-solid.svg

This file was deleted.

26 changes: 17 additions & 9 deletions lib.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/fontawesome:0.1.0": *
#import "@preview/fontawesome:0.2.1": *
#import "@preview/linguify:0.4.0": *

// const color
Expand All @@ -9,13 +9,12 @@

// const icons
#let linkedin-icon = box(
fa-icon("linkedin", fa-set: "Brands", fill: color-darknight),
fa-icon("linkedin", fill: color-darknight),
)
#let github-icon = box(
fa-icon("github", fa-set: "Brands", fill: color-darknight),
fa-icon("github", fill: color-darknight),
)
// for some reason this icon doesn't work with fa-icon, so we use the local version
#let phone-icon = box(image("assets/icons/square-phone-solid.svg"))
#let phone-icon = box(fa-icon("square-phone", fill: color-darknight))
#let email-icon = box(fa-icon("envelope", fill: color-darknight))

/// Helpers
Expand Down Expand Up @@ -61,7 +60,7 @@
set box(height: 11pt)

align(right + horizon)[
#fa-icon("github", fa-set: "Brands", fill: color-darkgray) #link(
#fa-icon("github", fill: color-darkgray) #link(
"https://github.com/" + github-path,
github-path,
)
Expand Down Expand Up @@ -245,7 +244,10 @@
font: ("Roboto"),
)
#if language == "zh" or language == "ja" [
#text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname]
#text(
accent-color,
weight: "thin",
)[#author.firstname]#text(weight: "bold")[#author.lastname]
] else [
#text(accent-color, weight: "thin")[#author.firstname]
#text(weight: "bold")[#author.lastname]
Expand Down Expand Up @@ -512,7 +514,10 @@
font: ("Roboto"),
)
#if language == "zh" or language == "ja" [
#text(accent-color, weight: "thin")[#author.firstname]#text(weight: "bold")[#author.lastname]
#text(
accent-color,
weight: "thin",
)[#author.firstname]#text(weight: "bold")[#author.lastname]
] else [
#text(accent-color, weight: "thin")[#author.firstname]
#text(weight: "bold")[#author.lastname]
Expand Down Expand Up @@ -620,7 +625,10 @@
let letter-conclusion = {
align(bottom)[
#pad(bottom: 2em)[
#text(weight: "light")[#linguify("sincerely", from: lang_data)#sym.comma] \
#text(weight: "light")[#linguify(
"sincerely",
from: lang_data,
)#sym.comma] \
#text(weight: "bold")[#author.firstname #author.lastname] \ \
#text(weight: "light", style: "italic")[ #linguify(
"attached",
Expand Down

0 comments on commit 1c6e9e4

Please sign in to comment.