Compare commits

...

4 Commits

4 changed files with 19 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*~
/dist
# Added by cargo

View File

@ -18,3 +18,7 @@ version = "0.3"
features = [
'KeyboardEvent',
]
[profile.release]
lto = true
opt-level = 's'

View File

@ -56,6 +56,13 @@ p.orateurice {
text-align: center;
}
p.orateurice button{
margin: auto;
display: block;
margin-top: 10px;
}
li.dernier_arrive {
font-style: italic;
}
@ -94,3 +101,8 @@ section.queue {
.hidden {
display: none;
}
#bouton_next {
font-size: 1.5rem;
font-weight: bold;
}

View File

@ -196,14 +196,6 @@ struct BarreCôtéProp<'a> {
queues: &'a Signal<Vec<ÉtatQueue<'a>>>,
}
fn classe_visible(b: bool) -> &'static str {
if b {
"visible"
} else {
"hidden"
}
}
#[component]
fn Explications<'a, G: Html>(cx: Scope<'a>) -> View<G> {
details()
@ -221,7 +213,6 @@ fn Explications<'a, G: Html>(cx: Scope<'a>) -> View<G> {
#[component]
fn BarreCôté<'a, G: Html>(cx: Scope<'a>, p: BarreCôtéProp<'a>) -> View<G> {
let conf_visible = create_signal(cx, false);
let nom_nouvelle_file = create_signal(cx, String::new());
let nouvelle_file = {
let queues = p.queues.clone();
@ -356,7 +347,7 @@ fn main() {
}
)
br {}
button(on:click=next) { "Suivantə" }
button(on:click=next, id="bouton_next") { "Suivantə" }
" "
button(on:click=pause) { "Pause" }
}