🧑‍💻 Add version to the Wallpaper
All checks were successful
ci/woodpecker/push/dockerize Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This information should be moved to a version panel, when it'll be available...
This commit is contained in:
2024-04-16 07:01:49 +02:00
parent cae7a1e244
commit f0d3b91084
3 changed files with 18 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ async-std = "1.12.0"
tracing = "0.1.40"
tracing-web = "0.1.3"
tracing-subscriber = "0.3.18"
git-version = "0.3.9"
[target.'cfg(target_family = "wasm")'.dependencies]
web-sys = "0.3.69"

View File

@@ -1,4 +1,7 @@
use dioxus::prelude::*;
use git_version::git_version;
const GIT_VERSION: &str = git_version!();
turf::style_sheet!("src/ui/components/wallpaper.scss");
@@ -11,6 +14,11 @@ pub fn Wallpaper() -> Element {
div {
class: ClassName::WALLPAPER_CONTENT,
}
div {
class: ClassName::WALLPAPER_VERSION,
{GIT_VERSION},
}
}
}
}

View File

@@ -18,4 +18,13 @@
width: 150%;
height: 150%;
}
&__version {
position: absolute;
top: 97vh;
font-size: 1.5vh;
color: get-color(greyscale, 80);
}
}