diff --git a/ui/src/pages/not_found.rs b/ui/src/pages/not_found.rs index 2f867cb..0935540 100644 --- a/ui/src/pages/not_found.rs +++ b/ui/src/pages/not_found.rs @@ -3,5 +3,34 @@ use leptos::*; /// 404 Not Found Page #[component] pub fn NotFound() -> impl IntoView { - view! {
+ "This app is a " "Single Page Applicaton" " \ + or SPA. This means that routing (how your browser decides what \ + to do with the URL) is determined by code running on this page \ + rather than by making a web request to a remote server." +
++ "This would normally be fine, but this site is also hosted on Github \ + Pages, which doesn't currently provide support for a SPA's routing \ + mechanism. That means you may need to navigate to the page using \ + a " "link in the app" " rather than by following an external \ + link." +
++ "If you clicked something inside the app and got to this page, that's \ + definitely a bug!" +
+"Shortname" | diff --git a/ui/style.scss b/ui/style.scss index 41a8a0a..554d84c 100644 --- a/ui/style.scss +++ b/ui/style.scss @@ -450,4 +450,15 @@ nav ul { .hidden { display: none !important; +} + +#not-found { + display: flex; + flex-direction: column; + align-items: start; + text-align: left; + + >* { + margin-bottom: 1rem; + } } \ No newline at end of file