Compare commits
1 Commits
embedded
...
test/one-l
Author | SHA1 | Date | |
---|---|---|---|
|
1dcb33ffc3 |
274
Daniel Chen.typ
274
Daniel Chen.typ
@@ -2,209 +2,119 @@
|
|||||||
#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG
|
#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG
|
||||||
|
|
||||||
// orange!!
|
// orange!!
|
||||||
#let color = blue // rgb("#ff983e")
|
#let color = rgb("#ff983e")
|
||||||
#let name = "Daniel Chen"
|
#let name = "Daniel Chen"
|
||||||
|
|
||||||
#let contact_data = ((
|
#let contact_data = (
|
||||||
service: fa[#globe],
|
(
|
||||||
display: "eggworld.me",
|
service: fa[#globe],
|
||||||
link: "https://eggworld.me",
|
display: "eggworld.me",
|
||||||
), (
|
link: "https://eggworld.me"
|
||||||
service: fa[#github],
|
),
|
||||||
display: "github.com/potatoeggy",
|
(
|
||||||
link: "https://github.com/potatoeggy",
|
service: fa[#github],
|
||||||
), (
|
display: "github.com/potatoeggy",
|
||||||
service: fa[#linkedin],
|
link: "https://github.com/potatoeggy"
|
||||||
display: "linkedin.com/in/potatoeggy",
|
),
|
||||||
link: "https://www.linkedin.com/in/potatoeggy/",
|
(
|
||||||
), (
|
service: fa[#linkedin],
|
||||||
service: fa[#envelope],
|
display: "linkedin.com/in/potatoeggy",
|
||||||
display: "d7chen@uwaterloo.ca",
|
link: "https://www.linkedin.com/in/potatoeggy/"
|
||||||
link: "mailto://d7chen@uwaterloo.ca",
|
),
|
||||||
),)
|
(
|
||||||
|
service: fa[#envelope],
|
||||||
|
display: "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
|
||||||
|
|
||||||
= Education
|
|
||||||
|
|
||||||
#indent[
|
|
||||||
#work_entry(
|
|
||||||
"University of Waterloo",
|
|
||||||
"B.A.Sc. in Computer Engineering",
|
|
||||||
start_date: "Sep 2022",
|
|
||||||
end_date: "Apr 2027",
|
|
||||||
location: "Waterloo, ON",
|
|
||||||
tasks: (
|
|
||||||
[Courses: OOP, data structures & algorithms, digital logic & circuits, embedded
|
|
||||||
microprocessors],
|
|
||||||
// [Extracurriculars: Creative Writing Club, Hack the North, UW Orbital Design Team],
|
|
||||||
),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
= Skills
|
= Skills
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
*Languages:* Python, C/C++, VHDL, Verilog, MATLAB, Rust, Java, SQL, JavaScript,
|
*Languages*: Python, TypeScript/JavaScript, Rust, SQL, C++, Java, HTML, CSS \
|
||||||
HTML, CSS \
|
*Frameworks*: Node.js, Express, React, Next.js, Vue, Flutter, Qt, Prisma, Apollo, Axum \
|
||||||
// Qt, Jest / Pytest, Apollo, Prisma, Rails
|
*Tools*: Linux, Git, Docker, PostgreSQL, Redis, Kubernetes, AWS, GCP, OpenTelemetry, GraphQL
|
||||||
*Tools:* Linux, Git, PostgreSQL, Qt, STM32, Quartus Prime, Valgrind, GDB
|
]
|
||||||
|
|
||||||
|
= Experience
|
||||||
|
|
||||||
|
#indent[
|
||||||
|
#work_entry(
|
||||||
|
"Software Engineering Intern",
|
||||||
|
"Dropbase",
|
||||||
|
start_date: "May 2023", end_date: "Aug 2023",
|
||||||
|
location: "Remote",
|
||||||
|
tasks: (
|
||||||
|
[Automated synchronising Airtable and HubSpot APIs with Google Sheets via *AWS Lambda*],
|
||||||
|
[Engineered a *heuristic algorithm* to guarantee *SQL* aliases referenced in queries match the database schema],
|
||||||
|
[Refactored the frontend to use *react-hook-form* to aggregate and validate user input, improving DX],
|
||||||
|
[Built a service for *importing and validating CSV/Excel* files from personalised email addresses into databases],
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
#work_entry(
|
||||||
|
"Backend Developer",
|
||||||
|
"Techyon",
|
||||||
|
start_date: "Mar 2023", end_date: "present",
|
||||||
|
location: "Waterloo, ON",
|
||||||
|
tasks: (
|
||||||
|
[Integrated *OpenTelemetry* and Grafana in a *Kubernetes* cluster to collect traces and improve observability],
|
||||||
|
[Dynamically generated user-specific *Apple Wallet* passes over *Apollo GraphQL* Server to streamline check-in],
|
||||||
|
[Automated judge-to-hacker matching and scheduling with a custom algorithm based on their preferences],
|
||||||
|
[Horizontally scaled the *Node.js* server to handle *1000+ concurrent users* with *Redis* and *Kubernetes*],
|
||||||
|
)
|
||||||
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
= Projects
|
= Projects
|
||||||
#set strong(delta: SMALL_STRONG)
|
#set strong(delta: SMALL_STRONG)
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
#project("FPGA Diagnostic Tool", "C, Verilog, Tcl")
|
#project("Mandown Comic Converter", "https://github.com/potatoeggy/mandown", "Python, Qt")
|
||||||
- Assembled various IP cores in Quartus and Verilog to create a diagnostic tool
|
- Created a CLI and GUI to scrape, download, and convert webcomics into e-ink friendly ebooks
|
||||||
for an FPGA board with Tcl scripts
|
- Designed a standard *intermediate representation* to convert between different comic formats (EPUB, PDF)
|
||||||
- Developed a C program to communicate with the FPGA over UART and display
|
- Implemented *image caching and multiprocessing* to increase download and update speeds by *300%*
|
||||||
diagnostic information
|
- Minimised regressions between release cycles by writing *unit and integration tests* with 55% code coverage
|
||||||
|
|
||||||
#project("PNG Validator", "C")
|
#project("Primoprod Genshin Simulator", "https://github.com/potatoeggy/primoprod", "Vue, TypeScript")
|
||||||
- Created a PNG file validator to find common errors and corruption by checking
|
- Built an interactive, realistic, and beautiful game simulator with fluid animations based off a popular game
|
||||||
metadata and computing CRCs
|
- Constructed an *extensible JSON data schema* to let the user dynamically switch between game versions
|
||||||
// memory safety w/Valgrind
|
|
||||||
- Ran tests behind Valgrind to ensure memory safety, prevent memory leaks, and
|
|
||||||
maintain accuracy
|
|
||||||
|
|
||||||
#project(
|
// #project("Kobink — Kobo Sync Server", "https://github.com/potatoeggy/kobink", "Rust, Axum, Postgres")
|
||||||
"Box Box Revolution",
|
// - ??? something here (reverse engineering)
|
||||||
"Rust, STM32",
|
// - ??? something here (synchronisation and DB, HTTP headers)
|
||||||
repo_link: "https://github.com/potatoeggy/boxboxrevolution",
|
|
||||||
)
|
|
||||||
- Created a rhythm game to detect punches with an ultrasonic sensor in time with
|
|
||||||
notes of popular songs
|
|
||||||
- Developed firmware to measure from an ultrasonic sensor, tone a buzzer, and show
|
|
||||||
scrolling notes on an LCD
|
|
||||||
|
|
||||||
#project("Climate Controller", "ARM Assembly, VHDL")
|
#project("RecipeReady Recipe Aggregator", "https://github.com/vincentjguo/recipeready-server", "Flutter, Selenium, FastAPI, Android")
|
||||||
- Programmed an FPGA to heat/cool a theoretical room to a target temperature given
|
- Developed a *Flutter app* to generate recipes based on ingredients and filters through a FastAPI server
|
||||||
switch-controlled inputs
|
- Scraped thousands of websites for recipes to build a database with a robust *many-to-many tag system*
|
||||||
- Added conditions such as avoiding changes if windows are open, vacation mode,
|
- Aggregated common ingredients heuristically to build a shopping list and a meal plan for each week
|
||||||
and realistic heating curves
|
|
||||||
|
|
||||||
// #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(
|
|
||||||
"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(
|
|
||||||
// "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(
|
|
||||||
// "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
|
|
||||||
|
|
||||||
|
#project("Box Box Revolution", "https://github.com/potatoeggy/boxboxrevolution", "Rust, STM32")
|
||||||
|
- Created a rhythm game to detect punches with an ultrasonic sensor in line wth notes of popular songs
|
||||||
|
- Developed firmware to measure from an ultrasonic sensor, tone a buzzer, and show scrolling notes on an LCD
|
||||||
]
|
]
|
||||||
|
|
||||||
= Experience
|
= 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
|
||||||
|
|
||||||
#indent[
|
#indent[
|
||||||
#work_entry(
|
#work_entry(
|
||||||
"Software Developer Intern",
|
[B.A.Sc. in Computer Engineering],
|
||||||
"Immigr8",
|
[University of Waterloo],
|
||||||
start_date: "Jan 2024",
|
start_date: "Sep 2022", end_date: "Apr 2027 (expected)",
|
||||||
end_date: "Apr 2024",
|
tasks: (
|
||||||
location: "Remote",
|
[Courses: Object-oriented programming, data structures & algorithms, digital computers & circuits],
|
||||||
tools: "Next.js, Spring Boot, PostgreSQL, AWS, Terraform",
|
),
|
||||||
tasks: (
|
one_line_mode: true
|
||||||
// [Improved client responsiveness by *80* by employing stale-while-revalidate hooks for caching and ?? SWR performance, caching, error handling],
|
)
|
||||||
[Planned and executed a roadmap to SOC 2 security compliance by *implementing
|
]
|
||||||
role-based permissions with JWTs*, sending backend logs and alerts to
|
|
||||||
CloudWatch, and introducing new privacy controls for user data],
|
|
||||||
[*Introduced CI/CD for AWS Lambdas* by codifying them in Terraform for
|
|
||||||
reproducible and automatic deployments],
|
|
||||||
[Set up a staging environment via *EC2 and Jenkins* with parallel builds to
|
|
||||||
*reduce production errors by 90%*],
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
#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* by writing AWS Lambda functions in Python, abstracting
|
|
||||||
interfaces to easily support future sources],
|
|
||||||
[Wrote and deployed a new *React* data query builder for our business
|
|
||||||
intelligence visualisation service to *33000+ users*, eliminating the need for
|
|
||||||
clients to manually write API calls or Python code],
|
|
||||||
// [??? 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 Lead",
|
|
||||||
"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],
|
|
||||||
[Diagnosed and *recovered from load spike crashes* by debouncing queries, using
|
|
||||||
rate limiting as a stopgap],
|
|
||||||
[Reduced event check-in times by *80%* for *1900+ attendees* by generating
|
|
||||||
digital wallet passes over Express],
|
|
||||||
),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
10
README.md
10
README.md
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
Release guidelines:
|
Release guidelines:
|
||||||
|
|
||||||
- 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 major version represents the current academic year, e.g., both post-2A and 2B would be v2.
|
||||||
- Increment the minor version for every major change. These can include:
|
- The minor version represents the current academic term, e.g., 2A would be v2.1. the x.0 releases are reserved for beta changes.
|
||||||
- Adding a new section
|
- The patch version is incremented for any other reason.
|
||||||
- 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.
|
|
||||||
|
806
fontawesome.typ
806
fontawesome.typ
File diff suppressed because it is too large
Load Diff
132
lib.typ
132
lib.typ
@@ -1,4 +1,4 @@
|
|||||||
#import "fontawesome.typ": github, fa, link-icon
|
#import "fontawesome.typ": github, fa
|
||||||
|
|
||||||
#let DEFAULT_STRONG = 300;
|
#let DEFAULT_STRONG = 300;
|
||||||
#let SMALL_STRONG = 200;
|
#let SMALL_STRONG = 200;
|
||||||
@@ -8,14 +8,14 @@
|
|||||||
#let BODY_FONT = "Open Sans"
|
#let BODY_FONT = "Open Sans"
|
||||||
|
|
||||||
#let BODY_FONT_SIZE = 10pt
|
#let BODY_FONT_SIZE = 10pt
|
||||||
#let HEADING_FONT_SIZE = 0.95em
|
#let HEADING_FONT_SIZE = 1em
|
||||||
#let TITLE_FONT_SIZE = 2em
|
#let TITLE_FONT_SIZE = 2em
|
||||||
|
|
||||||
#let HEADING_LINE_GAP = 3mm
|
#let HEADING_LINE_GAP = 3mm
|
||||||
#let BODY_LINE_HEIGHT = 0.8em
|
#let BODY_LINE_HEIGHT = 0.85em
|
||||||
|
|
||||||
// rest = not top
|
// rest = not top
|
||||||
#let PAGE_MARGINS = (rest: 0.5in, top: 0.4in, left: 0.4in, bottom: 0.4in)
|
#let PAGE_MARGINS = (rest: 0.5in, top: 0.4in)
|
||||||
|
|
||||||
// Format locations.
|
// Format locations.
|
||||||
#let format_location(location) = {
|
#let format_location(location) = {
|
||||||
@@ -23,7 +23,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#let indent(content) = {
|
#let indent(content) = {
|
||||||
block(inset: (left: 0.75em, right: 0.5em), content)
|
block(
|
||||||
|
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).
|
||||||
@@ -31,33 +34,30 @@
|
|||||||
stack(
|
stack(
|
||||||
dir: ttb,
|
dir: ttb,
|
||||||
spacing: 0.9em,
|
spacing: 0.9em,
|
||||||
grid(columns: (11fr, 3fr), column-gutter: 1cm, {
|
grid(
|
||||||
|
columns: (11fr, 6fr),
|
||||||
|
column-gutter: 1cm,
|
||||||
|
{
|
||||||
set strong(delta: DEFAULT_STRONG)
|
set strong(delta: DEFAULT_STRONG)
|
||||||
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 strong(delta: SMALL_STRONG)
|
set align(left)
|
||||||
details
|
set strong(delta: SMALL_STRONG)
|
||||||
},
|
details
|
||||||
)
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entry for work.
|
// Entry for work.
|
||||||
#let work_entry(
|
#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none, one_line_mode: false) = {
|
||||||
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 {
|
||||||
@@ -67,50 +67,38 @@
|
|||||||
} else {
|
} else {
|
||||||
none
|
none
|
||||||
}
|
}
|
||||||
cv_entry(left_content: {
|
cv_entry(
|
||||||
set par(leading: 0.75em)
|
left_content: {
|
||||||
text(1.1em)[*#role*]
|
|
||||||
|
|
||||||
if tools != none {
|
if one_line_mode {
|
||||||
text[ | _ #tools _ ]
|
text(1.1em)[*#role*, #company]
|
||||||
}
|
} else {
|
||||||
|
text(1.1em)[*#role*]
|
||||||
|
"\n"
|
||||||
|
text[#emph[#company]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
right_content: {
|
||||||
|
[*#start_date -- #end_date*]
|
||||||
|
|
||||||
"\n"
|
if location != none {
|
||||||
set strong(delta: SMALL_STRONG)
|
"\n" + format_location(location)
|
||||||
text[*#company*]
|
}
|
||||||
}, right_content: {
|
},
|
||||||
[*#start_date -- #end_date*]
|
details: task_list
|
||||||
|
)
|
||||||
if location != none {
|
|
||||||
"\n" + format_location(location)
|
|
||||||
}
|
|
||||||
}, details: task_list)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#let project(title, tools, repo_link: none, demo_link: none) = {
|
#let project(title, repo_link, tools) = {
|
||||||
set strong(delta: DEFAULT_STRONG)
|
set strong(delta: DEFAULT_STRONG)
|
||||||
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(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) = {
|
||||||
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||||
set list(indent: 1em, marker: [•])
|
set list(indent: 1.25em, 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(justify: true, 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)[*#name*]
|
||||||
@@ -118,9 +106,9 @@
|
|||||||
#{
|
#{
|
||||||
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(1em)[#elements.join(" | ")]
|
text(1.1em)[#elements.join(" | ")]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -130,22 +118,24 @@
|
|||||||
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(
|
line(length: 100% - HEADING_LINE_GAP - size.width, stroke: (paint: color, thickness: 2pt, cap: "round"))
|
||||||
length: 100% - HEADING_LINE_GAP - size.width,
|
|
||||||
stroke: (paint: color, thickness: 2pt, cap: "round"),
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
set block(above: 0.9em, below: 0.75em)
|
set block(above: 0.9em, below: 0.75em)
|
||||||
set text(size: HEADING_FONT_SIZE, fill: color, font: HEADING_FONT)
|
set text(size: 1em, fill: color, font: HEADING_FONT)
|
||||||
stack(
|
stack(
|
||||||
dir: ltr,
|
dir: ltr,
|
||||||
spacing: HEADING_LINE_GAP,
|
spacing: HEADING_LINE_GAP,
|
||||||
title,
|
title,
|
||||||
box(height: 2pt, fill: color, colored_line(title)),
|
box(
|
||||||
|
height: 2pt,
|
||||||
|
fill: color,
|
||||||
|
colored_line(title)
|
||||||
|
)
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
doc
|
doc
|
||||||
|
Reference in New Issue
Block a user