🐛 fix layout

🍱 update 88x31s
🔥 rm landing
This commit is contained in:
lia
2025-08-07 02:27:39 +02:00
parent 282c67b1fc
commit 6a5176caab
23 changed files with 143 additions and 184 deletions

View File

@@ -1,73 +0,0 @@
use crate::Route;
use yew::prelude::*;
use yew_router::prelude::Link;
pub struct Landing;
impl Component for Landing {
type Message = ();
type Properties = ();
fn create(_ctx: &Context<Self>) -> Self {
Self
}
fn view(&self, _ctx: &Context<Self>) -> Html {
html! {
<>
<div class="tile is-parent container" style="
margin: 0 !important;
left: 0 !important;
top: 0 !important;
width: 100% !important;
height: 100% !important;
max-width: 100% !important;
z-index: 2 !important;
">
{ self.view_background() }
{ self.view_text() }
</div>
</>
}
}
}
impl Landing {
fn view_background(&self) -> Html {
html! {
<>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" style="
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
z-index: 0 !important;
backdrop-filter: blur(24px) !important;
">
<defs>
<@{"linearGradient"} id="trans">
<stop offset="0%" stop-color="#5BCEFA" />
<stop offset="50%" stop-color="#F5A9B8" />
<stop offset="100%" stop-color="#FFFFFF" />
</@>
</defs>
<rect width="100%" height="100%" x="0" y="0" rx="0" ry="0" fill="url(#trans)" fill-opacity="0.2" />
</svg>
</>
}
}
fn view_text(&self) -> Html {
html! {
<>
<Link<Route> classes={classes!("navbar-item")} to={Route::About}><p style="
display: flex !important;
justify-content: center !important;
align-items: center !important;
height: calc(100vh - 16px - (var(--bulma-navbar-height) * 2)) !important;
width: 100% !important;
filter: url(post.bloom.svg#process)
">{r"click to enter"}</p></Link<Route>>
</>
}
}
}

View File

@@ -1,5 +1,3 @@
pub mod landing;
pub mod about;
pub mod projects;