Make homepage cards use actual cards and not containers
This commit is contained in:
parent
481e988aff
commit
4c355b9455
1 changed files with 36 additions and 31 deletions
|
@ -8,7 +8,8 @@ def HomePage():
|
||||||
ft.Text((_("Home")), size=30, weight="bold"),
|
ft.Text((_("Home")), size=30, weight="bold"),
|
||||||
ft.Text("\n", size=30, weight="bold"),
|
ft.Text("\n", size=30, weight="bold"),
|
||||||
ft.Row([
|
ft.Row([
|
||||||
ft.Container( # Timetable Card
|
ft.Card(
|
||||||
|
content=ft.Container( # Timetable Card
|
||||||
content=ft.Column([
|
content=ft.Column([
|
||||||
ft.Row([
|
ft.Row([
|
||||||
ft.Icon(ft.Icons.BACKPACK_OUTLINED, size=32, color="#FFFFFF"),
|
ft.Icon(ft.Icons.BACKPACK_OUTLINED, size=32, color="#FFFFFF"),
|
||||||
|
@ -24,23 +25,27 @@ def HomePage():
|
||||||
auto_scroll=False
|
auto_scroll=False
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
margin=20,
|
#margin=20,
|
||||||
padding=10,
|
padding=10,
|
||||||
alignment=ft.alignment.top_left,
|
alignment=ft.alignment.top_left,
|
||||||
bgcolor=ft.Colors.SURFACE_CONTAINER_HIGHEST,
|
|
||||||
width=420,
|
|
||||||
height=270,
|
|
||||||
border_radius=10,
|
|
||||||
),
|
),
|
||||||
ft.Container( # Recent Grades Card
|
width=420,
|
||||||
|
height=275,
|
||||||
|
),
|
||||||
|
|
||||||
|
ft.Card(
|
||||||
|
content=ft.Container( # Recent Grades Card
|
||||||
content=RecentGradesColumn(), # Use the imported function here
|
content=RecentGradesColumn(), # Use the imported function here
|
||||||
margin=20,
|
#margin=20,
|
||||||
padding=10,
|
padding=10,
|
||||||
alignment=ft.alignment.top_left,
|
alignment=ft.alignment.top_left,
|
||||||
bgcolor=ft.Colors.SURFACE_CONTAINER_HIGHEST,
|
#bgcolor=ft.Colors.SURFACE_CONTAINER_HIGHEST,
|
||||||
|
#width=420,
|
||||||
|
#height=270,
|
||||||
|
#border_radius=10
|
||||||
|
),
|
||||||
width=420,
|
width=420,
|
||||||
height=270,
|
height=275,
|
||||||
border_radius=10,
|
),
|
||||||
)
|
]),
|
||||||
])
|
|
||||||
])
|
])
|
Loading…
Add table
Reference in a new issue