chore: remove unused PageLayout component
- Delete src/components/page_layout.rs — no longer used by any page - Remove 'pub mod page_layout' from components/mod.rs - All frontend pages now use FrontendLayout via the router instead
This commit is contained in:
parent
5d018864c2
commit
e09a0f4616
@ -4,7 +4,6 @@ pub mod footer;
|
||||
pub mod frontend_layout;
|
||||
pub mod header;
|
||||
pub mod nav;
|
||||
pub mod page_layout;
|
||||
pub mod post;
|
||||
pub mod post_card;
|
||||
pub mod skeletons;
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
use crate::components::footer::Footer;
|
||||
use crate::components::header::{Header, NavItemConfig};
|
||||
use crate::theme::ThemeToggle;
|
||||
|
||||
#[component]
|
||||
pub fn PageLayout(nav_items: Vec<NavItemConfig>, children: Element) -> Element {
|
||||
rsx! {
|
||||
div { class: "min-h-screen flex flex-col bg-white dark:bg-[#1d1e20] transition-colors duration-300",
|
||||
Header { nav_items, right_content: rsx! { ThemeToggle {} } }
|
||||
main { class: "flex-1 w-full max-w-3xl mx-auto px-6 py-6",
|
||||
{children}
|
||||
}
|
||||
Footer {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user