add shutters page first work

This commit is contained in:
Romulus21
2025-03-09 00:28:14 +01:00
parent 298ed6a6c9
commit c10fd3aa51
8 changed files with 432 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ pub fn App() -> impl IntoView {
<Title text="Bienvenue à la maison"/>
<div class="dark:bg-prim dark:text-second h-screen flex flex-col">
<div class="h-screen flex flex-col">
<Router>
<Navigation />
<main class="flex-1">
@@ -22,6 +22,7 @@ pub fn App() -> impl IntoView {
<Route path="/liens" view=move || view! { <Links/> }/>
<Route path="/formulaire" view=move || view! { <FormValues/> }/>
<Route path="/donnees" view=move || view! { <Data/> }/>
<Route path="/volets" view=move || view! { <Shutters/> }/>
//<Route path="/*any" view=move || view! { <NotFound/> }/>
</Routes>
</main>
@@ -49,6 +50,9 @@ pub fn Navigation() -> impl IntoView {
<a href="/donnees"
class="hover:text-third hover:border-b border-third inline-block transition-colors"
class:active-link=move || location.pathname.get() == "/donnees">Données</a>
<a href="/volets"
class="hover:text-third hover:border-b border-third inline-block transition-colors"
class:active-link=move || location.pathname.get() == "/volets">Volets</a>
</nav>
}
}