33 lines
861 B
Typst
33 lines
861 B
Typst
#import "@preview/shadowed:0.3.0": shadow
|
|
#import "../pallete.typ": palette
|
|
|
|
#let cover(img: bytes, part: content, description: content) = {
|
|
page(
|
|
background: image(
|
|
img,
|
|
height: 100%,
|
|
),
|
|
margin: 0pt,
|
|
)[
|
|
#align(
|
|
bottom,
|
|
shadow(blur: 140pt, fill: rgb(0, 0, 0, 50%), radius: -50pt, rect(
|
|
width: 100%,
|
|
fill: palette.secondary.at("900"),
|
|
inset: 2.25cm,
|
|
{
|
|
show heading: set text(26pt, font: "Arial", fill: white)
|
|
heading(bookmarked: true, numbering: none, strong(part))
|
|
par(text(size: 26pt, font: "Arial", fill: palette.gray.at("50"), weight: "bold", description))
|
|
par(
|
|
text(
|
|
size: 12pt,
|
|
fill: palette.gray.at("300"),
|
|
)[Individuelle praktische Arbeit],
|
|
)
|
|
},
|
|
)),
|
|
)
|
|
]
|
|
}
|