[TASK] style found cams

This commit is contained in:
Marie Birner
2025-08-03 11:00:52 +02:00
parent ee4972b25c
commit 631b1a9bb6
2 changed files with 35 additions and 12 deletions

View File

@@ -36,7 +36,7 @@ async fn index(
mark { "TODO: Show optional SUCC message" } mark { "TODO: Show optional SUCC message" }
} }
div { div.mb-sm {
(client.get_display_name()) (client.get_display_name())
", do you want to be named something different? No worries, change here 👇" ", do you want to be named something different? No worries, change here 👇"
} }
@@ -51,7 +51,7 @@ async fn index(
} }
} }
p { p.mb-0 {
"You have found " "You have found "
(sightings.len()) (sightings.len())
"/" "/"
@@ -59,19 +59,15 @@ async fn index(
" cameras:" " cameras:"
progress value=(sightings.len()) max=(amount_total_cameras); progress value=(sightings.len()) max=(amount_total_cameras);
} }
p {
ul.iterated { ol.flex.small {
@for (idx, sighting) in sightings.iter().enumerate() { @for (idx, sighting) in sightings.iter().enumerate() {
li.card { li {
span { (sighting.camera.name)
span.font-headline.rank.text-muted { (idx+1) }
(sighting.camera.name)
}
}
} }
} }
} }
p { p {
h2 { "Highscore" } h2 { "Highscore" }
ul.iterated { ul.iterated {

View File

@@ -82,12 +82,39 @@ input[type="submit"]:active {
font-size: 1.3rem; font-size: 1.3rem;
} }
.mb-sm {
margin-bottom: .5rem;
}
.mb-0 {
margin-bottom: 0;
}
.flex {
display: flex;
flex-wrap: wrap;
}
.small {
font-size: .8rem;
}
@media (min-width: 768px) { @media (min-width: 768px) {
.gap-lg { .gap-lg {
grid-gap: 5rem; grid-gap: 5rem;
} }
} }
/** custom ol style */
ol.small.flex {
padding-left: 1rem;
font-family: 'Courier New', monospace;
}
ol.small.flex>li {
margin-right: 3rem;
}
/* custom ul style */ /* custom ul style */
ul.iterated { ul.iterated {
padding-left: unset; padding-left: unset;