Start postcard functions in common

This commit is contained in:
Artemis Tosini 2023-09-25 20:58:24 +00:00
parent 4bfd38212f
commit b4ec250ce1
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
2 changed files with 40 additions and 0 deletions

View file

@ -61,3 +61,43 @@
address_content(width, height, card) address_content(width, height, card)
) )
} }
#let postcard_content(width, height, content_fn, card) = {
// Content block
place(
top + left,
dx: 1in/8,
dy: 1in/8,
block(
width - 2.75in,
height - 0.25in,
breakable: false,
content_fn(card)
)
)
// Stamp placement guide
place(
top + right,
dx: -0.75in,
dy: 0.25in,
image("nixowos.png", width: 0.5in)
)
// Address block
place(
horizon + right,
dx: -2in - 5in/8,
address_block(2.5in, 1in, card)
)
}
#let postcard_block(width, height, content_fn, card) = {
block(
width: width,
height: height,
breakable: false,
postcard_content(width, height, content_fn, card)
)
}

BIN
nixowos.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB