feat: jane street and compact mode

This commit is contained in:
eggy
2026-07-30 00:49:01 -04:00
parent 9a7c7d6ee1
commit 7e12fea56c
3 changed files with 136 additions and 107 deletions
+82 -61
View File
@@ -1,4 +1,4 @@
#import "fontawesome.typ": github, fa, link-icon
#import "fontawesome.typ": fa, github, link-icon
#let DEFAULT_STRONG = 300;
#let SMALL_STRONG = 300;
@@ -19,14 +19,16 @@
#let HEADING_DETAILS_LIST_SPACING = 0.9em
#let DETAILS_LIST_SPACING = 0.7em
#let DETAILS_LIST_INDENT = 1.25em
#let DETAILS_LIST_SPACING = 0.6em
#let DETAILS_LIST_INDENT = 1em
#let JOB_TITLE_FONT_SIZE = 1.05em
#let LOGO_IMAGE_HEIGHT = 2.25em
#let LOGO_IMAGE_GAP = 0.75em
#let COMPACT = true
// rest = not top
#let PAGE_MARGINS = (right: 0.425in, top: 0.3in, left: 0.375in, bottom: 0.4in)
@@ -41,25 +43,38 @@
// 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 detail_block = if details == none or details.len() == 0 {
()
} else {
(
{
block(inset: (right: 0.75em), {
set strong(delta: SMALL_STRONG)
show link: underline
list(..details)
})
},
)
}
stack(
dir: ttb,
spacing: HEADING_DETAILS_LIST_SPACING,
grid(columns: (15fr, 5fr), column-gutter: 0cm, {
set strong(delta: DEFAULT_STRONG)
set align(left)
left_content
}, {
set strong(delta: SMALL_STRONG)
set align(right)
right_content
}),
{
block(inset: (right: 0.75em), {
grid(
columns: (15fr, 5fr),
column-gutter: 0cm,
{
set strong(delta: DEFAULT_STRONG)
set align(left)
left_content
},
{
set strong(delta: SMALL_STRONG)
show link: underline
list(..details)
})
},
set align(right)
right_content
},
),
..detail_block,
)
}
@@ -75,54 +90,60 @@
company_link: none,
logo: none,
) = {
cv_entry(left_content: {
let logo_img = if logo != none {
// image("../logos/" + logo, height: LOGO_IMAGE_HEIGHT)
none
} else {
none
}
cv_entry(
left_content: {
let logo_img = if logo != none {
// image("../logos/" + logo, height: LOGO_IMAGE_HEIGHT)
none
} else {
none
}
let company_text = if company_link == none {
[#company]
} else {
[#link(company_link)[#company]]
}
let company_text = if company_link == none {
[#company]
} else {
[#link(company_link)[#company]]
}
// company title + role
let left_text = stack(
align(horizon, {
text(JOB_TITLE_FONT_SIZE)[*#company_text*]
"\n"
set strong(delta: SMALL_STRONG)
[_#role _]
})
)
// render with logo if exists
if logo_img != none {
stack(
dir: ltr,
spacing: LOGO_IMAGE_GAP,
logo_img,
left_text,
// company title + role
let left_text = stack(
align(horizon, {
text(size: JOB_TITLE_FONT_SIZE, fill: black)[*#company_text*]
if COMPACT {
" | "
} else {
"\n"
}
set strong(delta: SMALL_STRONG)
[_#role _]
}),
)
} else {
left_text
}
if tools != none {
// text[ | _ #tools _ ]
}
}, right_content: {
text(style: "italic")[#start_date -- #end_date]
// render with logo if exists
if logo_img != none {
stack(
dir: ltr,
spacing: LOGO_IMAGE_GAP,
logo_img,
left_text,
)
} else {
left_text
}
if location != none {
"\n" + format_location(location)
}
}, details: tasks)
if tools != none {
// text[ | _ #tools _ ]
}
},
right_content: {
text(style: "italic")[#start_date -- #end_date]
if not COMPACT and location != none {
"\n" + format_location(location)
}
},
details: tasks,
)
}
#let project(title, tools, repo_link: none, demo_link: none, tasks: none) = {
+2 -2
View File
@@ -21,8 +21,8 @@
link: "https://www.linkedin.com/in/potatoeggy/",
), (
service: fa[#globe],
display: "eggipelago.com",
link: "https://eggipelago.com",
display: "eggworld.me",
link: "https://eggworld.me",
))
#show: doc => template(name, color, doc)