Begin add PostList routes + 404
This commit is contained in:
parent
c2df86fc33
commit
224b5d4832
6 changed files with 54 additions and 34 deletions
11
src/app/pages/home.rs
Normal file
11
src/app/pages/home.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
use leptos::*;
|
||||
use super::super::components::{TopComponent, MonParcours};
|
||||
#[component]
|
||||
pub fn Home() -> impl IntoView {
|
||||
view! {
|
||||
<main class="m-0 p-0 bg-surface dark:bg-dark_surface text-on_surface dark:text-dark_on_surface">
|
||||
<TopComponent/>
|
||||
<MonParcours/>
|
||||
</main>
|
||||
}
|
||||
}
|
5
src/app/pages/mod.rs
Normal file
5
src/app/pages/mod.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
mod home;
|
||||
pub use home::Home;
|
||||
|
||||
mod posts;
|
||||
pub use posts::PostList;
|
13
src/app/pages/posts.rs
Normal file
13
src/app/pages/posts.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use leptos::*;
|
||||
use leptos_router::*;
|
||||
|
||||
#[component]
|
||||
pub fn PostList(
|
||||
folder: String
|
||||
) -> impl IntoView {
|
||||
view! {
|
||||
<main class="m-0 p-0 bg-surface dark:bg-dark_surface text-on_surface dark:text-dark_on_surface">
|
||||
Page List
|
||||
</main>
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue