New Greeting Tab + New File Structure

This commit is contained in:
2026-01-22 12:57:35 +01:00
parent 881363e703
commit ba72e8118f
14 changed files with 503 additions and 445 deletions

View File

@@ -1,5 +1,5 @@
use crate::navbar::Navbar;
use crate::pages::{chat::Chat, home::Home, news::News};
use crate::pages::{greet::Greet, home::Home, news::News};
use yew::prelude::*;
use yew_router::prelude::*;
@@ -9,8 +9,8 @@ pub enum Route {
Home,
#[at("/news")]
News,
#[at("/chat")]
Chat,
#[at("/greet")]
Greet,
#[not_found]
#[at("/404")]
NotFound,
@@ -20,7 +20,7 @@ fn switch(routes: Route) -> Html {
match routes {
Route::Home => html! { <Home /> },
Route::News => html! { <News /> },
Route::Chat => html! { <Chat /> },
Route::Greet => html! { <Greet /> },
Route::NotFound => html! { <h1 class="status-msg">{ "404 - Not Found" }</h1> },
}
}