Skip to content

Commit

Permalink
use hash router instead of browser router
Browse files Browse the repository at this point in the history
  • Loading branch information
YilunAllenChen committed Oct 30, 2023
1 parent fcbfe4a commit fdc3cae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ impl Component for App {

fn view(&self, _ctx: &Context<Self>) -> Html {
html! {
<BrowserRouter basename="/museum_of_code">
<HashRouter>
<Nav />
<Switch<Route> render={switch} /> // <- must be child of <BrowserRouter>
</BrowserRouter>
</HashRouter>
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Component for Home {
</div>
</div>
<div class="bg-gray-800 lg:pl-20 text-gray-300 p-4 md:py-8 mb-8 rounded-md justify-left items-left">
<div class="mx-auto text-center w-3/4 py-2 bg-gray-700 rounded-lg relative -top-8 text-xl text-gray-300">{"Featured Artifact"}</div>
<div class="mx-auto text-center w-3/4 py-2 bg-gray-700 ring ring-8 ring-gray-800 rounded relative -top-8 md:-top-12 text-xl text-gray-300">{"Featured Artifact"}</div>
<pre>
{formatted_haskell}
</pre>
Expand Down

0 comments on commit fdc3cae

Please sign in to comment.