Skip to content

Commit dba3181

Browse files
committed
normal.layout: Add current version to Footer.
1 parent 60468d2 commit dba3181

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

normal/layout.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
use common::data::LOGO_NO_BG;
1+
use common::data::{
2+
LOGO_NO_BG,
3+
VERSION,
4+
};
25
use dioxus::prelude::*;
36

47
use super::{
@@ -83,7 +86,7 @@ fn Navbar() -> Element {
8386
#[component]
8487
fn Footer() -> Element {
8588
rsx! {
86-
div { class: "group flex items-center justify-center h-18 sm:h-8 border-t-1 border-x-1 border-fg w-full max-w-5xl mx-auto",
89+
div { class: "relative group flex items-center justify-center h-18 sm:h-8 border-t-1 border-x-1 border-fg w-full max-w-5xl mx-auto",
8790
p { class: "sm:text-xs flex flex-col sm:flex-row items-center",
8891
span { class: "md:group-hover:translate-x-[-20px] transition-translate duration-300",
8992
"Copyright © 2025-present"
@@ -98,6 +101,9 @@ fn Footer() -> Element {
98101
"<git@plumj.am>"
99102
}
100103
}
104+
p { class: "absolute text-xs bottom-1 sm:bottom-2 right-1",
105+
{VERSION}
106+
}
101107
}
102108
}
103109
}

0 commit comments

Comments
 (0)