router and home page
This commit is contained in:
21
src/views/home.rs
Normal file
21
src/views/home.rs
Normal 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." }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user