mirror of
https://github.com/rio-labs/rio.git
synced 2026-02-12 00:28:32 -06:00
populated To-Do App
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(),
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user