summary refs log tree commit diff
path: root/src/components/layout/mod.rs
blob: 6ec37dae6992e06cc0a3c7fa4b3f4b95aab5e8df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use leptos::prelude::*;
use leptos::component;
use leptos_router::components::Outlet;

stylance::import_crate_style!(styles, "src/components/layout/layout.module.css");

#[component]
pub fn Layout() -> impl IntoView {
    view! {
        <main class=styles::layout>
            <header>
                <h1>Site Title</h1>
            </header>
            <nav>
                <p>Nav</p>
            </nav>
            <article>
                <p>Article</p>
                <Outlet/>
            </article>
            <footer>
                <p>Footer</p>
            </footer>
        </main>
    }
}