summary refs log tree commit diff
path: root/src/components/layout/mod.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2025-03-22 14:51:36 -0600
committerAshelyn Rose <git@ashen.earth>2025-03-22 14:51:36 -0600
commit63e2395caf4ae93ebde96d97e12fc946af1e9ac9 (patch)
tree2f5dbca4da84a99398b6677726621881bb04c037 /src/components/layout/mod.rs
parentb18f08e8899b5a98dd3e1f8439ad812951a04cd9 (diff)
Component styles and hot-reloading
Diffstat (limited to 'src/components/layout/mod.rs')
-rw-r--r--src/components/layout/mod.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/components/layout/mod.rs b/src/components/layout/mod.rs
new file mode 100644
index 0000000..6ec37da
--- /dev/null
+++ b/src/components/layout/mod.rs
@@ -0,0 +1,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>
+    }
+}