Add more power tools and make things prettier

This commit is contained in:
Constantin Gierczak--Galle 2024-09-15 20:07:10 +02:00
parent 9a1b96218b
commit 00a9dcea67
No known key found for this signature in database
2 changed files with 25 additions and 6 deletions

22
epi.typ
View file

@ -10,7 +10,7 @@
libepi.card(name: "Défonceuse",
protection_items: (libepi.Hearing, libepi.Shield),
forbidden_items: (),
referent: "cst1",
referent: ("cst1",),
instructions: "truc truc truc",
min_help: 1
),
@ -31,7 +31,25 @@
forbidden_items: (libepi.NoGloves,),
instructions: [],
warning: [Ne surtout pas mettre de gants, ils risqueraient d'être emportés
avec les mains dans la mèche.]
avec les mains dans la mêche.]
),
libepi.card(name: "CNC",
protection_items: (libepi.Hearing, libepi.Glasses,),
forbidden_items: (),
referent: ("Sel", "Rémy"),
instructions: [],
warning: []
),
libepi.card(name: "Imprimante 3D",
protection_items: (),
forbidden_items: (),
referent: ("Sel", "Rémy"),
instructions: [
- Allumer la hotte de l'imprimante
],
//warning: []
),
)

View file

@ -36,25 +36,26 @@ instructions: none, note: none, warning: none, min_help: 0) = {
#let generate_single_card(version, card) = {
set page(header: [Fiche EPI HackENS v#version])
set page(footer: [HackENS, CC-BY-SA-NC 2.0])
[
#set align(center)
#text(size: 40pt, weight: "bold")[#card.name]
]
[
#if card.referent != none [
#text(size: 20pt)[Référent·es: #card.referent]
#text(size: 20pt)[#text(weight: "bold")[Référent·es:] #card.referent.join(", ")]
] else [
#text(size: 20pt)[Référent·es: #text(style: "italic")[Demander à un·e respo]]
#text(size: 20pt)[#text(weight: "bold")[Référent·es:] #text(style: "italic")[Demander à un·e respo]]
]
]
linebreak()
[
#let plural = if card.min_help > 0 [s] else []
#if card.min_help > 0 [
#text(size: 20pt)[Utilisation: au moins
#text(size: 20pt)[#text(weight: "bold")[Utilisation:] au moins
#text(weight: "bold")[#str(card.min_help + 1)] personne#plural]
] else [
#text(size: 20pt)[Utilisation: peut s'utiliser seul·e]
#text(size: 20pt)[#text(weight: "bold")[Utilisation:] peut s'utiliser seul·e]
]
]
linebreak()