Compare commits
27 Commits
v2.1.15
...
feat/s24-c
Author | SHA1 | Date | |
---|---|---|---|
|
1984d47151 | ||
|
bfca633917 | ||
|
af0f13008a | ||
|
d69e958304 | ||
|
509bd8963d | ||
|
3e5be4cf8f | ||
|
dd4006d03d | ||
|
b92ddd66b2 | ||
|
ec13a4a5b3 | ||
|
a150d5de6d | ||
|
23fc909827 | ||
|
fd0398a22c | ||
|
bbe961ee20 | ||
|
eabed81b45 | ||
|
3b70ac13fe | ||
|
1fdfe05eea | ||
|
4d7215700a | ||
|
b6f14ed712 | ||
|
4648e83c55 | ||
f827c87f64 | |||
|
508307cc43 | ||
|
858d6c9758 | ||
|
23e9324077 | ||
|
00659263f9 | ||
|
197699e63b | ||
|
b8e5b47b0b | ||
|
45b4a6b7e6 |
290
Daniel Chen.typ
290
Daniel Chen.typ
@@ -1,5 +1,5 @@
|
|||||||
#import "fontawesome.typ": fa, globe, github, linkedin, envelope
|
#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!!
|
// orange!!
|
||||||
#let color = blue // rgb("#ff983e")
|
#let color = blue // rgb("#ff983e")
|
||||||
@@ -23,10 +23,182 @@
|
|||||||
link: "mailto://d7chen@uwaterloo.ca",
|
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
|
// MAIN CONTENT STARTS here
|
||||||
|
|
||||||
|
= Skills
|
||||||
|
|
||||||
|
#indent[
|
||||||
|
*Languages:* Python, TypeScript, JavaScript, SQL, Rust, C++, Java, HTML/CSS \
|
||||||
|
// Dart, Ruby
|
||||||
|
*Technologies:* Node.js, React, Vue, Next.js, Spring Boot, Express, Prisma, Axum
|
||||||
|
\
|
||||||
|
// Qt, Jest / Pytest, Apollo, Prisma, Rails
|
||||||
|
*Tools:* Linux, Git, Docker, PostgreSQL, Pytest, Jest, AWS/GCP, Kubernetes,
|
||||||
|
Terraform // Jenkins, systemd, Jira
|
||||||
|
]
|
||||||
|
|
||||||
|
= Experience
|
||||||
|
|
||||||
|
#indent[
|
||||||
|
// #work_entry(
|
||||||
|
// "Technical Volunteer",
|
||||||
|
// "Organization for Transformative Works",
|
||||||
|
// start_date: "Feb 2024",
|
||||||
|
// end_date: "present",
|
||||||
|
// location: "Remote",
|
||||||
|
// tools: "Python, Ruby on Rails, React, MySQL",
|
||||||
|
// tasks: (
|
||||||
|
// [Upgrading archive import pipelines to migrate 4000+ user works to be accessible
|
||||||
|
// to *7 million registered users*],
|
||||||
|
// ),
|
||||||
|
// )
|
||||||
|
|
||||||
|
#work_entry(
|
||||||
|
"Software Engineering Intern",
|
||||||
|
"Immigr8",
|
||||||
|
start_date: "Jan 2024",
|
||||||
|
end_date: "Apr 2024",
|
||||||
|
location: "Remote",
|
||||||
|
tools: "Next.js, Spring Boot, PostgreSQL, AWS, Terraform",
|
||||||
|
tasks: (
|
||||||
|
// [Improved client responsiveness by *80* by employing stale-while-revalidate hooks for caching and ?? SWR performance, caching, error handling],
|
||||||
|
[?? Performance: optimised dashboard responsiveness by SWR in React / TS, lazy
|
||||||
|
load with Hibernate, *reducing load times by 50%*],
|
||||||
|
[?? owned feature for user to upload supplementary documents, *reducing support
|
||||||
|
tickets by 30%* by automating document verification and storage (doc vault)],
|
||||||
|
[?? Planned and executed a roadmap to SOC 2 security compliance by *implementing
|
||||||
|
role-based permissions with JWTs in Java*, sending backend logs to CloudWatch,
|
||||||
|
and introducing new privacy controls for user data],
|
||||||
|
[?? created a pipeline to deploy Lambdas from version control ?? *Introduced
|
||||||
|
CI/CD for AWS Lambdas* by codifying them in Terraform for reproducible and
|
||||||
|
automatic deployments],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
#work_entry(
|
||||||
|
"Software Engineering Intern",
|
||||||
|
"Dropbase",
|
||||||
|
start_date: "May 2023",
|
||||||
|
end_date: "Aug 2023",
|
||||||
|
location: "Remote",
|
||||||
|
tools: "React, Python, PostgreSQL, AWS",
|
||||||
|
tasks: (
|
||||||
|
[?? Owned and launched a HubSpot/Airtable to Google Sheets sync feature to
|
||||||
|
*46000+ enterprise users* with AWS Lambda and Python],
|
||||||
|
[?? Wrote and deployed a new *React* data query builder and Python backend for
|
||||||
|
our business intelligence visualisation service to *33000+ users*, eliminating
|
||||||
|
the need for clients to manually write API calls or Python code],
|
||||||
|
[Designed a conflict resolution algorithm for merging databases, *reducing
|
||||||
|
unrecoverable errors by 75%*],
|
||||||
|
[?? new tool dDeveloped a *serverless microservice* that asynchronously ingests
|
||||||
|
email attachments directly into ETL pipelines],
|
||||||
|
// [??? emphasise test driven development or remove line *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(
|
||||||
|
"Backend Developer",
|
||||||
|
"Hack the North",
|
||||||
|
start_date: "Mar 2023",
|
||||||
|
end_date: "present",
|
||||||
|
location: "Waterloo, ON",
|
||||||
|
tools: "Express, Redis, GraphQL, Docker, Kubernetes",
|
||||||
|
tasks: (
|
||||||
|
[Shipped a new *bus registration tool* for attendees by creating new database
|
||||||
|
tables and GraphQL resolvers],
|
||||||
|
[Created a real-time event statistics dashboard by implementing GraphQL
|
||||||
|
*subscriptions with Redis PubSub*],
|
||||||
|
[?? tell story Diagnosed and *recovered from load spike crashes* by debouncing
|
||||||
|
queries, using rate limiting as a stopgap],
|
||||||
|
[?? feature first Reduced event check-in times by *80%* for *1900+ attendees* by
|
||||||
|
generating digital wallet passes over Express],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
= Projects
|
||||||
|
#set strong(delta: SMALL_STRONG)
|
||||||
|
|
||||||
|
#indent[
|
||||||
|
#project(
|
||||||
|
"Mandown Comic Downloader",
|
||||||
|
"Python, Qt",
|
||||||
|
repo_link: "https://github.com/potatoeggy/mandown",
|
||||||
|
)
|
||||||
|
- Created a CLI and GUI to scrape, download, and convert webcomics into
|
||||||
|
e-ink-optimised ebooks (EPUB, PDF)
|
||||||
|
- Designed a *scalable data conversion system* via a canonical format, allowing
|
||||||
|
any format to convert to any other
|
||||||
|
- Implemented *image caching and multithreading* to increase download and update
|
||||||
|
speeds by *300%*
|
||||||
|
|
||||||
|
#project(
|
||||||
|
"Kobo Sync Server",
|
||||||
|
"Rust, Axum",
|
||||||
|
repo_link: "https://github.com/potatoeggy/kobink",
|
||||||
|
)
|
||||||
|
- *Reimplemented the Kobo Store Sync protocol* in an Axum backend to instead sync
|
||||||
|
personal ebook files
|
||||||
|
- Deployed the service behind an nginx reverse proxy and Cloudflare DNS to allow
|
||||||
|
syncing over the internet
|
||||||
|
|
||||||
|
// #project(
|
||||||
|
// "Genshin Rewards Simulator",
|
||||||
|
// "Vue, TypeScript",
|
||||||
|
// repo_link: "https://github.com/potatoeggy/primoprod",
|
||||||
|
// demo_link: "https://primoprod.vercel.app",
|
||||||
|
// )
|
||||||
|
// - Built a realistic and beautiful *loot box simulator* with CSS animations based
|
||||||
|
// off a popular game
|
||||||
|
// - Reduced action latency by *90%* by lazily loading art assets at opportune times,
|
||||||
|
// such as during cutscenes
|
||||||
|
|
||||||
|
#project(
|
||||||
|
"Jeopardy!",
|
||||||
|
"Vue, TypeScript, WebSockets",
|
||||||
|
repo_link: "https://github.com/potatoeggy/jeopardy",
|
||||||
|
demo_link: "https://jeopardy.eggworld.me/host",
|
||||||
|
)
|
||||||
|
- Created a beautiful and polished remote game where participants buzz in on their
|
||||||
|
devices over WebSockets
|
||||||
|
- Synchronised game state between clients and the host with shared TypeScript
|
||||||
|
types and the observer pattern
|
||||||
|
|
||||||
|
// #project(
|
||||||
|
// "RecipeReady",
|
||||||
|
// "https://github.com/vincentjguo/recipeready-server",
|
||||||
|
// "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("Arch Linux Server", "Linux, Docker, nginx, systemd", demo_link: "https://eggworld.me")
|
||||||
|
// - Created a *self-hosted CI/CD pipeline* with *Gitea* to automatically deploy
|
||||||
|
// personal projects behind *nginx*
|
||||||
|
// - Containerised services with *Docker* and *systemd* to simplify deployment and
|
||||||
|
// management
|
||||||
|
|
||||||
|
// #project(
|
||||||
|
// "Game Boy Advance Emulator",
|
||||||
|
// "Rust, SDL2, Vulkan",
|
||||||
|
// repo_link: "https://github.com/potatoeggy/gbarr",
|
||||||
|
// )
|
||||||
|
// - Implemented a *ARMv7 emulator* for old games to run on modern x86_64 platforms
|
||||||
|
// with *SDL2* and *Vulkan*
|
||||||
|
// - WebGPU and WASM for portability, typestate to guarantee everything is always
|
||||||
|
// valid
|
||||||
|
]
|
||||||
|
|
||||||
= Education
|
= Education
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
@@ -38,118 +210,8 @@
|
|||||||
location: "Waterloo, ON",
|
location: "Waterloo, ON",
|
||||||
tasks: (
|
tasks: (
|
||||||
[Courses: Object-oriented programming, data structures & algorithms, digital
|
[Courses: Object-oriented programming, data structures & algorithms, digital
|
||||||
computers & circuits],
|
logic & circuits],
|
||||||
|
// [Extracurriculars: Creative Writing Club, Hack the North, UW Orbital Design Team],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
= Skills
|
|
||||||
|
|
||||||
#indent[
|
|
||||||
*Languages:* Python, TypeScript, JavaScript, Rust, SQL, MATLAB, C, C++, Java,
|
|
||||||
HTML, CSS, Dart \
|
|
||||||
*Frameworks:* Node.js, Express, React, Next.js, Vue, Flutter, Qt, Prisma,
|
|
||||||
Apollo, Axum, Jest, Pytest \
|
|
||||||
*Tools:* Linux, Git, Docker, PostgreSQL, Redis, Kubernetes, AWS, GCP,
|
|
||||||
OpenTelemetry, GraphQL, Android
|
|
||||||
]
|
|
||||||
|
|
||||||
= Experience
|
|
||||||
|
|
||||||
#indent[
|
|
||||||
#work_entry(
|
|
||||||
"Software Engineering Intern",
|
|
||||||
"Dropbase",
|
|
||||||
start_date: "May 2023",
|
|
||||||
end_date: "Aug 2023",
|
|
||||||
location: "San Francisco, CA",
|
|
||||||
tasks: (
|
|
||||||
[Designed a conflict resolution algorithm for business smart tables, *reducing unrecoverable errors by 75%*],
|
|
||||||
[Solely planned and shipped to *46 000+ enterprise users* a Google Sheets sync feature with HubSpot and Airtable by writing *AWS Lambda* functions in Python],
|
|
||||||
[Productionised a service importing CSV/Excel attachments into DBs by expanding DB engine support by *6x*],
|
|
||||||
[Spearheaded the creation of backend testing infrastructure with *Pytest* to catch regressions and test new features across database engines with *90% code coverage*],
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
#work_entry(
|
|
||||||
"Backend Developer",
|
|
||||||
"Hack the North",
|
|
||||||
start_date: "Mar 2023",
|
|
||||||
end_date: "present",
|
|
||||||
location: "Waterloo, ON",
|
|
||||||
tasks: (
|
|
||||||
[Streamlined registration times by *80%* by generating *user-specific mobile ticket
|
|
||||||
passes* over *Apollo GraphQL*],
|
|
||||||
[Horizontally scaled the *Node.js* server to handle *1000+ concurrent users* with
|
|
||||||
*Redis* and *Kubernetes*],
|
|
||||||
[Integrated backend *tracing* with *OpenTelemetry* and *Grafana* to monitor performance and trigger alerts],
|
|
||||||
[Slashed dev server reload time by *93%* by splitting parallelisable tasks across threads, pre-transpiling GraphQL resolvers, and profiling then cutting unnecessary work]
|
|
||||||
),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
= Projects
|
|
||||||
#set strong(delta: SMALL_STRONG)
|
|
||||||
|
|
||||||
#indent[
|
|
||||||
#project(
|
|
||||||
"Comic Converter",
|
|
||||||
"https://github.com/potatoeggy/mandown",
|
|
||||||
"Python, Qt",
|
|
||||||
)
|
|
||||||
- Created a CLI and GUI to scrape, download, and convert webcomics into
|
|
||||||
e-ink-optimised ebooks (EPUB, PDF)
|
|
||||||
- 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%*
|
|
||||||
- Minimised regressions between release cycles by writing *unit and integration
|
|
||||||
tests* with 55% code coverage
|
|
||||||
|
|
||||||
#project(
|
|
||||||
"Kobo Sync Server",
|
|
||||||
"https://github.com/potatoeggy/kobink",
|
|
||||||
"Rust, Axum",
|
|
||||||
)
|
|
||||||
- Developed an Axum backend to *automatically convert and sync* ebooks to a Kobo
|
|
||||||
eReader over the network
|
|
||||||
- *Reverse-engineered* the Kobo eReader Sync API to support updating ebook
|
|
||||||
metadata and covers
|
|
||||||
|
|
||||||
#project(
|
|
||||||
"Genshin Simulator",
|
|
||||||
"https://github.com/potatoeggy/primoprod",
|
|
||||||
"Vue, TypeScript",
|
|
||||||
)
|
|
||||||
- Built an 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(
|
|
||||||
"RecipeReady",
|
|
||||||
"https://github.com/vincentjguo/recipeready-server",
|
|
||||||
"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("Arch Linux Server", none, "Linux, nginx, systemd")
|
|
||||||
// - Created a *self-hosted CI/CD pipeline* with *Gitea* to automatically deploy
|
|
||||||
// personal projects behind *nginx*
|
|
||||||
// - Set up *Jellyfin* for media streaming, a *Minecraft* server, *Calibre* for ebook
|
|
||||||
// syncing, and other services
|
|
||||||
]
|
|
||||||
|
|
||||||
// = 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
|
|
||||||
|
10
README.md
10
README.md
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
Release guidelines:
|
Release guidelines:
|
||||||
|
|
||||||
- The major version represents the current academic year, e.g., both post-2A and 2B would be v2.
|
- Increment the major version for every work term, e.g., post-2A (WT2) and post-2B (WT3) would be v2.x.x and v3.x.x, respectively.
|
||||||
- The minor version represents the current academic term, e.g., 2A would be v2.1. the x.0 releases are reserved for beta changes.
|
- Increment the minor version for every major change. These can include:
|
||||||
- The patch version is incremented for any other reason.
|
- Adding a new section
|
||||||
|
- Adding a new skill
|
||||||
|
- Adding/removing a new experience or project
|
||||||
|
- Substantially rewriting lines across multiple experiences or projects
|
||||||
|
- Increment the patch version for formatting changes or simple tweaks.
|
||||||
|
89
lib.typ
89
lib.typ
@@ -1,21 +1,22 @@
|
|||||||
#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;
|
||||||
|
|
||||||
#let TITLE_FONT = "Bitter"
|
#let TITLE_FONT = "New Computer Modern"
|
||||||
#let HEADING_FONT = TITLE_FONT
|
#let HEADING_FONT = TITLE_FONT
|
||||||
#let BODY_FONT = "Open Sans"
|
#let BODY_FONT = "New Computer Modern"
|
||||||
|
|
||||||
#let BODY_FONT_SIZE = 10pt
|
#let BODY_FONT_SIZE = 11pt
|
||||||
#let HEADING_FONT_SIZE = 1em
|
#let HEADING_FONT_SIZE = 0.95em
|
||||||
#let TITLE_FONT_SIZE = 2.25em
|
#let TITLE_FONT_SIZE = 2em
|
||||||
|
|
||||||
#let HEADING_LINE_GAP = 3mm
|
#let HEADING_LINE_GAP = 3mm
|
||||||
#let BODY_LINE_HEIGHT = 0.85em
|
#let BODY_LINE_HEIGHT = 0.65em
|
||||||
|
#let BODY_LINE_SPACING = 0.75em
|
||||||
|
|
||||||
// rest = not top
|
// rest = not top
|
||||||
#let PAGE_MARGINS = (rest: 0.5in, top: 0.4in)
|
#let PAGE_MARGINS = (right: 0.4in, rest: 0.3in)
|
||||||
|
|
||||||
// Format locations.
|
// Format locations.
|
||||||
#let format_location(location) = {
|
#let format_location(location) = {
|
||||||
@@ -23,15 +24,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#let indent(content) = {
|
#let indent(content) = {
|
||||||
block(inset: (left: 1em, right: 0.5em), content)
|
block(inset: (left: 0em, right: 0em), 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.9em,
|
spacing: 0.75em,
|
||||||
grid(columns: (11fr, 6fr), column-gutter: 1cm, {
|
grid(columns: (9fr, 5fr), column-gutter: 1cm, {
|
||||||
set strong(delta: DEFAULT_STRONG)
|
set strong(delta: DEFAULT_STRONG)
|
||||||
set align(left)
|
set align(left)
|
||||||
left_content
|
left_content
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
#let work_entry(
|
#let work_entry(
|
||||||
role,
|
role,
|
||||||
company,
|
company,
|
||||||
|
tools: none,
|
||||||
tasks: none,
|
tasks: none,
|
||||||
start_date: none,
|
start_date: none,
|
||||||
end_date: none,
|
end_date: none,
|
||||||
@@ -67,46 +69,57 @@
|
|||||||
none
|
none
|
||||||
}
|
}
|
||||||
cv_entry(left_content: {
|
cv_entry(left_content: {
|
||||||
set par(leading: 0.75em)
|
set par(justify: true)
|
||||||
text(1.1em)[*#role*]
|
text[*#company* | _#role _]
|
||||||
"\n"
|
|
||||||
set strong(delta: SMALL_STRONG)
|
|
||||||
text[*#company*]
|
|
||||||
}, right_content: {
|
}, right_content: {
|
||||||
[*#start_date -- #end_date*]
|
[#start_date -- #end_date]
|
||||||
|
// if location != none {
|
||||||
if location != none {
|
// 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)
|
||||||
if repo_link != none {
|
let text_link = if demo_link != none { demo_link } else { repo_link }
|
||||||
link(repo_link)[#text(1.1em)[*#title* #fa(github)]] + [ | _ #tools _ ]
|
if text_link != none {
|
||||||
|
link(text_link)[#text[*#title*]]
|
||||||
} else {
|
} else {
|
||||||
text(1.1em)[*#title*] + [ | _ #tools _ ]
|
text[*#title*]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if demo_link != none {
|
||||||
|
link(demo_link)[ #fa(link-icon) ]
|
||||||
|
}
|
||||||
|
|
||||||
|
if repo_link != none {
|
||||||
|
link(repo_link)[ #fa(github) ]
|
||||||
|
}
|
||||||
|
[ | _ #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
|
// 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 page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||||
set list(indent: 1.25em, marker: [•])
|
set list(indent: 0.75em, marker: [•])
|
||||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||||
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
set par(leading: BODY_LINE_HEIGHT)
|
||||||
align(center)[
|
align(center)[
|
||||||
#text(size: TITLE_FONT_SIZE, font: TITLE_FONT, fill: color)[*#name*]
|
#text(
|
||||||
|
size: TITLE_FONT_SIZE,
|
||||||
|
font: TITLE_FONT,
|
||||||
|
fill: color,
|
||||||
|
)[#smallcaps[*#name*]]
|
||||||
#block(above: 0em, below: 1em)
|
#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 => {
|
show heading.where(level: 1): i => {
|
||||||
@@ -124,7 +137,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
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: HEADING_LINE_GAP,
|
spacing: HEADING_LINE_GAP,
|
||||||
|
Reference in New Issue
Block a user