clean up index nested functions

This commit is contained in:
Death916 2025-04-05 05:01:48 -07:00
parent 25ddf811b0
commit 67de7e2d08

View file

@ -216,32 +216,19 @@ def index():
rx.cond( rx.cond(
State.current_page == "Projects", State.current_page == "Projects",
projects(), projects(),
rx.vstack( home() # default case
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",
),
),
),
),
), ),
width="100%", width="100%",
flex_grow="1", # Allow the content to grow and push the footer down flex_grow="1",
), ),
footer(), footer(),
width="100%", width="100%",
display="flex", display="flex",
flex_direction="column", flex_direction="column",
min_height="100vh", # Ensure the box takes up at least the full viewport height min_height="100vh",
) )