Darkmode implemented

There is now a darkmode button
This commit is contained in:
2026-05-28 17:26:56 +02:00
parent 6e836d9260
commit b9354f77b6
6 changed files with 151 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
mod auth;
mod pages;
mod dark_mode;
use crate::auth::ProtectedRoute;
use crate::pages::*;
use gloo_net::http::Request;
@@ -271,6 +272,7 @@ fn switch(route: Route) -> Html {
pub fn app() -> Html {
html! {
<BrowserRouter>
<dark_mode::DarkModeToggle />
<Switch<Route> render={switch} />
</BrowserRouter>
}