From 7f2da56441ddf44e87a263630a15bc85e33986c4 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 12 Jan 2024 23:09:34 +0100 Subject: [PATCH] Update nav --- src/app/components/nav.rs | 16 ++++++++++++++-- src/app/pages/posts.rs | 2 +- style/nav.css | 27 +++++++++++++++++---------- 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/app/components/nav.rs b/src/app/components/nav.rs index 49f5348..5e6ee8c 100644 --- a/src/app/components/nav.rs +++ b/src/app/components/nav.rs @@ -5,11 +5,23 @@ use leptos_router::*; pub fn Nav() -> impl IntoView { let (mobile_menu, set_mobile_menu) = create_signal(false); + let mobile_burger = move || { + if mobile_menu() { + view! { } + } else { + view! { } + } + }; + view! {