diff --git a/Daniel Chen.typ b/Daniel Chen.typ index 397b34d..b8a6b78 100644 --- a/Daniel Chen.typ +++ b/Daniel Chen.typ @@ -1,5 +1,5 @@ #import "fontawesome.typ": fa, globe, github, linkedin, envelope -#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG +#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG, render_contact_data // orange!! #let color = blue // rgb("#ff983e") @@ -23,10 +23,15 @@ link: "mailto://d7chen@uwaterloo.ca", ),) -#show: doc => template(name, contact_data, color, doc) +#show: doc => template(name, color, doc) + +#render_contact_data(contact_data) // MAIN CONTENT STARTS here +// *_Do you know the muffin man? / The muffin man, the muffin man / Do you know the +// muffin man? / Who lives on Drury Lane?_* + = Skills #indent[ @@ -116,8 +121,6 @@ rate limiting as a stopgap], [Reduced event check-in times by *80%* for *1900+ attendees* by generating digital wallet passes over Express], - [*Led and mentored a team of 6* to ideate, scope, and deliver features for - *Canada's largest hackathon*], ), ) ] diff --git a/lib.typ b/lib.typ index 59bbc6c..51defa4 100644 --- a/lib.typ +++ b/lib.typ @@ -106,8 +106,17 @@ [ | _ #tools _ ] } +#let render_contact_data(data) = { + align(center)[ + #let elements = for el in data { + (link(el.link)[#{ el.service + " " + el.display }],) + } + #text(1em)[#elements.join(" | ")] + ] +} + // Set name and contact data and format headings -#let template(name, contact_data, color, doc) = { +#let template(name, color, doc) = { set page(margin: PAGE_MARGINS, paper: "us-letter") set list(indent: 1em, marker: [•]) set text(font: (BODY_FONT), BODY_FONT_SIZE) @@ -115,14 +124,6 @@ align(center)[ #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 { - let elements = for el in contact_data { - (link(el.link)[#{ el.service + " " + el.display }],) - } - text(1em)[#elements.join(" | ")] - } - } ] show heading.where(level: 1): i => {