Updates to client
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::models::media::Media;
|
||||
use crate::components::{MediaGrid, Search};
|
||||
use dioxus::prelude::*;
|
||||
|
||||
#[component]
|
||||
@@ -6,12 +6,8 @@ pub fn Home() -> Element {
|
||||
rsx! {
|
||||
div { id: "content",
|
||||
"This is home"
|
||||
Search { },
|
||||
MediaGrid { }
|
||||
}
|
||||
}
|
||||
}
|
||||
#[component]
|
||||
fn MediaDisplay(media: Media) -> Element {
|
||||
rsx! {
|
||||
div { "{media.id}" }
|
||||
}
|
||||
}
|
||||
|
||||
17
AobaClient/src/views/login.rs
Normal file
17
AobaClient/src/views/login.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
use crate::components::basic::{Button, Input};
|
||||
|
||||
#[component]
|
||||
pub fn Login() -> Element {
|
||||
rsx! {
|
||||
div{
|
||||
id: "centralModal",
|
||||
form{
|
||||
Input { type : "text", name: "username", label: "Username" },
|
||||
Input{ type : "password", name: "password", label: "Password" },
|
||||
Button{text: "Login!"}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
mod home;
|
||||
pub use home::Home;
|
||||
mod login;
|
||||
pub use home::*;
|
||||
pub use login::*;
|
||||
|
||||
mod settings;
|
||||
pub use settings::Settings;
|
||||
|
||||
Reference in New Issue
Block a user