Compare commits
36 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
23e9324077 | ||
|
00659263f9 | ||
|
197699e63b | ||
|
b8e5b47b0b | ||
|
45b4a6b7e6 | ||
|
4705415045 | ||
|
c09d0bdc1a | ||
|
18ebf61e9b | ||
|
8b5a085447 | ||
|
f078060477 | ||
|
5eadcfe0ba | ||
|
10889dba25 | ||
|
6bfc3273c0 | ||
|
f0e9e96fe4 | ||
|
baa386a39e | ||
|
f9b8dd6b0e | ||
|
d165a1b259 | ||
|
2cddfcbf6e | ||
|
de8fb56d48 | ||
|
0f0ff6ba1f | ||
|
1591bdaba5 | ||
|
7d289c8757 | ||
|
2d4d0dd6d4 | ||
|
6e8763b88d | ||
|
08201c3406 | ||
|
dd3d479a92 | ||
|
2694b2e9eb | ||
|
d0d224ba04 | ||
|
1ab736b2d5 | ||
|
e26e2cbeb2 | ||
|
250150f9a1 | ||
|
d380bd6724 | ||
|
987f255a87 | ||
|
19a5af8798 | ||
|
7be19f3b9b | ||
|
dce7a94677 |
194
Daniel Chen.typ
194
Daniel Chen.typ
@@ -1,129 +1,163 @@
|
|||||||
#import "fontawesome.typ": *
|
#import "fontawesome.typ": fa, globe, github, linkedin, envelope
|
||||||
#import "lib.typ": template, education_entry, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG
|
#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG
|
||||||
|
|
||||||
#set page(margin: 1.75in)
|
// orange!!
|
||||||
#set par(leading: 0.5em, first-line-indent: 1.8em, justify: true)
|
#let color = blue // rgb("#ff983e")
|
||||||
#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.
|
|
||||||
#let color = rgb("#ff983e")
|
|
||||||
#let name = "Daniel Chen"
|
#let name = "Daniel Chen"
|
||||||
|
|
||||||
#let contact_data = (
|
#let contact_data = ((
|
||||||
(
|
|
||||||
service: fa[#globe],
|
service: fa[#globe],
|
||||||
display: "eggworld.me",
|
display: "eggworld.me",
|
||||||
link: "https://eggworld.me"
|
link: "https://eggworld.me",
|
||||||
),
|
), (
|
||||||
(
|
|
||||||
service: fa[#github],
|
service: fa[#github],
|
||||||
display: "github.com/potatoeggy",
|
display: "github.com/potatoeggy",
|
||||||
link: "https://github.com/potatoeggy"
|
link: "https://github.com/potatoeggy",
|
||||||
),
|
), (
|
||||||
(
|
|
||||||
service: fa[#linkedin],
|
service: fa[#linkedin],
|
||||||
display: "linkedin.com/in/potatoeggy",
|
display: "linkedin.com/in/potatoeggy",
|
||||||
link: "https://www.linkedin.com/in/potatoeggy/"
|
link: "https://www.linkedin.com/in/potatoeggy/",
|
||||||
),
|
), (
|
||||||
(
|
|
||||||
service: fa[#envelope],
|
service: fa[#envelope],
|
||||||
display: "d7chen@uwaterloo.ca",
|
display: "d7chen@uwaterloo.ca",
|
||||||
link: "mailto://d7chen@uwaterloo.ca"
|
link: "mailto://d7chen@uwaterloo.ca",
|
||||||
),
|
),)
|
||||||
)
|
|
||||||
|
|
||||||
#show: doc => template(name, contact_data, color, doc)
|
#show: doc => template(name, contact_data, color, doc)
|
||||||
|
|
||||||
// MAIN CONTENT STARTS here
|
// 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
|
= Skills
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
*Languages*: Python, TypeScript/JavaScript, Rust, SQL, C++, Java, HTML, CSS \
|
*Languages:* Python, TypeScript, JavaScript, Rust, SQL, C++, Java,
|
||||||
*Frameworks*: Node.js, Express, React, Next.js, Vue, Flutter, Qt, Prisma, Apollo, Axum \
|
HTML, CSS \
|
||||||
*Tools*: Linux, Git, Docker, PostgreSQL, Redis, Kubernetes, AWS, GCP, OpenTelemetry, GraphQL
|
// MATLAB, Dart, C
|
||||||
|
*Frameworks:* Node.js, Express, React, Next.js, Vue, Flutter, Axum \
|
||||||
|
// Qt, Jest / Pytest, Apollo, Prisma
|
||||||
|
*Tools:* Linux, Git, Docker, PostgreSQL, Redis, Kubernetes, AWS, GCP,
|
||||||
|
OpenTelemetry, GraphQL, Android
|
||||||
]
|
]
|
||||||
|
|
||||||
= Experience
|
= Experience
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
#work_entry(
|
#work_entry(
|
||||||
"Software Engineering Intern",
|
"Software Engineering Intern",
|
||||||
"Dropbase",
|
"Dropbase",
|
||||||
start_date: "May 2023", end_date: "Aug 2023",
|
start_date: "May 2023",
|
||||||
location: "San Francisco, CA (Remote)",
|
end_date: "Aug 2023",
|
||||||
|
location: "San Francisco, CA",
|
||||||
|
tools: "Python, TypeScript, FastAPI, AWS, React, Pytest",
|
||||||
tasks: (
|
tasks: (
|
||||||
[Automated synchronising Airtable and HubSpot APIs with Google Sheets via *AWS Lambda*],
|
[Designed a conflict resolution algorithm for business smart tables, *reducing
|
||||||
[Engineered a *heuristic algorithm* for resolving *SQL* aliases for database-specific editor autocompletion],
|
unrecoverable errors by 75%*],
|
||||||
[Refactored the frontend to use *react-hook-form* to aggregate and validate user input, improving DX],
|
[Shipped a HubSpot/Airtable to Google Sheets sync feature to *46000+ enterprise
|
||||||
[Built a service for importing and validating CSV/Excel files from personalised email addresses into databases],
|
users* by writing *AWS Lambda* functions in Python, abstracting interfaces to
|
||||||
|
easily support future sources],
|
||||||
|
[Wrote and deployed a new *React* data query builder to *33000+ users* by
|
||||||
|
standardising and enforcing protocols between interfaces across the stack,
|
||||||
|
eliminating the need for business users to manually write API calls],
|
||||||
|
[Launched a service to validate and import CSV/Excel attachments into DBs by
|
||||||
|
expanding engine support by *6x*],
|
||||||
|
[*Reduced request errors by 30%* by creating backend testing infrastructure with
|
||||||
|
*Pytest* to catch regressions and test new features across database engines with
|
||||||
|
*90% code coverage*],
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
#work_entry(
|
#work_entry(
|
||||||
"Backend Developer",
|
"Backend Developer & Organiser",
|
||||||
"Techyon",
|
"Hack the North",
|
||||||
start_date: "Mar 2023", end_date: "present",
|
start_date: "Mar 2023",
|
||||||
|
end_date: "present",
|
||||||
location: "Waterloo, ON",
|
location: "Waterloo, ON",
|
||||||
|
tools: "TypeScript, GraphQL, Docker, Kubernetes, Jest",
|
||||||
tasks: (
|
tasks: (
|
||||||
[Integrated *OpenTelemetry* and Grafana into a *Kubernetes* cluster to collect traces and improve observability],
|
[Streamlined event check-in times by *80%* by generating user-specific Apple Wallet passes over *Express*],
|
||||||
[Dynamically generated Apple Wallet pass files over *Apollo GraphQL* Server to streamline registration],
|
[Horizontally scaled the *Node* server to handle *1000+ concurrent users* with
|
||||||
[Automated judge-to-hacker matching and scheduling with a custom algorithm based on their preferences],
|
*Redis* and *Kubernetes*],
|
||||||
[Organised Canada's largest hackathon with more than 1000 attendees and 6000 applicants],
|
[Integrated backend *tracing* to monitor performance and trigger alerts with
|
||||||
|
*OpenTelemetry* and *Grafana*],
|
||||||
|
[Deployed a new attendee bus registration platform by creating new database
|
||||||
|
tables and *GraphQL* resolvers],
|
||||||
|
[Slashed boot and reload times by *93%* by introducing *threading, profiling*,
|
||||||
|
and pre-transpiling generated code],
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)
|
|
||||||
]
|
]
|
||||||
|
|
||||||
= Projects
|
= Projects
|
||||||
#set strong(delta: SMALL_STRONG)
|
#set strong(delta: SMALL_STRONG)
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
#project("Mandown Comic Converter", "https://github.com/potatoeggy/mandown", "Python, Qt")
|
#project("Comic Downloader", "Python, Qt",
|
||||||
- Developed a CLI to scrape, download, and convert online comics into e-ink friendly formats
|
repo_link: "https://github.com/potatoeggy/mandown")
|
||||||
- Abstracted 4 ebook creation libraries into a common comic conversion API for e-ink devices
|
- Created a CLI and GUI to scrape, download, and convert webcomics into
|
||||||
- Implemented *image caching and multiprocessing* to increase download and update speeds by *300%*
|
e-ink-optimised ebooks (EPUB, PDF)
|
||||||
- Minimised regressions between release cycles by writing *unit and integration tests* with 55% code coverage
|
- Designed an *intermediate representation* to store metadata and images as a
|
||||||
|
standardised conversion target
|
||||||
|
- Implemented *image caching and multiprocessing* to increase download and update
|
||||||
|
speeds by *300%*
|
||||||
|
|
||||||
#project("Primoprod Genshin Simulator", "https://github.com/potatoeggy/primoprod", "Vue, TypeScript")
|
#project(
|
||||||
- Created an interactive, realistic, cross-platform game simulator with fluid animations based off a popular game
|
"Genshin Simulator",
|
||||||
- Constructed an extensible JSON data schema to concisely simplify adding new game content
|
"Vue, TypeScript",
|
||||||
|
repo_link: "https://github.com/potatoeggy/primoprod",
|
||||||
|
demo_link: "https://primoprod.vercel.app"
|
||||||
|
)
|
||||||
|
- Built a realistic and beautiful *loot box simulator* with fluid animations based
|
||||||
|
off a popular game
|
||||||
|
- Reduced action latency by *90%* by lazily loading art assets at opportune times,
|
||||||
|
such as during cutscenes
|
||||||
|
|
||||||
// #project("Kobink — Kobo Sync Server", "https://github.com/potatoeggy/kobink", "Rust, Axum, Postgres")
|
#project("Kobo Sync Server", "Rust, Axum", repo_link: "https://github.com/potatoeggy/kobink")
|
||||||
// - ??? something here (reverse engineering)
|
- Developed an Axum backend to *automatically convert and sync* ebooks to a Kobo
|
||||||
// - ??? something here (synchronisation and DB, HTTP headers)
|
eReader over the network
|
||||||
|
- *Reverse-engineered* the Kobo eReader Sync API to support updating ebook
|
||||||
|
metadata and covers
|
||||||
|
|
||||||
#project("RecipeReady Recipe Aggregator", "https://github.com/vincentjguo/recipeready-server", "Flutter, Selenium, FastAPI, Android")
|
// #project(
|
||||||
- Developed a cross-platform mobile/web app to generate recipes based on ingredients and dietary restrictions
|
// "RecipeReady",
|
||||||
- Scraped thousands of websites for recipes to build a database with a robust *many-to-many tag system*
|
// "https://github.com/vincentjguo/recipeready-server",
|
||||||
- Aggregated common ingredients heuristically to build a shopping list and a meal plan for each week
|
// "Flutter, Selenium, FastAPI, Android",
|
||||||
|
// )
|
||||||
|
// - Developed a *Flutter app* to generate recipes based on ingredients and filters
|
||||||
|
// through a FastAPI server
|
||||||
|
// - Scraped thousands of websites for recipes to build a database with a robust
|
||||||
|
// *many-to-many tag system*
|
||||||
|
// - Aggregated common ingredients heuristically to build a shopping list and a meal
|
||||||
|
// plan for each week
|
||||||
|
|
||||||
#project("Box Box Revolution", "https://github.com/potatoeggy/boxboxrevolution", "Rust, STM32")
|
#project("Arch Linux Server", "Linux, Docker, nginx, systemd", demo_link: "https://eggworld.me")
|
||||||
- Developed a rhythm game to detect punches with an ultrasonic sensor in line wth notes of popular songs
|
- Created a *self-hosted CI/CD pipeline* with *Gitea* to automatically deploy
|
||||||
- Developed firmware to measure from an ultrasonic sensor, tone a buzzer, and show scrolling notes on an LCD
|
personal projects behind *nginx*
|
||||||
|
- Containerised services with *Docker* and *systemd* to simplify deployment and
|
||||||
|
management
|
||||||
]
|
]
|
||||||
|
|
||||||
= Awards
|
|
||||||
|
|
||||||
#show link: underline
|
|
||||||
|
|
||||||
- Winner of the #link("https://github.com/anyuan-chen/resketch")[EdTech] prize at StormHacks 2022 from 350+ participants
|
|
||||||
- Winner of the #link("https://github.com/anyuan-chen/perdiem")[IBM Open Source] prize at YRHacks 2022 from 90+ participants
|
|
||||||
|
|
||||||
= Education
|
= Education
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
#education_entry(
|
#work_entry(
|
||||||
"University of Waterloo", "B.A.Sc. in Computer Engineering", start_date: "Sep 2022", end_date: "Apr 2027 (expected)",
|
"University of Waterloo",
|
||||||
|
"B.A.Sc. in Computer Engineering",
|
||||||
|
start_date: "Sep 2022",
|
||||||
|
end_date: "Apr 2027",
|
||||||
location: "Waterloo, ON",
|
location: "Waterloo, ON",
|
||||||
details: (
|
tasks: (
|
||||||
[Courses: Object-oriented programming, data structures & algorithms, digital computers & circuits],
|
[Courses: Object-oriented programming, data structures & algorithms, digital
|
||||||
))
|
computers & circuits],
|
||||||
|
[Extracurriculars: Creative Writing Club, Hack the North, UW Orbital Design Team]
|
||||||
|
),
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// = Awards
|
||||||
|
|
||||||
|
// #show link: underline
|
||||||
|
|
||||||
|
// - Winner of the #link("https://github.com/anyuan-chen/resketch")[EdTech] prize at
|
||||||
|
// StormHacks 2022 from 350+ participants
|
||||||
|
// - Winner of the #link("https://github.com/anyuan-chen/perdiem")[IBM Open Source] prize
|
||||||
|
// at YRHacks 2022 from 90+ participants
|
||||||
|
756
fontawesome.typ
756
fontawesome.typ
File diff suppressed because it is too large
Load Diff
162
lib.typ
162
lib.typ
@@ -1,22 +1,21 @@
|
|||||||
#import "fontawesome.typ": github, fa
|
#import "fontawesome.typ": github, fa, link-icon
|
||||||
|
|
||||||
#let DEFAULT_STRONG = 300;
|
#let DEFAULT_STRONG = 300;
|
||||||
#let SMALL_STRONG = 200;
|
#let SMALL_STRONG = 200;
|
||||||
|
|
||||||
// Format start and end dates.
|
#let TITLE_FONT = "Bitter"
|
||||||
#let format_date(start_date: none, end_date: none) = {
|
#let HEADING_FONT = TITLE_FONT
|
||||||
let date = {
|
#let BODY_FONT = "Open Sans"
|
||||||
if end_date == none {
|
|
||||||
start_date
|
|
||||||
} else if start_date == none {
|
|
||||||
end_date
|
|
||||||
} else {
|
|
||||||
[#start_date -- #end_date]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[*#date*]
|
#let BODY_FONT_SIZE = 10pt
|
||||||
}
|
#let HEADING_FONT_SIZE = 0.95em
|
||||||
|
#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, left: 0.4in)
|
||||||
|
|
||||||
// Format locations.
|
// Format locations.
|
||||||
#let format_location(location) = {
|
#let format_location(location) = {
|
||||||
@@ -24,67 +23,41 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#let indent(content) = {
|
#let indent(content) = {
|
||||||
block(
|
block(inset: (left: 0.75em, right: 0.5em), content)
|
||||||
inset: (left: 1em, right: 0.5em),
|
|
||||||
content
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// General entry that is split into a left and right half (for experience and education).
|
// General entry that is split into a left and right half (for experience and education).
|
||||||
#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: 0.9em,
|
||||||
grid(
|
grid(columns: (11fr, 3fr), column-gutter: 1cm, {
|
||||||
columns: (11fr, 6fr),
|
set strong(delta: DEFAULT_STRONG)
|
||||||
column-gutter: 1cm,
|
|
||||||
{
|
|
||||||
set align(left)
|
set align(left)
|
||||||
left_content
|
left_content
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
set strong(delta: SMALL_STRONG)
|
set strong(delta: SMALL_STRONG)
|
||||||
set align(right)
|
set align(right)
|
||||||
right_content
|
right_content
|
||||||
}
|
}),
|
||||||
),
|
|
||||||
{
|
{
|
||||||
set align(left)
|
set align(left)
|
||||||
set strong(delta: SMALL_STRONG)
|
set strong(delta: SMALL_STRONG)
|
||||||
details
|
details
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Entry for education.
|
|
||||||
#let education_entry(university, degree, start_date: none, end_date: none, location: none, details: none) = {
|
|
||||||
let details_list = if details != none {
|
|
||||||
let list = []
|
|
||||||
for detail in details {
|
|
||||||
list += [- #detail]
|
|
||||||
}
|
|
||||||
list
|
|
||||||
} else {
|
|
||||||
none
|
|
||||||
}
|
|
||||||
cv_entry(
|
|
||||||
left_content: {
|
|
||||||
set strong(delta: DEFAULT_STRONG)
|
|
||||||
text(1.2em)[*#university*] + "\n" + emph[#degree]
|
|
||||||
},
|
},
|
||||||
right_content: {
|
|
||||||
format_date(start_date: start_date, end_date: end_date)
|
|
||||||
|
|
||||||
if location != none {
|
|
||||||
"\n" + format_location(location)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
details: details_list
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entry for work.
|
// Entry for work.
|
||||||
#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none) = {
|
#let work_entry(
|
||||||
|
role,
|
||||||
|
company,
|
||||||
|
tools: none,
|
||||||
|
tasks: none,
|
||||||
|
start_date: none,
|
||||||
|
end_date: none,
|
||||||
|
location: none,
|
||||||
|
) = {
|
||||||
let task_list = if tasks != none {
|
let task_list = if tasks != none {
|
||||||
let list = []
|
let list = []
|
||||||
for task in tasks {
|
for task in tasks {
|
||||||
@@ -94,44 +67,61 @@
|
|||||||
} else {
|
} else {
|
||||||
none
|
none
|
||||||
}
|
}
|
||||||
cv_entry(
|
cv_entry(left_content: {
|
||||||
left_content: {
|
set par(leading: 0.75em)
|
||||||
text(1.1em)[*#role*] + "\n" + text[#emph[#company]]
|
text(1.1em)[*#role*]
|
||||||
},
|
|
||||||
right_content: {
|
if tools != none {
|
||||||
format_date(start_date: start_date, end_date: end_date)
|
text[ | _ #tools _]
|
||||||
|
}
|
||||||
|
|
||||||
|
"\n"
|
||||||
|
set strong(delta: SMALL_STRONG)
|
||||||
|
text[*#company*]
|
||||||
|
|
||||||
|
}, right_content: {
|
||||||
|
[*#start_date -- #end_date*]
|
||||||
|
|
||||||
if location != none {
|
if location != none {
|
||||||
"\n" + format_location(location)
|
"\n" + format_location(location)
|
||||||
}
|
}
|
||||||
},
|
}, details: task_list)
|
||||||
details: task_list
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#let project(title, repo_link, tools) = {
|
#let project(title, tools, repo_link: none, demo_link: none) = {
|
||||||
set strong(delta: DEFAULT_STRONG)
|
set strong(delta: DEFAULT_STRONG)
|
||||||
link(repo_link)[#text(1.1em)[*#title* #fa(github)]] + [ | _ #tools _]
|
let text_link = if demo_link != none { demo_link } else { repo_link }
|
||||||
|
if text_link != none {
|
||||||
|
link(text_link)[#text(1.1em)[*#title*]]
|
||||||
|
} else {
|
||||||
|
text(1.1em)[*#title*]
|
||||||
|
}
|
||||||
|
|
||||||
|
if demo_link != none {
|
||||||
|
link(demo_link)[#text(1.1em)[ #fa(link-icon)]]
|
||||||
|
}
|
||||||
|
|
||||||
|
if repo_link != none {
|
||||||
|
link(repo_link)[#text(1.1em)[ #fa(github)]]
|
||||||
|
}
|
||||||
|
[ | _ #tools _ ]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set name and contact data and format headings
|
// Set name and contact data and format headings
|
||||||
#let template(name, contact_data, color, doc) = {
|
#let template(name, contact_data, color, doc) = {
|
||||||
let TITLE_FONT = "Bitter"
|
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||||
let HEADING_FONT = "Bitter"
|
set list(indent: 1em, marker: [•])
|
||||||
let BODY_FONT = "Open Sans"
|
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||||
set page(margin: (rest: 0.5in, top: 0.4in), paper: "us-letter")
|
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
||||||
set list(indent: 1.25em, marker: [•])
|
|
||||||
set text(font: (BODY_FONT), 10pt)
|
|
||||||
set par(justify: true, leading: 0.85em)
|
|
||||||
align(center)[
|
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)
|
#block(above: 0em, below: 1em)
|
||||||
#{
|
#{
|
||||||
if contact_data != none and contact_data.len() > 0 {
|
if contact_data != none and contact_data.len() > 0 {
|
||||||
let elements = for el in contact_data {
|
let elements = for el in contact_data {
|
||||||
(link(el.link)[#{el.service + " " + el.display}],)
|
(link(el.link)[#{ el.service + " " + el.display }],)
|
||||||
}
|
}
|
||||||
text(1.1em)[#elements.join(" | ")]
|
text(1em)[#elements.join(" | ")]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -139,29 +129,25 @@
|
|||||||
show heading.where(level: 1): i => {
|
show heading.where(level: 1): i => {
|
||||||
set align(left + horizon)
|
set align(left + horizon)
|
||||||
let title = smallcaps(i.body)
|
let title = smallcaps(i.body)
|
||||||
|
|
||||||
let colored_line(header_text) = style(styles => {
|
let colored_line(header_text) = style(styles => {
|
||||||
let size = measure(header_text, styles)
|
let size = measure(header_text, styles)
|
||||||
|
|
||||||
// 100% - spacing - width of text
|
// 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
|
|
||||||
|
|
||||||
set block(above: 0.9em, below: 0.75em)
|
set block(above: 0.9em, below: 0.75em)
|
||||||
set text(size: 1em, fill: color, font: HEADING_FONT)
|
set text(size: HEADING_FONT_SIZE, fill: color, font: HEADING_FONT)
|
||||||
stack(
|
stack(
|
||||||
dir: ltr,
|
dir: ltr,
|
||||||
spacing: 3mm,
|
spacing: HEADING_LINE_GAP,
|
||||||
title,
|
title,
|
||||||
box(
|
box(height: 2pt, fill: color, colored_line(title)),
|
||||||
height: 2pt,
|
|
||||||
fill: color,
|
|
||||||
colored_line(title)
|
|
||||||
)
|
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
doc
|
doc
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user