feat: better spacings

This commit is contained in:
eggy 2024-06-17 23:30:08 -04:00
parent 33f4f2520c
commit f056b8f434
2 changed files with 25 additions and 31 deletions

View File

@ -32,7 +32,7 @@
= Skills = Skills
#indent[ #indent[
*Languages:* Python, TypeScript, JavaScript, SQL, Rust, C++, Java, HTML/CSS \ *Languages:* Python, TypeScript, JavaScript, SQL, Rust, C/C++, Java, HTML/CSS \
// Dart, Ruby // Dart, Ruby
*Technologies:* Node.js, React, Vue, Next.js, Spring Boot, Express, Prisma, Axum *Technologies:* Node.js, React, Vue, Next.js, Spring Boot, Express, Prisma, Axum
\ \
@ -206,7 +206,7 @@
#indent[ #indent[
#work_entry( #work_entry(
"B.A.Sc. in Computer Engineering", "B.A.Sc. in Computer Engineering (Honours, Co-op)",
"University of Waterloo", "University of Waterloo",
start_date: "Sep 2022", start_date: "Sep 2022",
end_date: "Apr 2027", end_date: "Apr 2027",

52
lib.typ
View File

@ -3,20 +3,24 @@
#let DEFAULT_STRONG = 300; #let DEFAULT_STRONG = 300;
#let SMALL_STRONG = 200; #let SMALL_STRONG = 200;
#let TITLE_FONT = "New Computer Modern" #let TITLE_FONT = "Bitter"
#let HEADING_FONT = TITLE_FONT #let HEADING_FONT = TITLE_FONT
#let BODY_FONT = "New Computer Modern" #let BODY_FONT = "Open Sans"
#let BODY_FONT_SIZE = 11.5pt #let BODY_FONT_SIZE = 10pt
#let HEADING_FONT_SIZE = 0.95em #let HEADING_FONT_SIZE = 0.9em
#let TITLE_FONT_SIZE = 2em #let TITLE_FONT_SIZE = 1.8em
#let HEADING_LINE_GAP = 3mm #let HEADING_LINE_GAP = 3mm
#let BODY_LINE_HEIGHT = 0.65em #let BODY_LINE_HEIGHT = 0.75em
#let BODY_LINE_SPACING = 0.75em
#let HEADING_DETAILS_LIST_SPACING = 1em
#let DETAILS_TITLE_FONT_SIZE = 1em
#let DETAILS_LIST_SPACING = 0.9em
// rest = not top // rest = not top
#let PAGE_MARGINS = (right: 0.5in, rest: 0.4in) #let PAGE_MARGINS = (right: 0.4in, rest: 0.3in)
// Format locations. // Format locations.
#let format_location(location) = { #let format_location(location) = {
@ -31,8 +35,8 @@
#let cv_entry(left_content: none, right_content: none, details: none) = { #let cv_entry(left_content: none, right_content: none, details: none) = {
stack( stack(
dir: ttb, dir: ttb,
spacing: 0.75em, spacing: HEADING_DETAILS_LIST_SPACING,
grid(columns: (9fr, 5fr), column-gutter: 1cm, { grid(columns: (11fr, 3fr), column-gutter: 1cm, {
set strong(delta: DEFAULT_STRONG) set strong(delta: DEFAULT_STRONG)
set align(left) set align(left)
left_content left_content
@ -42,9 +46,8 @@
right_content right_content
}), }),
{ {
set align(left)
set strong(delta: SMALL_STRONG) set strong(delta: SMALL_STRONG)
details list(tight: false, spacing: DETAILS_LIST_SPACING, marker: [•], ..details)
}, },
) )
} }
@ -59,24 +62,19 @@
end_date: none, end_date: none,
location: none, location: none,
) = { ) = {
let task_list = if tasks != none {
let list = []
for task in tasks {
list += [- #task]
}
list
} else {
none
}
cv_entry(left_content: { cv_entry(left_content: {
set par(justify: true) 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: { }, right_content: {
[#start_date -- #end_date] [_#start_date -- #end_date _]
// if location != none { // if location != none {
// format_location(location) // format_location(location)
// } // }
}, details: task_list) }, details: tasks)
} }
#let project(title, tools, repo_link: none, demo_link: none) = { #let project(title, tools, repo_link: none, demo_link: none) = {
@ -114,11 +112,7 @@
set text(font: (BODY_FONT), BODY_FONT_SIZE) set text(font: (BODY_FONT), BODY_FONT_SIZE)
set par(leading: BODY_LINE_HEIGHT) set par(leading: BODY_LINE_HEIGHT)
align(center)[ align(center)[
#text( #text(size: TITLE_FONT_SIZE, font: TITLE_FONT, fill: color)[*#name*]
size: TITLE_FONT_SIZE,
font: TITLE_FONT,
fill: color,
)[#smallcaps[*#name*]]
#block(above: 0em, below: 1em) #block(above: 0em, below: 1em)
] ]