2 languages
This commit is contained in:
38
src/page.rs
38
src/page.rs
@@ -62,7 +62,7 @@ impl Page {
|
||||
meta name="viewport" content="width=device-width, initial-scale=1.0";
|
||||
link rel="stylesheet" href="/static/pico.min.css";
|
||||
link rel="stylesheet" href="/static/style.css";
|
||||
title { "Digital Shadows" }
|
||||
title { (t!("digital_shadows")) }
|
||||
}
|
||||
body {
|
||||
header.container {
|
||||
@@ -70,7 +70,7 @@ impl Page {
|
||||
ul {
|
||||
li {
|
||||
a href="/" {
|
||||
strong { "Digital Shadows" }
|
||||
strong { (t!("digital_shadows")) }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -99,26 +99,28 @@ impl Page {
|
||||
article class="succ msg" {
|
||||
header { (t!("found_camera_title", name = found_camera.0)) }
|
||||
(t!("found_camera_body", amount = found_camera.1))
|
||||
footer { a href="#ranking" { "See your ranking" } }
|
||||
footer {
|
||||
a href="#ranking" { (t!("see_ranking")) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@if self.new_name {
|
||||
div.flex {
|
||||
article class="name msg" {
|
||||
header { "New name!" }
|
||||
"Does it feel much different?"
|
||||
div.flex {
|
||||
article class="name msg" {
|
||||
header { (t!("new_name_title")) }
|
||||
(t!("new_name_message"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@if let Some(err) = &self.err {
|
||||
div.flex {
|
||||
article class="error msg" {
|
||||
header { (err.0) }
|
||||
(err.1)
|
||||
footer { (err.2) }
|
||||
div.flex {
|
||||
article class="error msg" {
|
||||
header { (err.0) }
|
||||
(err.1)
|
||||
footer { (err.2) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
section { (content) }
|
||||
@@ -126,12 +128,12 @@ impl Page {
|
||||
|
||||
footer.container {
|
||||
small {
|
||||
"Footer "
|
||||
mark { "to be completed" }
|
||||
a href="#" { "with links" }
|
||||
(t!("footer_text"))
|
||||
mark { (t!("footer_todo")) }
|
||||
a href="#" { (t!("footer_links")) }
|
||||
" • "
|
||||
a target="_blank" href="https://www.digidow.eu/impressum/" {
|
||||
"Impressum"
|
||||
(t!("impressum"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user