1
0
Fork 0
forked from Fuji/Fuji

Create exams page prototype

This commit is contained in:
mily 2025-04-18 22:14:43 +02:00
parent 92f97ec968
commit eed70bf5cc
3 changed files with 76 additions and 9 deletions

View file

@ -18,4 +18,4 @@ usrconf = {
'fullName': '', 'fullName': '',
'grade': '', 'grade': '',
'semester': 1, 'semester': 1,
} }

View file

@ -73,7 +73,7 @@ def sync(page: ft.Page):
"/grades": GradesPage(page), "/grades": GradesPage(page),
"/timetable": TimetablePage(), "/timetable": TimetablePage(),
"/homework": HomeworkPage(), "/homework": HomeworkPage(),
"/exams": ExamsPage(), "/exams": ExamsPage(page),
"/attendance": AttendancePage(), "/attendance": AttendancePage(),
"/behaviour": BehaviourPage(), "/behaviour": BehaviourPage(),
"/settings": SettingsPage(page) "/settings": SettingsPage(page)
@ -117,7 +117,7 @@ def main(page: ft.Page):
"/grades": GradesPage(page), "/grades": GradesPage(page),
"/timetable": TimetablePage(), "/timetable": TimetablePage(),
"/homework": HomeworkPage(), "/homework": HomeworkPage(),
"/exams": ExamsPage(), "/exams": ExamsPage(page),
"/attendance": AttendancePage(), "/attendance": AttendancePage(),
"/behaviour": BehaviourPage(), "/behaviour": BehaviourPage(),
"/settings": SettingsPage(page) "/settings": SettingsPage(page)

View file

@ -2,10 +2,77 @@ import flet as ft
from i18n import _ from i18n import _
def ExamsPage(): def ExamsPage(page: ft.Page):
return ft.Column([ return ft.Column([
ft.Text((_("Exams")), size=30, weight="bold"), ft.Row([
ft.Placeholder() 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,
)
)
])