From e5a68fb6305d3335c1bd763fd5561f4de562aa90 Mon Sep 17 00:00:00 2001 From: spinline Date: Thu, 12 Feb 2026 22:23:20 +0300 Subject: [PATCH] feat: add minimal footer to protected layout --- frontend/src/components/layout/footer.rs | 30 +++++++++++++++++++++ frontend/src/components/layout/mod.rs | 1 + frontend/src/components/layout/protected.rs | 8 ++++-- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 frontend/src/components/layout/footer.rs diff --git a/frontend/src/components/layout/footer.rs b/frontend/src/components/layout/footer.rs new file mode 100644 index 0000000..8970ed7 --- /dev/null +++ b/frontend/src/components/layout/footer.rs @@ -0,0 +1,30 @@ +use leptos::prelude::*; +use crate::components::ui::separator::Separator; + +#[component] +pub fn Footer() -> impl IntoView { + let year = chrono::Local::now().format("%Y").to_string(); + + view! { + + } +} diff --git a/frontend/src/components/layout/mod.rs b/frontend/src/components/layout/mod.rs index bd9a153..9e531c5 100644 --- a/frontend/src/components/layout/mod.rs +++ b/frontend/src/components/layout/mod.rs @@ -1,3 +1,4 @@ pub mod sidebar; pub mod toolbar; +pub mod footer; pub mod protected; diff --git a/frontend/src/components/layout/protected.rs b/frontend/src/components/layout/protected.rs index 9916810..c4d37c7 100644 --- a/frontend/src/components/layout/protected.rs +++ b/frontend/src/components/layout/protected.rs @@ -1,6 +1,7 @@ use leptos::prelude::*; use crate::components::layout::sidebar::Sidebar; use crate::components::layout::toolbar::Toolbar; +use crate::components::layout::footer::Footer; use crate::components::ui::sidenav::{SidenavWrapper, Sidenav, SidenavInset}; #[component] @@ -18,8 +19,11 @@ pub fn Protected(children: Children) -> impl IntoView { // Ana İçerik -
- {children()} +
+
+ {children()} +
+