mirror of
https://github.com/eRgo35/website.git
synced 2026-02-04 05:26:11 +01:00
feat: slight animation changes
This commit is contained in:
@@ -53,8 +53,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
a:active,
|
a:active {
|
||||||
a:focus {
|
|
||||||
color: var(--subtext0)
|
color: var(--subtext0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,8 +82,7 @@ a:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar-theme:hover,
|
.navbar-theme:hover,
|
||||||
.navbar-theme:active,
|
.navbar-theme:active {
|
||||||
.navbar-theme:focus {
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,6 @@ pub fn Navbar() -> Element {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
div { class: "content-wrapper", AnimatedOutlet::<Route> {} }
|
div { class: "content-wrapper", {} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ use dioxus_motion::prelude::*;
|
|||||||
#[derive(Debug, Clone, Routable, PartialEq, MotionTransitions)]
|
#[derive(Debug, Clone, Routable, PartialEq, MotionTransitions)]
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
pub enum Route {
|
pub enum Route {
|
||||||
#[layout(Navbar)]
|
#[layout(MotionTransitionBuilder)]
|
||||||
#[route("/")]
|
#[route("/")]
|
||||||
#[transition(Fade)]
|
#[transition(Fade)]
|
||||||
Home {},
|
Home {},
|
||||||
@@ -40,3 +40,10 @@ pub enum Route {
|
|||||||
#[route("/:..route")]
|
#[route("/:..route")]
|
||||||
PageNotFound { route: Vec<String> },
|
PageNotFound { route: Vec<String> },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[component]
|
||||||
|
pub fn MotionTransitionBuilder() -> Element {
|
||||||
|
rsx! {
|
||||||
|
AnimatedOutlet::<Route> {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user