frontend implementing login
This commit is contained in:
6
client/src/components/auth.rs
Normal file
6
client/src/components/auth.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
// src/components/form.rs
|
||||
pub mod login;
|
||||
pub mod register;
|
||||
|
||||
pub use login::*;
|
||||
pub use register::*;
|
||||
0
client/src/components/auth/login.rs
Normal file
0
client/src/components/auth/login.rs
Normal file
0
client/src/components/auth/register.rs
Normal file
0
client/src/components/auth/register.rs
Normal file
@@ -71,6 +71,13 @@ impl IntroState {
|
||||
self.selected_option == 1,
|
||||
theme,
|
||||
);
|
||||
self.render_button(
|
||||
f,
|
||||
button_area[1],
|
||||
"Login",
|
||||
self.selected_option == 1,
|
||||
theme,
|
||||
);
|
||||
}
|
||||
|
||||
fn render_button(&self, f: &mut Frame, area: Rect, text: &str, selected: bool, theme: &Theme) {
|
||||
|
||||
@@ -4,9 +4,11 @@ pub mod intro;
|
||||
pub mod admin;
|
||||
pub mod common;
|
||||
pub mod form;
|
||||
pub mod auth;
|
||||
|
||||
pub use handlers::*;
|
||||
pub use intro::*;
|
||||
pub use admin::*;
|
||||
pub use common::*;
|
||||
pub use form::*;
|
||||
pub use auth::*;
|
||||
|
||||
Reference in New Issue
Block a user