chore: refactor
This commit is contained in:
parent
7be19f3b9b
commit
19a5af8798
@ -1,14 +1,7 @@
|
||||
#import "fontawesome.typ": fa, globe, github, linkedin, envelope
|
||||
#import "lib.typ": template, education_entry, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG
|
||||
|
||||
#set page(margin: 1.75in)
|
||||
#set par(leading: 0.5em, first-line-indent: 1.8em, justify: true)
|
||||
#show par: set block(spacing: 0.55em)
|
||||
#show heading: set block(above: 2em, below: 1em)
|
||||
|
||||
#set list(indent: 1em)
|
||||
|
||||
// Change the theme color of the cv.
|
||||
// orange!!
|
||||
#let color = rgb("#ff983e")
|
||||
#let name = "Daniel Chen"
|
||||
|
||||
@ -39,11 +32,6 @@
|
||||
|
||||
// MAIN CONTENT STARTS here
|
||||
|
||||
// TODO: make lines more impactful
|
||||
// introduce some bolding (a lighter gray) to highlight things
|
||||
// improve readability / ideally increase line height
|
||||
// rn it looks like a wall of text
|
||||
|
||||
= Skills
|
||||
|
||||
#indent[
|
||||
|
30
lib.typ
30
lib.typ
@ -3,6 +3,20 @@
|
||||
#let DEFAULT_STRONG = 300;
|
||||
#let SMALL_STRONG = 200;
|
||||
|
||||
#let TITLE_FONT = "Bitter"
|
||||
#let HEADING_FONT = TITLE_FONT
|
||||
#let BODY_FONT = "Open Sans"
|
||||
|
||||
#let BODY_FONT_SIZE = 10pt
|
||||
#let HEADING_FONT_SIZE = 1em
|
||||
#let TITLE_FONT_SIZE = 2em
|
||||
|
||||
#let HEADING_LINE_GAP = 3mm
|
||||
#let BODY_LINE_HEIGHT = 0.85em
|
||||
|
||||
// rest = not top
|
||||
#let PAGE_MARGINS = (rest: 0.5in, top: 0.4in)
|
||||
|
||||
// Format start and end dates.
|
||||
#let format_date(start_date: none, end_date: none) = {
|
||||
let date = {
|
||||
@ -116,15 +130,13 @@
|
||||
|
||||
// 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 page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||
set list(indent: 1.25em, marker: [•])
|
||||
set text(font: (BODY_FONT), 10pt)
|
||||
set par(justify: true, leading: 0.85em)
|
||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
||||
align(center)[
|
||||
#text(size: 2em, font: TITLE_FONT, fill: color)[*#name*]
|
||||
#text(size: TITLE_FONT_SIZE, font: TITLE_FONT, fill: color)[*#name*]
|
||||
#block(above: 0em, below: 1em)
|
||||
#{
|
||||
if contact_data != none and contact_data.len() > 0 {
|
||||
@ -143,7 +155,7 @@
|
||||
let size = measure(header_text, styles)
|
||||
|
||||
// 100% - spacing - width of text
|
||||
line(length: 100% - 3mm - size.width, stroke: (paint: color, thickness: 2pt, cap: "round"))
|
||||
line(length: 100% - HEADING_LINE_GAP - size.width, stroke: (paint: color, thickness: 2pt, cap: "round"))
|
||||
})
|
||||
|
||||
// add line to right of heading
|
||||
@ -152,7 +164,7 @@
|
||||
set text(size: 1em, fill: color, font: HEADING_FONT)
|
||||
stack(
|
||||
dir: ltr,
|
||||
spacing: 3mm,
|
||||
spacing: HEADING_LINE_GAP,
|
||||
title,
|
||||
box(
|
||||
height: 2pt,
|
||||
|
Loading…
Reference in New Issue
Block a user