From dd41fe48b81c45fbf09ea83ed155636c8f93dd81 Mon Sep 17 00:00:00 2001 From: marcantoinem <marc-antoine.m@outlook.com> Date: Sat, 27 Jul 2024 14:13:30 -0400 Subject: [PATCH] Add current page selector --- aep-schedule-website/src/frontend/app.rs | 12 ++++++------ .../src/frontend/components/options/state.rs | 2 +- aep-schedule-website/style/main.scss | 5 +++++ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/aep-schedule-website/src/frontend/app.rs b/aep-schedule-website/src/frontend/app.rs index 5189198..9c5c705 100644 --- a/aep-schedule-website/src/frontend/app.rs +++ b/aep-schedule-website/src/frontend/app.rs @@ -28,19 +28,19 @@ pub fn App() -> impl IntoView { <Router> <header> <nav class=is_active> - <span class="text-2xl font-bold leading-none font-sans tracking-tight">"Générateur d'horaire de l'AEP" + <span class="text-2xl font-semibold leading-none font-sans tracking-tight">"Générateur d'horaire de l'AEP" <span class="text-amber-600">"v2"</span> </span> - <A class="rounded-md font-semibold text-lg font-sans tracking-tight" href="/">"Générateur d'horaire"</A> - <A class="rounded-md font-semibold text-lg font-sans tracking-tight" href="/local">"Horaire d'un local"</A> - <A class="rounded-md font-semibold text-lg font-sans tracking-tight" href="/apropos">"À propos"</A> + <A class="rounded-md font-medium text-lg font-sans tracking-tight" href="/">"Générateur d'horaire"</A> + <A class="rounded-md font-medium text-lg font-sans tracking-tight" href="/local">"Horaire d'un local"</A> + <A class="rounded-md font-medium text-lg font-sans tracking-tight" href="/apropos">"À propos"</A> <a href="https://git.step.polymtl.ca/Lemark/aep-schedule-generator-rusty/-/issues/new" class="sources pad-left" target="_blank"> - <span class="rounded-md font-semibold text-lg font-sans tracking-tight">"Signaler un bug"</span> + <span class="rounded-md font-medium text-lg font-sans tracking-tight">"Signaler un bug"</span> <Bug weight=IconWeight::Regular size="3vh"/> </a> - <a href="https://git.step.polymtl.ca/Lemark/aep-schedule-generator-rusty" class="sources" target="_blank" ><span class="rounded-md font-semibold text-lg font-sans tracking-tight">"Sources "</span><GitlabLogo weight=IconWeight::Regular size="3vh"/></a> + <a href="https://git.step.polymtl.ca/Lemark/aep-schedule-generator-rusty" class="sources" target="_blank" ><span class="rounded-md font-medium text-lg font-sans tracking-tight">"Sources "</span><GitlabLogo weight=IconWeight::Regular size="3vh"/></a> </nav> <div class=move || is_active.get() + " hamburger" on:click=move |_| { set_active.update(|text| { diff --git a/aep-schedule-website/src/frontend/components/options/state.rs b/aep-schedule-website/src/frontend/components/options/state.rs index cd6580b..23537ae 100644 --- a/aep-schedule-website/src/frontend/components/options/state.rs +++ b/aep-schedule-website/src/frontend/components/options/state.rs @@ -56,7 +56,7 @@ impl Default for OptionState { max_nb_conflicts: create_rw_signal(0), week: std::array::from_fn(|_i| create_rw_signal(0)), day_off: create_rw_signal(3), - morning: create_rw_signal(0), + morning: create_rw_signal(1), finish_early: create_rw_signal(1), } } diff --git a/aep-schedule-website/style/main.scss b/aep-schedule-website/style/main.scss index 8674d58..2232433 100644 --- a/aep-schedule-website/style/main.scss +++ b/aep-schedule-website/style/main.scss @@ -226,4 +226,9 @@ nav.active { @media screen and (max-width: 1000px) { top: 0; } +} + +[aria-current]:not([aria-current="false"]) { + font-weight: bold; + text-decoration: underline rgb(245 158 11); } \ No newline at end of file -- GitLab