feat: slight animation changes

This commit is contained in:
2025-05-23 23:42:36 +02:00
parent f1c345af4f
commit 2b54d325c5
3 changed files with 11 additions and 6 deletions

View File

@@ -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;
} }

View File

@@ -24,6 +24,6 @@ pub fn Navbar() -> Element {
} }
} }
} }
div { class: "content-wrapper", AnimatedOutlet::<Route> {} } div { class: "content-wrapper", {} }
} }
} }

View File

@@ -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> {}
}
}