Add tailwind

This commit is contained in:
2026-06-10 21:11:27 -04:00
parent 29712c6dd3
commit 50ceb43314
4 changed files with 14 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
use dioxus::prelude::*;
const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
#[derive(Debug, Clone, Routable, PartialEq)]
#[rustfmt::skip]
enum Route {
@@ -10,6 +12,7 @@ enum Route {
#[component]
fn App() -> Element {
rsx! {
document::Link { rel: "stylesheet", href: TAILWIND_CSS }
Router::<Route> {}
}
}
@@ -18,7 +21,10 @@ fn App() -> Element {
#[component]
fn Home() -> Element {
rsx! {
"Hello, world!"
p {
class: "text-lg",
"Hello, world!"
}
}
}