From f056b8f434de6cecb5cf8fb108b2a8c2565c8643 Mon Sep 17 00:00:00 2001 From: eggy Date: Mon, 17 Jun 2024 23:30:08 -0400 Subject: [PATCH] feat: better spacings --- Daniel Chen.typ | 4 ++-- lib.typ | 52 ++++++++++++++++++++++--------------------------- 2 files changed, 25 insertions(+), 31 deletions(-) diff --git a/Daniel Chen.typ b/Daniel Chen.typ index 3bcb738..3ec76f5 100644 --- a/Daniel Chen.typ +++ b/Daniel Chen.typ @@ -32,7 +32,7 @@ = Skills #indent[ - *Languages:* Python, TypeScript, JavaScript, SQL, Rust, C++, Java, HTML/CSS \ + *Languages:* Python, TypeScript, JavaScript, SQL, Rust, C/C++, Java, HTML/CSS \ // Dart, Ruby *Technologies:* Node.js, React, Vue, Next.js, Spring Boot, Express, Prisma, Axum \ @@ -206,7 +206,7 @@ #indent[ #work_entry( - "B.A.Sc. in Computer Engineering", + "B.A.Sc. in Computer Engineering (Honours, Co-op)", "University of Waterloo", start_date: "Sep 2022", end_date: "Apr 2027", diff --git a/lib.typ b/lib.typ index 97d3619..c1be0be 100644 --- a/lib.typ +++ b/lib.typ @@ -3,20 +3,24 @@ #let DEFAULT_STRONG = 300; #let SMALL_STRONG = 200; -#let TITLE_FONT = "New Computer Modern" +#let TITLE_FONT = "Bitter" #let HEADING_FONT = TITLE_FONT -#let BODY_FONT = "New Computer Modern" +#let BODY_FONT = "Open Sans" -#let BODY_FONT_SIZE = 11.5pt -#let HEADING_FONT_SIZE = 0.95em -#let TITLE_FONT_SIZE = 2em +#let BODY_FONT_SIZE = 10pt +#let HEADING_FONT_SIZE = 0.9em +#let TITLE_FONT_SIZE = 1.8em #let HEADING_LINE_GAP = 3mm -#let BODY_LINE_HEIGHT = 0.65em -#let BODY_LINE_SPACING = 0.75em +#let BODY_LINE_HEIGHT = 0.75em + +#let HEADING_DETAILS_LIST_SPACING = 1em +#let DETAILS_TITLE_FONT_SIZE = 1em + +#let DETAILS_LIST_SPACING = 0.9em // rest = not top -#let PAGE_MARGINS = (right: 0.5in, rest: 0.4in) +#let PAGE_MARGINS = (right: 0.4in, rest: 0.3in) // Format locations. #let format_location(location) = { @@ -31,8 +35,8 @@ #let cv_entry(left_content: none, right_content: none, details: none) = { stack( dir: ttb, - spacing: 0.75em, - grid(columns: (9fr, 5fr), column-gutter: 1cm, { + spacing: HEADING_DETAILS_LIST_SPACING, + grid(columns: (11fr, 3fr), column-gutter: 1cm, { set strong(delta: DEFAULT_STRONG) set align(left) left_content @@ -42,9 +46,8 @@ right_content }), { - set align(left) set strong(delta: SMALL_STRONG) - details + list(tight: false, spacing: DETAILS_LIST_SPACING, marker: [•], ..details) }, ) } @@ -59,24 +62,19 @@ end_date: none, location: none, ) = { - let task_list = if tasks != none { - let list = [] - for task in tasks { - list += [- #task] - } - list - } else { - none - } cv_entry(left_content: { set par(justify: true) - text[*#company* | _#role _] + text(DETAILS_TITLE_FONT_SIZE)[*#company* | _#role _] + + if tools != none { + text(DETAILS_TITLE_FONT_SIZE)[ | *#tools* ] + } }, right_content: { - [#start_date -- #end_date] + [_#start_date -- #end_date _] // if location != none { // format_location(location) // } - }, details: task_list) + }, details: tasks) } #let project(title, tools, repo_link: none, demo_link: none) = { @@ -114,11 +112,7 @@ set text(font: (BODY_FONT), BODY_FONT_SIZE) set par(leading: BODY_LINE_HEIGHT) align(center)[ - #text( - size: TITLE_FONT_SIZE, - font: TITLE_FONT, - fill: color, - )[#smallcaps[*#name*]] + #text(size: TITLE_FONT_SIZE, font: TITLE_FONT, fill: color)[*#name*] #block(above: 0em, below: 1em) ]