Files
LibreTunes-DX/src/app.rs
Ethan Girouard d5eba9620c
All checks were successful
Push Workflows / rustfmt (push) Successful in 5s
Push Workflows / tailwind-build (push) Successful in 6s
Push Workflows / docs (push) Successful in 20s
Push Workflows / test (push) Successful in 23s
Push Workflows / clippy (push) Successful in 18s
Push Workflows / build (push) Successful in 47s
Push Workflows / nix-build (push) Successful in 6m24s
Link to favicon
2026-07-11 12:41:03 -04:00

33 lines
665 B
Rust

use dioxus::prelude::*;
pub const LOGO_SVG: Asset = asset!("/assets/logo.svg");
pub const LOGO_ICO: Asset = asset!("/assets/favicon.ico");
const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
#[derive(Debug, Clone, Routable, PartialEq)]
#[rustfmt::skip]
enum Route {
#[route("/")]
Home {},
}
#[component]
pub fn App() -> Element {
rsx! {
document::Link { rel: "icon", href: LOGO_ICO }
document::Link { rel: "stylesheet", href: TAILWIND_CSS }
Router::<Route> {}
}
}
/// Home page
#[component]
fn Home() -> Element {
rsx! {
p {
class: "text-lg",
"Hello, world!"
}
}
}