mirror of
https://github.com/eRgo35/website.git
synced 2026-02-04 13:36:10 +01:00
feat: slight animation changes
This commit is contained in:
@@ -53,8 +53,7 @@ a {
|
||||
}
|
||||
|
||||
a:hover,
|
||||
a:active,
|
||||
a:focus {
|
||||
a:active {
|
||||
color: var(--subtext0)
|
||||
}
|
||||
|
||||
@@ -83,8 +82,7 @@ a:focus {
|
||||
}
|
||||
|
||||
.navbar-theme:hover,
|
||||
.navbar-theme:active,
|
||||
.navbar-theme:focus {
|
||||
.navbar-theme:active {
|
||||
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)]
|
||||
#[rustfmt::skip]
|
||||
pub enum Route {
|
||||
#[layout(Navbar)]
|
||||
#[layout(MotionTransitionBuilder)]
|
||||
#[route("/")]
|
||||
#[transition(Fade)]
|
||||
Home {},
|
||||
@@ -40,3 +40,10 @@ pub enum Route {
|
||||
#[route("/:..route")]
|
||||
PageNotFound { route: Vec<String> },
|
||||
}
|
||||
|
||||
#[component]
|
||||
pub fn MotionTransitionBuilder() -> Element {
|
||||
rsx! {
|
||||
AnimatedOutlet::<Route> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user