implement better ui

This commit is contained in:
2025-09-27 22:48:45 +03:00
parent 90683eb8c6
commit 3cacc1310c
7 changed files with 75 additions and 15 deletions

View File

@@ -5,7 +5,38 @@ class Auth:
def __init__(self, page: ft.Page):
self.page = page
self.login = Login(self.page, self)
self.placeholder = ft.Container(content=self.login.build())
self.placeholder = ft.Container(
content=self.login.build(),
bgcolor=ft.Colors.WHITE,
padding=20,
border_radius=20
)
def build(self):
return self.placeholder
return ft.Container(
content= ft.Row(
[
ft.Container(
content=ft.Column(
[
ft.Container(
content = ft.Image("images/logo.png", width=300, height=300, fit=ft.ImageFit.CONTAIN),
),
ft.Container(
content = ft.Image("images/danube_db_rectangle.png", width=300, height=300, fit=ft.ImageFit.CONTAIN),
)
]
),
padding=10,
),
ft.Container(
content = self.placeholder,
padding=3,
bgcolor=ft.Colors.BLUE_400,
border_radius=20
)
],
alignment=ft.MainAxisAlignment.SPACE_AROUND
)
)

View File

@@ -28,7 +28,7 @@ class ForgotPassword:
return ft.Container(
ft.Column(
[
ft.Text("Forgot Password?"),
ft.Text("FORGOT PASSWORD", weight=ft.FontWeight.BOLD, size=20),
self.email,
ft.Button("Recover"),
self.error,

View File

@@ -45,6 +45,7 @@ class Login:
return ft.Container(
ft.Column(
[
ft.Text("LOGIN", weight=ft.FontWeight.BOLD, size=20),
self.email,
self.password,
self.error,

View File

@@ -88,6 +88,7 @@ class Register:
return ft.Container(
ft.Column(
[
ft.Text("REGISTER", weight=ft.FontWeight.BOLD, size=20),
self.email,
self.password,
self.confirm_password,