mirror of
https://github.com/Death916/deathsite.git
synced 2026-04-10 03:04:41 -07:00
clean up index nested functions
This commit is contained in:
parent
25ddf811b0
commit
67de7e2d08
1 changed files with 6 additions and 19 deletions
|
|
@ -216,32 +216,19 @@ def index():
|
|||
rx.cond(
|
||||
State.current_page == "Projects",
|
||||
projects(),
|
||||
rx.vstack(
|
||||
rx.heading(
|
||||
"Welcome to My Personal Site",
|
||||
size="1",
|
||||
color="#ffffff",
|
||||
),
|
||||
rx.text(
|
||||
"This is a personal site for my projects and streams.",
|
||||
color="#ffffff",
|
||||
),
|
||||
rx.text(f"Current time: {State.current_time}", color="#ffffff"),
|
||||
padding="2em",
|
||||
spacing="2",
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
home() # default case
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
width="100%",
|
||||
flex_grow="1", # Allow the content to grow and push the footer down
|
||||
flex_grow="1",
|
||||
),
|
||||
footer(),
|
||||
width="100%",
|
||||
display="flex",
|
||||
flex_direction="column",
|
||||
min_height="100vh", # Ensure the box takes up at least the full viewport height
|
||||
min_height="100vh",
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue