🧑💻 Add version to the Wallpaper
This information should be moved to a version panel, when it'll be available...
This commit is contained in:
@@ -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"
|
||||
|
@@ -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},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -18,4 +18,13 @@
|
||||
width: 150%;
|
||||
height: 150%;
|
||||
}
|
||||
|
||||
&__version {
|
||||
position: absolute;
|
||||
|
||||
top: 97vh;
|
||||
|
||||
font-size: 1.5vh;
|
||||
color: get-color(greyscale, 80);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user