🎨 new layout

 added landing.rs
 added profile.avif
 added post.bloom.svg
This commit is contained in:
lia
2025-03-11 03:23:49 +01:00
parent c7b262cd49
commit d68b9915c0
9 changed files with 145 additions and 14 deletions

View File

@@ -9,12 +9,15 @@ use yew::prelude::*;
use yew_router::prelude::*;
mod pages;
use crate::pages::landing::Landing;
use pages::home::Home;
use pages::not_found::PageNotFound;
#[derive(Routable, PartialEq, Eq, Clone, Debug)]
pub enum Route {
#[at("/")]
Landing,
#[at("/home")]
Home,
#[not_found]
#[at("/404")]
@@ -37,6 +40,7 @@ impl Component for App {
html! {
<>
<canvas style="
background-color: black !important;
position: fixed !important;
left: 0 !important;
top: 0 !important;
@@ -223,6 +227,7 @@ impl App {
fn switch(routes: Route) -> Html {
match routes {
Route::Landing => { html! { <Landing /> } }
Route::Home => { html! { <Home /> } }
Route::NotFound => { html! { <PageNotFound /> } }
}