🎨 Isolate infra and ui components
The src/base.rs is still to be reworked.
This commit is contained in:
26
src/ui/components/loading.rs
Normal file
26
src/ui/components/loading.rs
Normal file
@@ -0,0 +1,26 @@
|
||||
use dioxus::prelude::*;
|
||||
use tracing::debug;
|
||||
|
||||
use super::spinner::Spinner;
|
||||
use super::wallpaper::Wallpaper;
|
||||
|
||||
turf::style_sheet!("src/ui/components/loading.scss");
|
||||
|
||||
pub fn LoadingPage() -> Element {
|
||||
debug!("LoadingPage rendering");
|
||||
|
||||
rsx! {
|
||||
style { {STYLE_SHEET} },
|
||||
|
||||
div {
|
||||
class: ClassName::LOADING,
|
||||
|
||||
Wallpaper {},
|
||||
|
||||
div {
|
||||
class: ClassName::LOADING_SPINNER,
|
||||
Spinner {},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user