moninktor/document.typ
2025-08-23 16:41:40 -04:00

26 lines
533 B
Typst

#set page(width: 65mm, height: 86mm)
#let today = datetime.today()
#let weather = json("weather.json")
#let icon = none
#if weather.current.weather_code == 0{
icon = image("icons/sun.svg", width:3em)
}
#align(center)[
#text(size:2em, weight: "bold")[#today.display("[weekday] [month repr:long] [year]")]
#v(1fr)
#grid(
columns: (1fr,2fr),
align: (center+horizon, left+horizon),
[#icon],[#text(size:3em)[#weather.current.temperature_2m #weather.current_units.temperature_2m]]
)
#v(1fr)
#read("event.txt")
#v(1fr)
]