25 lines
451 B
Rust
25 lines
451 B
Rust
use dioxus::prelude::*;
|
|
|
|
mod footer;
|
|
mod header;
|
|
|
|
use crate::{Body, Route};
|
|
use footer::Footer;
|
|
use header::Header;
|
|
|
|
pub fn Layout() -> Element {
|
|
rsx! {
|
|
div {
|
|
class: "flex justify-center ",
|
|
div {
|
|
class: "max-w-screen-xl flex-col" ,
|
|
Header {},
|
|
Body {
|
|
Outlet::<Route> {},
|
|
}
|
|
Footer {},
|
|
}
|
|
}
|
|
}
|
|
}
|