Skip to content

Commit

Permalink
hard code base for now
Browse files Browse the repository at this point in the history
  • Loading branch information
BlinkyStitt committed Apr 19, 2024
1 parent ff6cba1 commit de07eaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions musical-leptos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ use crate::pages::home::Home;
use crate::pages::not_found::NotFound;

/// An app router which renders the homepage and handles 404's
///
/// TODO: how do make the base dynamic?
#[component]
pub fn App() -> impl IntoView {
// Provides context that manages stylesheets, titles, meta tags, etc.
Expand All @@ -29,14 +31,13 @@ pub fn App() -> impl IntoView {
<Meta name="viewport" content="width=device-width, initial-scale=1.0"/>

<div class="container">
<Router>
<Router base="/musical-lights-rs" fallback=move || NotFound().into_view()>
<nav>
<A href="">"Home"</A> - <A href="about">"About"</A>
</nav>
<Routes>
<Route path="" view=Home />
<Route path="about" view=About />
<Route path="*" view=NotFound />
</Routes>
</Router>
</div>
Expand Down

0 comments on commit de07eaa

Please sign in to comment.