Make it orange (#1)
And make it much much prettier! Co-authored-by: eggy <danielchen04@hotmail.ca> Reviewed-on: https://git.eggworld.me/eggy/resume/pulls/1
This commit is contained in:
45
lib.typ
45
lib.typ
@@ -1,10 +1,7 @@
|
||||
#import "fontawesome.typ": github, fa
|
||||
// Reduce space between paragraphs.
|
||||
#let par_space = 0.75em
|
||||
// Reduce space between headings and descriptions.
|
||||
#let sep_space = par_space + 0.1em
|
||||
|
||||
#let subtitle_space = par_space - 0.2em
|
||||
#let DEFAULT_STRONG = 300;
|
||||
#let SMALL_STRONG = 200;
|
||||
|
||||
// Format start and end dates.
|
||||
#let format_date(start_date: none, end_date: none) = {
|
||||
@@ -46,12 +43,14 @@
|
||||
left_content
|
||||
},
|
||||
{
|
||||
set strong(delta: SMALL_STRONG)
|
||||
set align(right)
|
||||
right_content
|
||||
}
|
||||
),
|
||||
{
|
||||
set align(left)
|
||||
set strong(delta: SMALL_STRONG)
|
||||
details
|
||||
}
|
||||
)
|
||||
@@ -70,6 +69,7 @@
|
||||
}
|
||||
cv_entry(
|
||||
left_content: {
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
text(1.2em)[*#university*] + "\n" + emph[#degree]
|
||||
},
|
||||
right_content: {
|
||||
@@ -110,17 +110,21 @@
|
||||
}
|
||||
|
||||
#let project(title, repo_link, tools) = {
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
link(repo_link)[#text(1.1em)[*#title* #fa(github)]] + [ | _ #tools _]
|
||||
}
|
||||
|
||||
// Set name and contact data and format headings
|
||||
#let template(name, contact_data, color, doc) = {
|
||||
let TITLE_FONT = "Bitter"
|
||||
let HEADING_FONT = "Bitter"
|
||||
let BODY_FONT = "Open Sans"
|
||||
set page(margin: (rest: 0.5in, top: 0.4in), paper: "us-letter")
|
||||
set list(indent: 1.25em, marker: [•])
|
||||
set text(font: "Latin Modern Sans", 11pt)
|
||||
set par(justify: true, leading: 0.65em)
|
||||
set text(font: (BODY_FONT), 10pt)
|
||||
set par(justify: true, leading: 0.85em)
|
||||
align(center)[
|
||||
#text(size: 2em)[*#name*]
|
||||
#text(size: 2em, font: TITLE_FONT, fill: color)[*#name*]
|
||||
#block(above: 0em, below: 1em)
|
||||
#{
|
||||
if contact_data != none and contact_data.len() > 0 {
|
||||
@@ -133,16 +137,29 @@
|
||||
]
|
||||
|
||||
show heading.where(level: 1): i => {
|
||||
set align(left)
|
||||
set align(left + horizon)
|
||||
let title = smallcaps(i.body)
|
||||
let colored_line(header_text) = style(styles => {
|
||||
let size = measure(header_text, styles)
|
||||
|
||||
set block(above: 1em)
|
||||
set text(weight: "light", size: 0.9em, fill: color, font: "New Computer Modern")
|
||||
// 100% - spacing - width of text
|
||||
line(length: 100% - 3mm - size.width, stroke: (paint: color, thickness: 2pt, cap: "round"))
|
||||
})
|
||||
|
||||
// add line to right of heading
|
||||
|
||||
set block(above: 0.9em, below: 0.75em)
|
||||
set text(size: 1em, fill: color, font: HEADING_FONT)
|
||||
stack(
|
||||
dir: ttb,
|
||||
spacing: 1.5mm,
|
||||
dir: ltr,
|
||||
spacing: 3mm,
|
||||
title,
|
||||
line(length: 100%, stroke: color + 0.4pt)
|
||||
box(
|
||||
height: 2pt,
|
||||
fill: color,
|
||||
colored_line(title)
|
||||
)
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user