frontend implementing login

This commit is contained in:
filipriec
2025-03-25 15:57:45 +01:00
parent eba3f56ba3
commit c84fa4a692
5 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
// src/components/form.rs
pub mod login;
pub mod register;
pub use login::*;
pub use register::*;

View File

View File

View 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) {

View File

@@ -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::*;