🧑💻 Add version to the Wallpaper
This information should be moved to a version panel, when it'll be available...
This commit is contained in:
@@ -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