diff --git a/cards/lib.typ b/lib/card.typ similarity index 100% rename from cards/lib.typ rename to lib/card.typ diff --git a/mir_cards/bg.png b/mir_cards/bg.png new file mode 100644 index 0000000..ad4811e Binary files /dev/null and b/mir_cards/bg.png differ diff --git a/mir_cards/card.typ b/mir_cards/card.typ new file mode 100644 index 0000000..db97333 --- /dev/null +++ b/mir_cards/card.typ @@ -0,0 +1,58 @@ +#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), + ) + ) +} diff --git a/mir_cards/main.pdf b/mir_cards/main.pdf new file mode 100644 index 0000000..fc46510 Binary files /dev/null and b/mir_cards/main.pdf differ diff --git a/mir_cards/main.typ b/mir_cards/main.typ new file mode 100644 index 0000000..98e8346 --- /dev/null +++ b/mir_cards/main.typ @@ -0,0 +1,11 @@ +#import "./card.typ": minimalbc + +#show: minimalbc.with( + geo_size: "us", + company_name: "MOVEMENT INFRASTRUCTURE RESEARCH", + blurb: "MIR is an R&D lab for contesting tech's role in movement repression, and unlocking its potential for real liberation.", + social_user: "mir@infosec.exchange", + email_address: "info@mirnet.org", + website: "mirnet.org", + bg_image: image("bg.png"), +) diff --git a/cards/bg.png b/myco_cards/bg.png similarity index 100% rename from cards/bg.png rename to myco_cards/bg.png diff --git a/cards/main.pdf b/myco_cards/main.pdf similarity index 100% rename from cards/main.pdf rename to myco_cards/main.pdf diff --git a/cards/main.typ b/myco_cards/main.typ similarity index 88% rename from cards/main.typ rename to myco_cards/main.typ index c2755ef..82b4c4d 100644 --- a/cards/main.typ +++ b/myco_cards/main.typ @@ -1,4 +1,4 @@ -#import "lib.typ": minimalbc +#import "../lib/card.typ": minimalbc #show: minimalbc.with( geo_size: "us", diff --git a/cards/tiled.pdf b/myco_cards/tiled.pdf similarity index 100% rename from cards/tiled.pdf rename to myco_cards/tiled.pdf