From a2256bff1e92bbe2b42e1d78cf79bdf365aeb675 Mon Sep 17 00:00:00 2001 From: Kuba Kowalik Date: Sun, 1 Mar 2026 17:12:59 +0100 Subject: [PATCH] copy template into correct directory --- regulamin/typst/HSWRO-logo-mono.svg | 81 +++++++++++++++++++++++++++++ regulamin/typst/hswro.typ | 37 +++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 regulamin/typst/HSWRO-logo-mono.svg create mode 100644 regulamin/typst/hswro.typ diff --git a/regulamin/typst/HSWRO-logo-mono.svg b/regulamin/typst/HSWRO-logo-mono.svg new file mode 100644 index 0000000..82f8d11 --- /dev/null +++ b/regulamin/typst/HSWRO-logo-mono.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/regulamin/typst/hswro.typ b/regulamin/typst/hswro.typ new file mode 100644 index 0000000..0227f70 --- /dev/null +++ b/regulamin/typst/hswro.typ @@ -0,0 +1,37 @@ +#let template( + document_date: datetime.today(), + city: "Wrocław", + page_type: "a4", + header_text: "", + heading_vspace: 10%, + doc +) = { +set page( + page_type, + margin: (top: 150pt), + header: [ + #align(bottom)[#box(height: 30pt ,image("HSWRO-logo-mono.svg")) #h(1fr) #if document_date != none [#city, #document_date.display()] #header_text] + #rect( + height: 1pt, + width: 100%, + fill: black) + ], +) +show heading.where(level: 1): htext => [ + #set align(center) + #htext + #v(heading_vspace) +] +doc +} + + +#let dotted = tiling(size: (3pt, 6pt))[ + #place(rect(width: 50%, height: 100%, fill: black)) +] + +#let dotline(width: 100%) = [#rect(height: 0.5pt, width: width, fill: dotted)] + +#let signatures(who) = [#v(60pt)#columns(who.len())[ + #(who.map(name => [#dotline()#name.name\ #name.position]).join(colbreak())) +]]