From 4ec1406ed0d217ac21b0bde8fa3baa004b12ec15 Mon Sep 17 00:00:00 2001 From: Mazzie Date: Mon, 25 Mar 2024 03:06:11 -0700 Subject: [PATCH] fix: update routes to reflect GitHub Pages fix: this might fix 404 fix: remove 404. maybe this will help. fix: add base prop /nova to Router and Routes fix: remove / from path fix: remove slashes from base props --- nova-playground/src/lib.rs | 8 +++----- nova-playground/src/pages/mod.rs | 1 - nova-playground/src/pages/not_found.rs | 7 ------- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 nova-playground/src/pages/not_found.rs diff --git a/nova-playground/src/lib.rs b/nova-playground/src/lib.rs index 1d376b5..095945d 100644 --- a/nova-playground/src/lib.rs +++ b/nova-playground/src/lib.rs @@ -4,7 +4,6 @@ use leptos_router::*; // Top-Level pages use crate::pages::home::Home; -use crate::pages::not_found::NotFound; // Modules mod components; @@ -26,10 +25,9 @@ pub fn App() -> impl IntoView { - - - - + + + } diff --git a/nova-playground/src/pages/mod.rs b/nova-playground/src/pages/mod.rs index 8829694..9b86bcf 100644 --- a/nova-playground/src/pages/mod.rs +++ b/nova-playground/src/pages/mod.rs @@ -1,2 +1 @@ pub mod home; -pub mod not_found; diff --git a/nova-playground/src/pages/not_found.rs b/nova-playground/src/pages/not_found.rs deleted file mode 100644 index bc360a3..0000000 --- a/nova-playground/src/pages/not_found.rs +++ /dev/null @@ -1,7 +0,0 @@ -use leptos::*; - -/// 404 Not Found Page -#[component] -pub fn NotFound() -> impl IntoView { - view! {

"Uh oh!"
"We couldn't find that page!"

} -}