28 lines
1.4 KiB
Rust
28 lines
1.4 KiB
Rust
use crate::{
|
|
components::void_buttons::{ButtonGroup, NavigationButton},
|
|
utils::user_prefs::{ThemedComponent, UserPrefs},
|
|
};
|
|
use dioxus::prelude::*;
|
|
|
|
pub fn Footer(cx: Scope<UserPrefs>) -> Element {
|
|
cx.render(rsx! {
|
|
MutantStandardFooter { theme: cx.props.clone().get_theme(), font: cx.props.clone().get_font() }
|
|
})
|
|
}
|
|
|
|
fn MutantStandardFooter(cx: Scope<UserPrefs>) -> Element {
|
|
let user_prefs = UserPrefs::new(cx.props.clone().get_theme(), cx.props.clone().get_font());
|
|
let user_theme = cx.props.get_theme_classes(ThemedComponent::Card);
|
|
let user_font = cx.props.get_font_class();
|
|
cx.render(rsx!{
|
|
div { class: "p-4 flex flex-col space-y-4 mx-auto max-w-full justify-center ring-4 {user_theme} {user_font}",
|
|
ButtonGroup{
|
|
NavigationButton { title: "⚙️ Settings".to_string(), slug: "/settings".to_string(), user_prefs: user_prefs.clone() }
|
|
NavigationButton { title: " /src".to_string(), slug: "https://gitea.werefox.cafe/ada/void-werefox-cafe".to_string(), user_prefs: user_prefs, override_font: "font-nerd".to_string() }
|
|
}
|
|
div { class: "flex mx-auto max-w-full justify-center text-md text-center",
|
|
"This site uses Mutant Standard emoji, which are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License"
|
|
}
|
|
}
|
|
})
|
|
}
|