[WIP] hardcoded succ and error msg
This commit is contained in:
@@ -32,9 +32,6 @@ async fn index(
|
|||||||
p {
|
p {
|
||||||
mark { "TODO: Explanation of AEF / digital shadows / search game" }
|
mark { "TODO: Explanation of AEF / digital shadows / search game" }
|
||||||
}
|
}
|
||||||
p {
|
|
||||||
mark { "TODO: Show optional SUCC message" }
|
|
||||||
}
|
|
||||||
|
|
||||||
div.mb-sm {
|
div.mb-sm {
|
||||||
(client.get_display_name())
|
(client.get_display_name())
|
||||||
@@ -75,7 +72,7 @@ async fn index(
|
|||||||
li.card {
|
li.card {
|
||||||
span {
|
span {
|
||||||
span.font-headline.rank.text-muted { (rank.rank) "." }
|
span.font-headline.rank.text-muted { (rank.rank) "." }
|
||||||
@if rank.client == client { (PreEscaped("<mark>")) }
|
@if rank.client == client { (PreEscaped("<mark id='ranking'>")) }
|
||||||
(rank.client.get_display_name())
|
(rank.client.get_display_name())
|
||||||
@if rank.client == client { (PreEscaped("</mark>")) }
|
@if rank.client == client { (PreEscaped("</mark>")) }
|
||||||
}
|
}
|
||||||
|
35
src/page.rs
35
src/page.rs
@@ -83,20 +83,39 @@ impl Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main.container {
|
main.container {
|
||||||
@if self.has_msg() {
|
article class="succ w-full" {
|
||||||
section {
|
header {
|
||||||
@if let Some(succ) = self.succ {
|
"Camera found"
|
||||||
p class="succ" {
|
}
|
||||||
(succ)
|
"✨ You are a star ✨ Star dust sprinkle, sprinkle. "
|
||||||
|
a href="#ranking" {
|
||||||
|
"See your ranking"
|
||||||
|
}
|
||||||
|
footer {
|
||||||
|
"Rear Exit Cam"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@if let Some(err) = self.err{
|
|
||||||
p class="err" {
|
article class="name w-full" {
|
||||||
(err)
|
header {
|
||||||
|
"Camera found"
|
||||||
|
}
|
||||||
|
"text"
|
||||||
|
footer {
|
||||||
|
"Name of Camera"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article class="error w-full" {
|
||||||
|
header {
|
||||||
|
"Camera found"
|
||||||
|
}
|
||||||
|
"text"
|
||||||
|
footer {
|
||||||
|
"Name of Camera"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
section { (content) }
|
section { (content) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -95,6 +95,12 @@ input[type="submit"]:active {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.w-full {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 40rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.small {
|
.small {
|
||||||
font-size: .8rem;
|
font-size: .8rem;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user