diff --git a/requirements.txt b/requirements.txt index 79e5694..74d8f60 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,4 @@ flet pydantic pyOpenSSL Requests -keyring -sqlmodel \ No newline at end of file +keyring \ No newline at end of file diff --git a/src/constants.py b/src/constants.py index a2a9827..95f6ba3 100644 --- a/src/constants.py +++ b/src/constants.py @@ -18,4 +18,4 @@ usrconf = { 'fullName': '', 'grade': '', 'semester': 1, -} \ No newline at end of file + } \ No newline at end of file diff --git a/src/main.py b/src/main.py index 7c8a86b..4040c4a 100644 --- a/src/main.py +++ b/src/main.py @@ -73,7 +73,7 @@ def sync(page: ft.Page): "/grades": GradesPage(page), "/timetable": TimetablePage(), "/homework": HomeworkPage(), - "/exams": ExamsPage(page), + "/exams": ExamsPage(), "/attendance": AttendancePage(), "/behaviour": BehaviourPage(), "/settings": SettingsPage(page) @@ -117,7 +117,7 @@ def main(page: ft.Page): "/grades": GradesPage(page), "/timetable": TimetablePage(), "/homework": HomeworkPage(), - "/exams": ExamsPage(page), + "/exams": ExamsPage(), "/attendance": AttendancePage(), "/behaviour": BehaviourPage(), "/settings": SettingsPage(page) diff --git a/src/pages/exams.py b/src/pages/exams.py index 60047de..ceaf744 100644 --- a/src/pages/exams.py +++ b/src/pages/exams.py @@ -2,77 +2,10 @@ import flet as ft from i18n import _ -def ExamsPage(page: ft.Page): +def ExamsPage(): return ft.Column([ - ft.Row([ - ft.Text((_("Exams")), size=30, weight="bold"), - ft.Row( - [ - ft.IconButton(icon=ft.icons.ARROW_LEFT), - ft.Text("14.04-20.04", size=18, weight="bold"), - ft.IconButton(icon=ft.icons.ARROW_RIGHT), - ], - alignment=ft.MainAxisAlignment.CENTER - ) - ], alignment=ft.MainAxisAlignment.SPACE_BETWEEN, spacing=10), - ft.Card( - content=ft.Container( - content=ft.Column( - [ - ft.ListTile( - title=ft.Row([ - ft.Text("Example subject" ,weight="bold"), - ft.Row( - [ - ft.Text("14.04.2025"), - ], - alignment=ft.MainAxisAlignment.CENTER - ) - ], alignment=ft.MainAxisAlignment.SPACE_BETWEEN, spacing=10), - subtitle=ft.Row([ - ft.Text("Short test - Example description"), - ft.Row( - [ - ft.Text("Example teacher"), - ], - alignment=ft.MainAxisAlignment.CENTER - ) - ], alignment=ft.MainAxisAlignment.SPACE_BETWEEN, spacing=10), - ) - - ] - ), - padding=5, - ) - ), - ft.Card( - content=ft.Container( - content=ft.Column( - [ - ft.ListTile( - title=ft.Row([ - ft.Text("Example subject" ,weight="bold"), - ft.Row( - [ - ft.Text("14.04.2025"), - ], - alignment=ft.MainAxisAlignment.CENTER - ) - ], alignment=ft.MainAxisAlignment.SPACE_BETWEEN, spacing=10), - subtitle=ft.Row([ - ft.Text("Short test - Example description"), - ft.Row( - [ - ft.Text("Example teacher"), - ], - alignment=ft.MainAxisAlignment.CENTER - ) - ], alignment=ft.MainAxisAlignment.SPACE_BETWEEN, spacing=10), - ) - - ] - ), - padding=5, - ) - ) - ]) + ft.Text((_("Exams")), size=30, weight="bold"), + ft.Placeholder() + ]) + + \ No newline at end of file