From 00a9dcea67efa2e6dbf6295b18534782081172e0 Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Sun, 15 Sep 2024 20:07:10 +0200 Subject: [PATCH] Add more power tools and make things prettier --- epi.typ | 22 ++++++++++++++++++++-- lib/libepi.typ | 9 +++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/epi.typ b/epi.typ index 6eddb40..019ce45 100644 --- a/epi.typ +++ b/epi.typ @@ -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: [] ), ) diff --git a/lib/libepi.typ b/lib/libepi.typ index 5025b8d..6c0080f 100644 --- a/lib/libepi.typ +++ b/lib/libepi.typ @@ -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()