steid

@jamesgill /

14223e7feat: claim, sign in, and sign out through the browser1mo
1use topcoat::{Result, router::layout, view::view};
2
3/// The HTML shell every page renders inside.
4///
5/// A layout rather than a helper function: `view!` needs the request context in scope,
6/// so a plain `fn shell(..)` cannot build one. Layouts wrap by path prefix, and this
7/// one is at `/`, so it wraps everything.
8#[layout("/")]
9async fn root_layout(slot: Result) -> Result {
10 let content = slot?;
11
12 view! {
13 <!DOCTYPE html>
14 <html lang="en">
15 <head>
16 <meta charset="utf-8" />
17 <meta name="viewport" content="width=device-width, initial-scale=1" />
18 <title>"steid"</title>
19 topcoat::dev::script()
20 </head>
21 <body>
22 <main>(content)</main>
23 </body>
24 </html>
25 }
26}