feat: add minimal footer to protected layout
All checks were successful
Build MIPS Binary / build (push) Successful in 5m23s

This commit is contained in:
spinline
2026-02-12 22:23:20 +03:00
parent 155dd07193
commit e5a68fb630
3 changed files with 37 additions and 2 deletions

View File

@@ -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 {
<Toolbar />
// Ana İçerik
<main class="flex-1 overflow-hidden relative bg-background">
{children()}
<main class="flex-1 overflow-y-auto relative bg-background flex flex-col">
<div class="flex-1">
{children()}
</div>
<Footer />
</main>
</SidenavInset>
</SidenavWrapper>