[BUGFIX] styling msg success, error, etc.

This commit is contained in:
Marie Birner
2025-08-03 13:36:55 +02:00
parent 16982d2c0d
commit 146387c439
2 changed files with 11 additions and 4 deletions

View File

@@ -95,26 +95,32 @@ impl Page {
main.container {
@if let Some(found_camera) = &self.found_camera {
article class="succ w-full" {
div.flex {
article class="succ msg" {
header { (t!("found_camera_title", name = found_camera)) }
(t!("found_camera_body"))
" "
a href="#ranking" { "See your ranking" }
footer { (found_camera) }
}
}
}
@if self.new_name {
article class="name w-full" {
div.flex {
article class="name msg" {
header { "New name!" }
"Does it feel much different?"
}
}
}
@if let Some(err) = &self.err {
article class="error w-full" {
div.flex {
article class="error msg" {
header { (err.0) }
(err.1)
footer { (err.2) }
}
}
}
section { (content) }