add shutters page first work
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user