28 lines
1 KiB
Rust
28 lines
1 KiB
Rust
use dioxus::prelude::*;
|
|
|
|
const HERO_CSS: Asset = asset!("/assets/styling/hero.css");
|
|
const HEADER_SVG: Asset = asset!("/assets/header.svg");
|
|
|
|
#[component]
|
|
pub fn Hero() -> Element {
|
|
spawn(async move {
|
|
server::test_fn().await.unwrap();
|
|
});
|
|
rsx! {
|
|
document::Link { rel: "stylesheet", href: HERO_CSS }
|
|
|
|
div { id: "hero",
|
|
img { src: HEADER_SVG, id: "header" }
|
|
div { id: "links",
|
|
a { href: "https://dioxuslabs.com/learn/0.6/", "📚 Learn Dioxus" }
|
|
a { href: "https://dioxuslabs.com/awesome", "🚀 Awesome Dioxus" }
|
|
a { href: "https://github.com/dioxus-community/", "📡 Community Libraries" }
|
|
a { href: "https://github.com/DioxusLabs/sdk", "⚙️ Dioxus Development Kit" }
|
|
a { href: "https://marketplace.visualstudio.com/items?itemName=DioxusLabs.dioxus",
|
|
"💫 VSCode Extension"
|
|
}
|
|
a { href: "https://discord.gg/XgGxMSkvUM", "👋 Community Discord" }
|
|
}
|
|
}
|
|
}
|
|
}
|