Adds education function

This commit is contained in:
Dennis Schoepf 2024-09-13 22:41:24 +02:00
parent a53633fc98
commit 68da6a26af

View file

@ -1,25 +1,59 @@
#let timeframe(from, to) = { #let pill(fill, content) = {
block( block(
inset: 4pt, inset: 4pt,
fill: luma(240), fill: fill,
radius: 3pt, radius: 3pt,
text(luma(20), [#from - #to]), text(black, [#content]),
) )
} }
#let work(company, from, to, content) = { #let education(degree, university, from, to, location, content) = {
grid( grid(
align: horizon, align: horizon,
rows: (auto, auto),
columns: (auto, auto, auto),
grid.cell(
inset: ( inset: (
top: 10pt, bottom: 6pt,
bottom: 6pt
), ),
gutter: 8pt, colspan: 3,
columns: (auto, auto), stack(
[== >> Digital H GmbH], dir: ltr,
timeframe(from, to) spacing: 6pt,
text(13pt, [*#degree*]),
pill(luma(230), [#from - #to]),
pill(luma(200), location),
),
),
text(luma(90), [*#university*]),
) )
v(4pt)
content
}
#let work(role, company, from, to, location, content) = {
grid(
align: horizon,
rows: (auto, auto),
columns: (auto, auto, auto),
grid.cell(
inset: (
bottom: 6pt,
),
colspan: 3,
stack(
dir: ltr,
spacing: 6pt,
text(13pt, [*#role*]),
pill(luma(230), [#from - #to]),
pill(luma(200), location),
),
),
text(luma(90), [*#company*]),
)
v(4pt)
content content
} }
@ -62,12 +96,12 @@
dir: ltr, dir: ltr,
spacing: 10pt, spacing: 10pt,
text(red, 22pt, [\$ dennis\@schöpf \~>]), text(red, 22pt, [\$ dennis\@schöpf \~>]),
text(white, 22pt, [*cv*]), text(white, 22pt, [*lebenslauf*]),
), ),
text( text(
white, white,
14pt, 14pt,
positions.join(", ", last: " &\n"), positions.join("\n", last: " & "),
), ),
v(16pt), v(16pt),
stack( stack(
@ -75,8 +109,8 @@
stack( stack(
dir: ltr, dir: ltr,
spacing: 6pt, spacing: 6pt,
text(red, 11pt, [\$ \~>]), text(red, 12pt, [\$ \~>]),
text(white, 11pt, [*contact*]), text(white, 12pt, [*kontakt*]),
), ),
text( text(
white, white,