feat: emma version
content changes are required
This commit is contained in:
51
lib.typ
51
lib.typ
@@ -5,22 +5,22 @@
|
||||
|
||||
#let TITLE_FONT = "Bitter"
|
||||
#let HEADING_FONT = TITLE_FONT
|
||||
#let BODY_FONT = "Open Sans"
|
||||
#let BODY_FONT = "Calibri"
|
||||
|
||||
#let BODY_FONT_SIZE = 10pt
|
||||
#let HEADING_FONT_SIZE = 0.9em
|
||||
#let BODY_FONT_SIZE = 11pt
|
||||
#let HEADING_FONT_SIZE = 0.8em
|
||||
#let TITLE_FONT_SIZE = 1.8em
|
||||
|
||||
#let HEADING_LINE_GAP = 3mm
|
||||
#let BODY_LINE_HEIGHT = 0.75em
|
||||
#let BODY_LINE_HEIGHT = 0.65em
|
||||
|
||||
#let HEADING_DETAILS_LIST_SPACING = 1em
|
||||
#let HEADING_DETAILS_LIST_SPACING = 0.8em
|
||||
#let DETAILS_TITLE_FONT_SIZE = 1em
|
||||
|
||||
#let DETAILS_LIST_SPACING = 0.9em
|
||||
#let DETAILS_LIST_SPACING = 0.75em
|
||||
|
||||
// rest = not top
|
||||
#let PAGE_MARGINS = (right: 0.4in, rest: 0.3in)
|
||||
#let PAGE_MARGINS = (right: 0.4in, left: 0.3in, rest: 0.4in)
|
||||
|
||||
// Format locations.
|
||||
#let format_location(location) = {
|
||||
@@ -36,7 +36,7 @@
|
||||
stack(
|
||||
dir: ttb,
|
||||
spacing: HEADING_DETAILS_LIST_SPACING,
|
||||
grid(columns: (11fr, 3fr), column-gutter: 1cm, {
|
||||
grid(columns: (13fr, 3fr), column-gutter: 0.5cm, {
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
set align(left)
|
||||
left_content
|
||||
@@ -46,7 +46,7 @@
|
||||
right_content
|
||||
}),
|
||||
{
|
||||
set strong(delta: SMALL_STRONG)
|
||||
set strong(delta: DEFAULT_STRONG)
|
||||
list(tight: false, spacing: DETAILS_LIST_SPACING, marker: [•], ..details)
|
||||
},
|
||||
)
|
||||
@@ -77,23 +77,28 @@
|
||||
}, details: tasks)
|
||||
}
|
||||
|
||||
#let project(title, tools, repo_link: none, demo_link: none) = {
|
||||
#let project(title, tools, repo_link: none, demo_link: none, tasks: none) = {
|
||||
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[*#title*]]
|
||||
} else {
|
||||
text[*#title*]
|
||||
|
||||
let content_title = {
|
||||
if text_link != none {
|
||||
link(text_link)[#text[*#title*]]
|
||||
} else {
|
||||
text[*#title*]
|
||||
}
|
||||
|
||||
if demo_link != none {
|
||||
link(demo_link)[ #fa(link-icon) ]
|
||||
}
|
||||
|
||||
if repo_link != none {
|
||||
link(repo_link)[ #fa(github) ]
|
||||
}
|
||||
[ | _ #tools _ ]
|
||||
}
|
||||
|
||||
if demo_link != none {
|
||||
link(demo_link)[ #fa(link-icon) ]
|
||||
}
|
||||
|
||||
if repo_link != none {
|
||||
link(repo_link)[ #fa(github) ]
|
||||
}
|
||||
[ | _ #tools _ ]
|
||||
cv_entry(left_content: content_title, right_content: none, details: tasks)
|
||||
}
|
||||
|
||||
#let render_contact_data(data) = {
|
||||
@@ -108,7 +113,7 @@
|
||||
// Set name and contact data and format headings
|
||||
#let template(name, color, doc) = {
|
||||
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||
set list(indent: 0.65em, marker: [•])
|
||||
set list(indent: 0.75em, marker: [•])
|
||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||
set par(leading: BODY_LINE_HEIGHT)
|
||||
align(center)[
|
||||
|
||||
Reference in New Issue
Block a user