Files
aef-website/src/index.rs
2025-08-07 10:35:30 +02:00

57 lines
1.6 KiB
Rust

use crate::{language::language, page::Page};
use axum::http::HeaderMap;
use axum_extra::extract::CookieJar;
use maud::{Markup, PreEscaped, html};
pub(super) async fn index(cookies: CookieJar, headers: HeaderMap) -> Markup {
let lang = language(&cookies, &headers);
rust_i18n::set_locale(lang.to_locale());
let page = Page::new(lang);
page.content(html! {
h1 { (t!("digital_shadows")) }
hgroup {
h2 { (PreEscaped(t!("who_owns_data"))) }
p { (t!("digital_shadow_description")) }
}
p {
(t!("artists_list"))
span.easteregg { (t!("artists_easter_egg")) }
}
blockquote {
(t!("project_quote"))
footer {
cite { (t!("project_quote_attribution")) }
}
}
p { (t!("project_description")) }
h2 { (t!("what_to_do_title")) }
div.grid.gap-lg {
article {
header { (t!("visit_booth_title")) }
(t!("visit_booth_description"))
a
href="https://www.jku.at/ars-electronica-2025-panic-yes-no/digital-shadows/"
target="_blank"
title=(t!("jku_link_title")) { (t!("find_out_more")) }
footer { (t!("location_postcity")) }
}
article {
header { (t!("play_game_title")) }
(t!("play_game_description"))
a href="/game" title=(t!("game_link_title")) { (t!("find_out_more")) }
footer { (t!("location_linz")) }
}
}
})
}