From f0d3b910847c52bdfd6c09085c5d646a562457ca Mon Sep 17 00:00:00 2001 From: Adrien Date: Tue, 16 Apr 2024 07:01:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Add=20versi?= =?UTF-8?q?on=20to=20the=20Wallpaper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This information should be moved to a version panel, when it'll be available... --- Cargo.toml | 1 + src/ui/components/wallpaper.rs | 8 ++++++++ src/ui/components/wallpaper.scss | 9 +++++++++ 3 files changed, 18 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1b77f9f..ded1960 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/ui/components/wallpaper.rs b/src/ui/components/wallpaper.rs index 84212b4..cef1201 100644 --- a/src/ui/components/wallpaper.rs +++ b/src/ui/components/wallpaper.rs @@ -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}, + } } } } diff --git a/src/ui/components/wallpaper.scss b/src/ui/components/wallpaper.scss index fa45c0b..b23bf4b 100644 --- a/src/ui/components/wallpaper.scss +++ b/src/ui/components/wallpaper.scss @@ -18,4 +18,13 @@ width: 150%; height: 150%; } + + &__version { + position: absolute; + + top: 97vh; + + font-size: 1.5vh; + color: get-color(greyscale, 80); + } }