58 lines
1.2 KiB
Typst
58 lines
1.2 KiB
Typst
#let companytext(size, body, style: "normal") = text(
|
|
size: 12pt,
|
|
weight: "medium",
|
|
)[#body]
|
|
|
|
#let blurbtext(size, body, style: "normal") = text(
|
|
size: 8pt,
|
|
style: style,
|
|
weight: "light",
|
|
)[#body]
|
|
|
|
#let minimalbc(
|
|
company_name: "Company Name",
|
|
blurb: "Innovative solutions for modern businesses",
|
|
social_user: "user.101",
|
|
email_address: "me@me.com",
|
|
website: "example.com",
|
|
bg_image: none,
|
|
geo_size: "eu",
|
|
body,
|
|
) = {
|
|
set text(font: "Pixelify Sans")
|
|
set text(8pt)
|
|
let pz = geo_size + "-business-card"
|
|
|
|
set page(paper: pz, fill: white)
|
|
|
|
if bg_image != none {
|
|
place(bg_image)
|
|
}
|
|
|
|
grid(
|
|
columns: 100%,
|
|
rows: (50%, 10%, 35%),
|
|
gutter: 0.5mm,
|
|
grid(
|
|
columns: 100%,
|
|
rows: (40%, 20%, 40%),
|
|
gutter: 0mm,
|
|
companytext(14pt, company_name),
|
|
[],
|
|
grid.cell(colspan: 1, blurbtext(10pt, blurb)),
|
|
),
|
|
[],
|
|
grid(
|
|
columns: (12%, 88%),
|
|
rows: (33%, 33%, 34%),
|
|
align: bottom + left,
|
|
gutter: 0.5mm,
|
|
grid.cell("fedi:", align: right),
|
|
grid.cell(social_user, align: left),
|
|
grid.cell("email:", align: right),
|
|
grid.cell(email_address, align: left),
|
|
grid.cell("web:", align: right),
|
|
grid.cell(website, align: left),
|
|
)
|
|
)
|
|
}
|