use leptos::prelude::*; use leptos_meta::{provide_meta_context, MetaTags, Stylesheet, Title}; use leptos_router::{ components::{Route, Router, Routes}, StaticSegment, }; pub fn shell(options: LeptosOptions) -> impl IntoView { view! { } } #[component] pub fn App() -> impl IntoView { // Provides context that manages stylesheets, titles, meta tags, etc. provide_meta_context(); view! { // injects a stylesheet into the document // id=leptos means cargo-leptos will hot-reload this stylesheet // sets the document title // content for this welcome page <Router> <main> <Routes fallback=|| "Page not found.".into_view()> <Route path=StaticSegment("") view=HomePage /> </Routes> </main> </Router> } } /// Renders the home page of your application. #[component] fn HomePage() -> impl IntoView { view! { <section class="section"> <div class="container"> <h1 class="title has-text-weight-normal is-family-monospace"> <span id="typed-welcome">tlater.net</span> </h1> <hr /> <div class="columns"> <div class="column content" /> <div class="column content" /> </div> </div> </section> } }