Compare commits
5 Commits
v3.3.0-emb
...
chris
Author | SHA1 | Date | |
---|---|---|---|
|
32921a2aa5 | ||
|
a8ef83200f | ||
|
cca8bf4dbc | ||
|
c8e2c7dd46 | ||
|
b4c1386468 |
133
Christopher Lam.typ
Normal file
133
Christopher Lam.typ
Normal file
@@ -0,0 +1,133 @@
|
||||
#import "fontawesome.typ": fa, globe, github, linkedin, envelope, phone
|
||||
#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG
|
||||
|
||||
// orange!!
|
||||
#let color = rgb("#1f497d")
|
||||
#let name = "Christopher Lam"
|
||||
|
||||
#let contact_data = (
|
||||
(
|
||||
service: fa[#phone],
|
||||
display: "416-409-0886",
|
||||
link: "tel:4164090886"
|
||||
),
|
||||
(
|
||||
service: fa[#envelope],
|
||||
display: "christopher.peter.lam@protonmail.com",
|
||||
link: "mailto://christopher.peter.lam@protonmail.com"
|
||||
),
|
||||
(
|
||||
service: fa[#linkedin],
|
||||
display: "linkedin.com/in/christopherlam888",
|
||||
link: "https://www.linkedin.com/in/christopherlam888"
|
||||
),
|
||||
(
|
||||
service: fa[#github],
|
||||
display: "github.com/christopherlam888",
|
||||
link: "https://github.com/christopherlam888"
|
||||
),
|
||||
)
|
||||
|
||||
#show: doc => template(name, contact_data, color, doc)
|
||||
|
||||
// MAIN CONTENT STARTS here
|
||||
|
||||
#let IMAGE_WIDTH = 1.5cm
|
||||
#place(bottom + center, dy: 1.5cm, image("monogram.png", width: IMAGE_WIDTH))
|
||||
|
||||
= Technical Skills
|
||||
|
||||
- *Languages:* Python, JavaScript, TypeScript, Kotlin, C, C++, Rust, Dart, Java, SQL, XML, XSL, Bash
|
||||
- *Tools:* OpenCV, Flask, PostgreSQL, React, React Native, NodeJS, Express, MongoDB, Flutter, Linux
|
||||
|
||||
= Experience
|
||||
|
||||
#block(inset: (right: 0.5em))[
|
||||
#work_entry(
|
||||
"Software Developer, Software Quality Analyst",
|
||||
"i4i Infrastructure for Information",
|
||||
location: "Toronto",
|
||||
start_date: "May 2023", end_date: "Sep 2023",
|
||||
tasks: (
|
||||
[Developed a program to automate converting hundreds of client data values from Excel to Word metadata],
|
||||
[Designed Python, XML, and XSL code to extract and process data to interface with existing software products],
|
||||
[Performed 1000+ functional, security, and stress tests to ensure quality for clients like Pfizer and Astellas],
|
||||
[Communicated with developers and clients to perform root cause analysis on hundreds of major issues],
|
||||
[Coordinated with management and team members to delegate work, present results, and meet deadlines]
|
||||
)
|
||||
)
|
||||
|
||||
#work_entry(
|
||||
"Electrical/Communications Subsystem Lead",
|
||||
"UW Orbital Engineering Design Team",
|
||||
start_date: "Sep 2022", end_date: "present",
|
||||
location: "Waterloo",
|
||||
tasks: (
|
||||
[Implemented the Diffie-Hellman key exchange in C using a 3072-bit prime number and 256-bit keys],
|
||||
[Managed a team of 10 to develop electrical and power, battery management, ADCS, and computer systems],
|
||||
[Led the design of the custom transceiver by reviewing schematics and optimizing the layout per RF guidelines],
|
||||
[Validated PCBs with power and RF testing, resulting in a recorded 34 dB gain measured by VNA S-parameters],
|
||||
)
|
||||
)
|
||||
]
|
||||
|
||||
= Projects
|
||||
#set strong(delta: SMALL_STRONG)
|
||||
|
||||
#indent[
|
||||
#project("Produce Palate", "https://github.com/christopherlam888/produce-palate", "Python, OpenCV, Scikit-learn, Flask")
|
||||
- Created an image preprocessing algorithm to reduce noise, perform contour detection, and enhance colours
|
||||
- Trained an AI image classifier model with KNN, Random Forest, and SVM algorithms tuned using grid search
|
||||
- Achieved 96% accuracy recognizing 5 distinct classes of fruits and vegetables in a web game built with Flask
|
||||
|
||||
#project("Snake Wave", "https://github.com/olivia-yong/htn2023", "Python, OpenCV, Pygame, Flask, PostgreSQL, bcrypt")
|
||||
- Designed a snake game controlled by hand gestures using OpenCV and Google's MediaPipe ML model
|
||||
- Implemented a Flask API with PostgreSQL to handle user authentication with bcrypt and track a leaderboard
|
||||
|
||||
#project("The Everyday Watch Collector App", "https://github.com/christopherlam888/the-ewc", "Kotlin, XML, React, NodeJS, Express, MongoDB, JavaScript")
|
||||
- Created a user-friendly interface to display 100+ glossary entries and 40+ videos using Kotlin and XML
|
||||
- Utilized Retrofit and Gson to retrieve API data in JSON with seamless fallback to local data upon Internet loss
|
||||
- Automated unit and instrumented tests using Espresso to ensure code quality and minimize regressions
|
||||
- Developed a contributions page using React to send web inputs through a POST request to the REST API
|
||||
- Deployed a REST API using NodeJS, Express, and MongoDB to perform CRUD operations on a cloud database
|
||||
|
||||
#project("Catholic Companion (Saints App)", "https://github.com/christopherlam888/saints-app", "React Native, TypeScript, Python, BeautifulSoup")
|
||||
- Developed an app to display a saint of the day and a list of Catholic prayers in React Native and TypeScript
|
||||
- Devised a web scraping algorithm to extract data with BeautifulSoup and clean data with LanguageTool
|
||||
- Optimized performance with multithreading pools, resulting in a 5x increase in speed to retrieve 250 listings
|
||||
|
||||
#project("RecipeReady", "https://github.com/christopherlam888/recipe-ready-frontend", "Python, Selenium, Flutter, Dart")
|
||||
- Produced a recipe app to help users plan daily meals with a weekly schedule and a generated grocery list
|
||||
- Gathered 500+ recipes by scraping with Selenium, and created a REST API to get data from a cloud database
|
||||
|
||||
]
|
||||
|
||||
= Education
|
||||
|
||||
#indent[
|
||||
#work_entry(
|
||||
"BASc Mechatronics Engineering",
|
||||
"University of Waterloo",
|
||||
start_date: "2022", end_date: "2027",
|
||||
tasks: (
|
||||
[GPA: 4.0/93%, Dean’s List, Faculty of Engineering Entrance Scholarship, President's Scholarship of Distinction],
|
||||
[Courses & Concepts: Object-Oriented Programming, Algorithms and Data Structures, Circuits, Digital Logic],
|
||||
)
|
||||
)
|
||||
]
|
||||
|
||||
= Honours
|
||||
|
||||
#show link: underline
|
||||
|
||||
#block(inset: (right: 0.5em))[
|
||||
#grid(
|
||||
columns: (11fr, 2fr),
|
||||
column-gutter: 1cm,
|
||||
[
|
||||
- 1st Place CubeSat Design Challenge, Canadian Satellite Design Challenge
|
||||
- The Governor General's Academic Medal (Bronze Medal), Governor General of Canada
|
||||
],
|
||||
align(right)[*#text(("2023", "2022").join("\n"))*]
|
||||
)
|
||||
]
|
210
Daniel Chen.typ
210
Daniel Chen.typ
@@ -1,210 +0,0 @@
|
||||
#import "fontawesome.typ": fa, globe, github, linkedin, envelope
|
||||
#import "lib.typ": template, work_entry, project, indent, SMALL_STRONG, DEFAULT_STRONG
|
||||
|
||||
// orange!!
|
||||
#let color = blue // rgb("#ff983e")
|
||||
#let name = "Daniel Chen"
|
||||
|
||||
#let contact_data = ((
|
||||
service: fa[#globe],
|
||||
display: "eggworld.me",
|
||||
link: "https://eggworld.me",
|
||||
), (
|
||||
service: fa[#github],
|
||||
display: "github.com/potatoeggy",
|
||||
link: "https://github.com/potatoeggy",
|
||||
), (
|
||||
service: fa[#linkedin],
|
||||
display: "linkedin.com/in/potatoeggy",
|
||||
link: "https://www.linkedin.com/in/potatoeggy/",
|
||||
), (
|
||||
service: fa[#envelope],
|
||||
display: "d7chen@uwaterloo.ca",
|
||||
link: "mailto://d7chen@uwaterloo.ca",
|
||||
),)
|
||||
|
||||
#show: doc => template(name, contact_data, color, doc)
|
||||
|
||||
// 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
|
||||
|
||||
#indent[
|
||||
*Languages:* Python, C/C++, VHDL, Verilog, MATLAB, Rust, Java, SQL, JavaScript,
|
||||
HTML, CSS \
|
||||
// Qt, Jest / Pytest, Apollo, Prisma, Rails
|
||||
*Tools:* Linux, Git, PostgreSQL, Qt, STM32, Quartus Prime, Valgrind, GDB
|
||||
]
|
||||
|
||||
= Projects
|
||||
#set strong(delta: SMALL_STRONG)
|
||||
|
||||
#indent[
|
||||
#project("FPGA Diagnostic Tool", "C, Verilog, Tcl")
|
||||
- Assembled various IP cores in Quartus and Verilog to create a diagnostic tool
|
||||
for an FPGA board with Tcl scripts
|
||||
- Developed a C program to communicate with the FPGA over UART and display
|
||||
diagnostic information
|
||||
|
||||
#project("PNG Validator", "C")
|
||||
- Created a PNG file validator to find common errors and corruption by checking
|
||||
metadata and computing CRCs
|
||||
// memory safety w/Valgrind
|
||||
- Ran tests behind Valgrind to ensure memory safety, prevent memory leaks, and
|
||||
maintain accuracy
|
||||
|
||||
#project(
|
||||
"Box Box Revolution",
|
||||
"Rust, STM32",
|
||||
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")
|
||||
- Programmed an FPGA to heat/cool a theoretical room to a target temperature given
|
||||
switch-controlled inputs
|
||||
- Added conditions such as avoiding changes if windows are open, vacation mode,
|
||||
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
|
||||
|
||||
]
|
||||
|
||||
= Experience
|
||||
|
||||
#indent[
|
||||
#work_entry(
|
||||
"Software Developer 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],
|
||||
[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:
|
||||
|
||||
- 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.
|
||||
- Increment the minor version for every major change. These can include:
|
||||
- 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.
|
||||
- The major version represents the current academic year, e.g., both post-2A and 2B would be v2.
|
||||
- The minor version represents the current academic term, e.g., 2A would be v2.1. the x.0 releases are reserved for beta changes.
|
||||
- The patch versionr is incremented for any other reason.
|
||||
|
806
fontawesome.typ
806
fontawesome.typ
File diff suppressed because it is too large
Load Diff
193
lib.typ
193
lib.typ
@@ -1,63 +1,58 @@
|
||||
#import "fontawesome.typ": github, fa, link-icon
|
||||
#import "fontawesome.typ": github, fa
|
||||
|
||||
#let DEFAULT_STRONG = 300;
|
||||
#let SMALL_STRONG = 200;
|
||||
|
||||
#let TITLE_FONT = "Bitter"
|
||||
#let TITLE_FONT = "Calibri"
|
||||
#let HEADING_FONT = TITLE_FONT
|
||||
#let BODY_FONT = "Open Sans"
|
||||
#let BODY_FONT = "Calibri"
|
||||
|
||||
#let BODY_FONT_SIZE = 10pt
|
||||
#let HEADING_FONT_SIZE = 0.95em
|
||||
#let TITLE_FONT_SIZE = 2em
|
||||
#let BODY_FONT_SIZE = 11pt
|
||||
#let HEADING_FONT_SIZE = 1.1em
|
||||
#let TITLE_FONT_SIZE = 1.9em
|
||||
|
||||
#let HEADING_LINE_GAP = 3mm
|
||||
#let BODY_LINE_HEIGHT = 0.8em
|
||||
#let HEADING_LINE_GAP = 1.2mm
|
||||
#let BODY_LINE_HEIGHT = 0.6em
|
||||
|
||||
// rest = not top
|
||||
#let PAGE_MARGINS = (rest: 0.5in, top: 0.4in, left: 0.4in, bottom: 0.4in)
|
||||
|
||||
// Format locations.
|
||||
#let format_location(location) = {
|
||||
[_#block(above: 0.7em, location)_]
|
||||
}
|
||||
#let PAGE_MARGINS = (rest: 0.35in, top: 0.3in, bottom: 0.3in)
|
||||
|
||||
#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).
|
||||
#let cv_entry(left_content: none, right_content: none, details: none) = {
|
||||
stack(
|
||||
dir: ttb,
|
||||
spacing: 0.9em,
|
||||
grid(columns: (11fr, 3fr), column-gutter: 1cm, {
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
set align(left)
|
||||
left_content
|
||||
}, {
|
||||
set strong(delta: SMALL_STRONG)
|
||||
set align(right)
|
||||
right_content
|
||||
}),
|
||||
{
|
||||
set align(left)
|
||||
set strong(delta: SMALL_STRONG)
|
||||
details
|
||||
},
|
||||
)
|
||||
spacing: 0.6em,
|
||||
grid(
|
||||
columns: (13fr, 3fr),
|
||||
column-gutter: 0.5cm,
|
||||
{
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
set align(left)
|
||||
left_content
|
||||
},
|
||||
{
|
||||
set strong(delta: SMALL_STRONG)
|
||||
set align(right)
|
||||
right_content
|
||||
}
|
||||
),
|
||||
{
|
||||
set align(left)
|
||||
set strong(delta: SMALL_STRONG)
|
||||
details
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
// Entry for work.
|
||||
#let work_entry(
|
||||
role,
|
||||
company,
|
||||
tools: none,
|
||||
tasks: none,
|
||||
start_date: none,
|
||||
end_date: none,
|
||||
location: none,
|
||||
) = {
|
||||
#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none, one_line: true) = {
|
||||
let task_list = if tasks != none {
|
||||
let list = []
|
||||
for task in tasks {
|
||||
@@ -67,86 +62,76 @@
|
||||
} else {
|
||||
none
|
||||
}
|
||||
cv_entry(left_content: {
|
||||
set par(leading: 0.75em)
|
||||
text(1.1em)[*#role*]
|
||||
cv_entry(
|
||||
left_content: {
|
||||
text(1em)[*#role*, ]
|
||||
text[#emph[#company]]
|
||||
if location != none {
|
||||
text[_, #location _]
|
||||
}
|
||||
},
|
||||
right_content: {
|
||||
[*#start_date -- #end_date*]
|
||||
|
||||
if tools != none {
|
||||
text[ | _ #tools _ ]
|
||||
}
|
||||
|
||||
"\n"
|
||||
set strong(delta: SMALL_STRONG)
|
||||
text[*#company*]
|
||||
}, right_content: {
|
||||
[*#start_date -- #end_date*]
|
||||
|
||||
if location != none {
|
||||
"\n" + format_location(location)
|
||||
}
|
||||
}, details: task_list)
|
||||
},
|
||||
details: task_list
|
||||
)
|
||||
}
|
||||
|
||||
#let project(title, tools, repo_link: none, demo_link: none) = {
|
||||
#let project(title, repo_link, tools) = {
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
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 _ ]
|
||||
link(repo_link)[#text(1em)[*#title* #fa(github)]] + [ | _ #tools _]
|
||||
}
|
||||
|
||||
|
||||
// Set name and contact data and format headings
|
||||
#let template(name, contact_data, color, doc) = {
|
||||
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||
set list(indent: 1em, marker: [•])
|
||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||
set list(indent: 1.25em, marker: [•])
|
||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
||||
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 }],)
|
||||
|
||||
let header = {
|
||||
align(center)[
|
||||
#text(size: TITLE_FONT_SIZE, font: TITLE_FONT)[*#name*]
|
||||
#block(above: 0em, below: 0.6em)
|
||||
#set text(fill: rgb("#444"))
|
||||
#{
|
||||
if contact_data != none and contact_data.len() > 0 {
|
||||
let elements = for el in contact_data {
|
||||
(link(el.link)[#{el.service + " " + el.display}],)
|
||||
}
|
||||
// we love hacks
|
||||
elements.slice(0, 2).join(" | ")
|
||||
"\n"
|
||||
elements.slice(2).join(" | ")
|
||||
}
|
||||
text(1em)[#elements.join(" | ")]
|
||||
}
|
||||
}
|
||||
]
|
||||
#v(3pt)
|
||||
]
|
||||
}
|
||||
|
||||
show heading.where(level: 1): i => {
|
||||
set align(left + horizon)
|
||||
let title = smallcaps(i.body)
|
||||
let title = upper(i.body)
|
||||
|
||||
let colored_line(header_text) = style(styles => {
|
||||
let size = measure(header_text, styles)
|
||||
|
||||
// 100% - spacing - width of text
|
||||
line(
|
||||
length: 100% - HEADING_LINE_GAP - size.width,
|
||||
stroke: (paint: color, thickness: 2pt, cap: "round"),
|
||||
)
|
||||
})
|
||||
|
||||
set block(above: 0.9em, below: 0.75em)
|
||||
set text(size: HEADING_FONT_SIZE, fill: color, font: HEADING_FONT)
|
||||
stack(
|
||||
dir: ltr,
|
||||
spacing: HEADING_LINE_GAP,
|
||||
title,
|
||||
box(height: 2pt, fill: color, colored_line(title)),
|
||||
set block(above: 1em, below: 0.75em)
|
||||
set text(size: BODY_FONT_SIZE, fill: color, font: HEADING_FONT)
|
||||
stack(
|
||||
dir: ttb,
|
||||
spacing: HEADING_LINE_GAP,
|
||||
|
||||
title,
|
||||
line(length: 100%, stroke: (paint: color, thickness: 0.5pt))
|
||||
)
|
||||
|
||||
}
|
||||
doc
|
||||
block(
|
||||
stroke: (paint: color, thickness: 3pt),
|
||||
inset: 1.5em,
|
||||
{
|
||||
header
|
||||
doc
|
||||
}
|
||||
)
|
||||
}
|
||||
|
BIN
monogram.png
Normal file
BIN
monogram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Reference in New Issue
Block a user