Add Footer component
Some checks failed
Push Workflows / rustfmt (push) Failing after 5s
Push Workflows / tailwind-build (push) Successful in 5s
Push Workflows / docs (push) Successful in 20s
Push Workflows / clippy (push) Successful in 18s
Push Workflows / test (push) Successful in 26s
Push Workflows / build (push) Successful in 51s
Push Workflows / nix-build (push) Successful in 5m17s
Some checks failed
Push Workflows / rustfmt (push) Failing after 5s
Push Workflows / tailwind-build (push) Successful in 5s
Push Workflows / docs (push) Successful in 20s
Push Workflows / clippy (push) Successful in 18s
Push Workflows / test (push) Successful in 26s
Push Workflows / build (push) Successful in 51s
Push Workflows / nix-build (push) Successful in 5m17s
This commit is contained in:
35
src/components/footer.rs
Normal file
35
src/components/footer.rs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
use dioxus::prelude::*;
|
||||||
|
|
||||||
|
use crate::app::LOGO_SVG;
|
||||||
|
|
||||||
|
#[component]
|
||||||
|
pub fn Footer() -> Element {
|
||||||
|
rsx! {
|
||||||
|
footer {
|
||||||
|
class: "footer md:footer-horizontal fixed bottom-0 text-base-content/70 bg-base-300 items-center p-4",
|
||||||
|
|
||||||
|
aside {
|
||||||
|
class: "flex items-center",
|
||||||
|
|
||||||
|
img {
|
||||||
|
class: "w-12 h-12",
|
||||||
|
src: LOGO_SVG,
|
||||||
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
p {
|
||||||
|
class: "text-xl font-bold",
|
||||||
|
"LibreTunes",
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
class: "text-sm",
|
||||||
|
href: env!("CARGO_PKG_REPOSITORY"),
|
||||||
|
"v" {env!("CARGO_PKG_VERSION")},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1 +1,2 @@
|
|||||||
|
|
||||||
|
pub mod footer;
|
||||||
|
|||||||
Reference in New Issue
Block a user