router and home page

This commit is contained in:
2026-04-17 11:39:35 +02:00
parent ad29538422
commit 12ebb3f8d9
10 changed files with 233 additions and 37 deletions

21
src/views/home.rs Normal file
View File

@ -0,0 +1,21 @@
use dioxus::prelude::*;
use crate::Route;
#[component]
pub fn Home() -> Element {
rsx! {
div { class : "flex flex-col text-3xl px-2",
Link {
to : Route::Upload { },
class: "height-20px text-blue-700 underline py-1",
"Upload"
}
a {
class: "height-20px text-blue-700 underline py-1",
href : "https://git.tmoron.fr/tom",
"gitea"
}
p { class : "text-sm text-gray-600", "I konw, you're impressed by my design skills." }
}
}
}