Some checks failed
Build MIPS Binary / build (push) Failing after 1m28s
- Update leptos-use from 0.15 to 0.16 for reactive_graph compatibility - Fix web-sys ProgressElement -> ProgressEvent feature - Resolve closure ownership issues in context_menu.rs and statusbar.rs - Update Cargo dependencies for stable compilation
32 lines
1.1 KiB
Rust
32 lines
1.1 KiB
Rust
use leptos::prelude::*;
|
|
use crate::components::layout::sidebar::Sidebar;
|
|
use crate::components::layout::toolbar::Toolbar;
|
|
use crate::components::layout::statusbar::StatusBar;
|
|
|
|
#[component]
|
|
pub fn Protected(children: Children) -> impl IntoView {
|
|
view! {
|
|
<div class="drawer lg:drawer-open h-full w-full">
|
|
<input id="my-drawer" type="checkbox" class="drawer-toggle" />
|
|
|
|
<div class="drawer-content flex flex-col h-full overflow-hidden bg-base-100">
|
|
// --- TOOLBAR (TOP) ---
|
|
<Toolbar />
|
|
|
|
// --- MAIN CONTENT ---
|
|
<main class="flex-1 overflow-hidden relative">
|
|
{children()}
|
|
</main>
|
|
|
|
// --- STATUS BAR (BOTTOM) ---
|
|
<StatusBar />
|
|
</div>
|
|
|
|
// --- SIDEBAR (DRAWER) ---
|
|
<div class="drawer-side z-[100]">
|
|
<label for="my-drawer" aria-label="close sidebar" class="drawer-overlay"></label>
|
|
<Sidebar />
|
|
</div>
|
|
</div>
|
|
}
|
|
} |