Initial commit

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-04-29 22:48:53 +02:00
commit 75c64a7227
27 changed files with 7453 additions and 0 deletions

24
src/layout/mod.rs Normal file
View File

@@ -0,0 +1,24 @@
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 {},
}
}
}
}