add: card prepend
This commit is contained in:
parent
e96b613f43
commit
f13433fc4b
1 changed files with 22 additions and 0 deletions
22
prepends/card.typ
Normal file
22
prepends/card.typ
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#let card(
|
||||
caption: "",
|
||||
media: (),
|
||||
score: 0,
|
||||
defense: "",
|
||||
offense: "",
|
||||
) = {
|
||||
text[= #caption (Card)
|
||||
|
||||
#html.elem("div", attrs: (class: "card"))[
|
||||
#media.at(0)
|
||||
]
|
||||
|
||||
score: #score
|
||||
|
||||
== Defense
|
||||
#defense
|
||||
|
||||
== Offense
|
||||
#offense
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue