feat: andrew and james review

This commit is contained in:
eggy
2023-12-13 21:58:12 -05:00
parent 00659263f9
commit 23e9324077
2 changed files with 75 additions and 53 deletions

33
lib.typ
View File

@@ -1,4 +1,4 @@
#import "fontawesome.typ": github, fa
#import "fontawesome.typ": github, fa, link-icon
#let DEFAULT_STRONG = 300;
#let SMALL_STRONG = 200;
@@ -8,8 +8,8 @@
#let BODY_FONT = "Open Sans"
#let BODY_FONT_SIZE = 10pt
#let HEADING_FONT_SIZE = 1em
#let TITLE_FONT_SIZE = 2.25em
#let HEADING_FONT_SIZE = 0.95em
#let TITLE_FONT_SIZE = 2em
#let HEADING_LINE_GAP = 3mm
#let BODY_LINE_HEIGHT = 0.85em
@@ -31,7 +31,7 @@
stack(
dir: ttb,
spacing: 0.9em,
grid(columns: (11fr, 6fr), column-gutter: 1cm, {
grid(columns: (11fr, 3fr), column-gutter: 1cm, {
set strong(delta: DEFAULT_STRONG)
set align(left)
left_content
@@ -52,6 +52,7 @@
#let work_entry(
role,
company,
tools: none,
tasks: none,
start_date: none,
end_date: none,
@@ -69,9 +70,15 @@
cv_entry(left_content: {
set par(leading: 0.75em)
text(1.1em)[*#role*]
if tools != none {
text[ | _ #tools _]
}
"\n"
set strong(delta: SMALL_STRONG)
text[*#company*]
}, right_content: {
[*#start_date -- #end_date*]
@@ -81,13 +88,23 @@
}, details: task_list)
}
#let project(title, repo_link, tools) = {
#let project(title, tools, repo_link: none, demo_link: none) = {
set strong(delta: DEFAULT_STRONG)
if repo_link != none {
link(repo_link)[#text(1.1em)[*#title* #fa(github)]] + [ | _ #tools _ ]
let text_link = if demo_link != none { demo_link } else { repo_link }
if text_link != none {
link(text_link)[#text(1.1em)[*#title*]]
} else {
text(1.1em)[*#title*] + [ | _ #tools _ ]
text(1.1em)[*#title*]
}
if demo_link != none {
link(demo_link)[#text(1.1em)[ #fa(link-icon)]]
}
if repo_link != none {
link(repo_link)[#text(1.1em)[ #fa(github)]]
}
[ | _ #tools _ ]
}
// Set name and contact data and format headings