blob: e688f5f7c349ecbe5a216a8bd5cef24e6773758a (
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
|
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! {
<div class=styles::layout>
<header>
<a href="/" id="siteTitle">Site Title</a>
</header>
<nav>
<p>Nav</p>
</nav>
<main>
<Outlet/>
</main>
<footer>
<p>Footer</p>
</footer>
</div>
}
}
|