init business cards
This commit is contained in:
parent
8f1642d6f3
commit
dddfcc323c
5 changed files with 70 additions and 0 deletions
BIN
cards/bg.png
Normal file
BIN
cards/bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
59
cards/lib.typ
Normal file
59
cards/lib.typ
Normal file
|
@ -0,0 +1,59 @@
|
|||
#let companytext(size, body, style: "normal") = text(
|
||||
size: size,
|
||||
style: style,
|
||||
weight: "medium",
|
||||
)[#body]
|
||||
|
||||
#let blurbtext(size, body, style: "normal") = text(
|
||||
size: size,
|
||||
style: style,
|
||||
weight: "light",
|
||||
)[#body]
|
||||
|
||||
#let minimalbc(
|
||||
company_name: "Company Name",
|
||||
blurb: "Innovative solutions for modern businesses",
|
||||
signal_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(9pt)
|
||||
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("signal:", align: right),
|
||||
grid.cell(signal_user, align: left),
|
||||
grid.cell("email:", align: right),
|
||||
grid.cell(email_address, align: left),
|
||||
grid.cell("web:", align: right),
|
||||
grid.cell(website, align: left),
|
||||
)
|
||||
)
|
||||
}
|
BIN
cards/main.pdf
Normal file
BIN
cards/main.pdf
Normal file
Binary file not shown.
11
cards/main.typ
Normal file
11
cards/main.typ
Normal file
|
@ -0,0 +1,11 @@
|
|||
#import "lib.typ": minimalbc
|
||||
|
||||
#show: minimalbc.with(
|
||||
geo_size: "us",
|
||||
company_name: "Myco Systems",
|
||||
blurb: "Send us a cool message and we'll get back to you d-(´▽`)-b",
|
||||
signal_user: "Myco.100",
|
||||
email_address: "contact@myco.systems",
|
||||
website: "myco.systems",
|
||||
bg_image: image("bg.png"),
|
||||
)
|
BIN
cards/tiled.pdf
Normal file
BIN
cards/tiled.pdf
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue