populated To-Do App

This commit is contained in:
Sn3llius
2025-03-09 10:17:21 +01:00
parent 56e71e8d57
commit 84d62ee1e2
2 changed files with 27 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ class UserSignUpForm(rio.Component):
return rio.Card(
rio.Column(
# Heading
rio.Text("Create a new account", style="heading1"),
rio.Text("Create an Account", style="heading1"),
# Display an error, if any
rio.Banner(
text=self.error_message,

View File

@@ -12,4 +12,29 @@ class TodoItem:
class TodoAppSettings(rio.UserSettings):
todo_items: list[TodoItem] = []
todo_items: list[TodoItem] = [
TodoItem(
title="Wake up (optional, but highly recommended)",
creation_time=datetime.datetime.now(),
),
TodoItem(
title="Convince myself I'm a morning person (fake it till I make it)",
creation_time=datetime.datetime.now(),
),
TodoItem(
title="Drink coffee (or legally change my name to 'Zombie #1')",
creation_time=datetime.datetime.now(),
),
TodoItem(
title="Attempt to be productive (a.k.a. stare at my to-do list and panic)",
creation_time=datetime.datetime.now(),
),
TodoItem(
title="Eat something healthy (or at least something that once looked at a vegetable)",
creation_time=datetime.datetime.now(),
),
TodoItem(
title="Pretend to work while actually just Googling random facts (Did you know octopuses have three hearts?)",
creation_time=datetime.datetime.now(),
),
]