added background pic might delete late

This commit is contained in:
Death916 2025-04-19 04:43:11 -07:00
parent 1eea5b691e
commit a1ca14a3a3

View file

@ -229,13 +229,12 @@ def page_content(content):
padding="1em", padding="1em",
width="100%", width="100%",
align_items="center", align_items="center",
), ),
rx.box( rx.box(
content, content,
align_items="center", align_items="center",
justify="center", justify="center",
width="100%", width="100%",
padding="2em", padding="2em",
), ),
rx.box( rx.box(
@ -245,11 +244,15 @@ def page_content(content):
align_items="end", align_items="end",
justify="end", justify="end",
), ),
), ),
style={
"background": "linear-gradient(rgba(33, 37, 41, 0.92), rgba(33, 37, 41, 0.92)), url('/header.png')",
"backgroundSize": "cover",
"backgroundPosition": "center",
"backgroundRepeat": "no-repeat",
"backgroundAttachment": "fixed", # This makes the background stay fixed while scrolling
"minHeight": "100vh", # This ensures the background covers the full viewport height
},
) )
@rx.page(route="/projects") @rx.page(route="/projects")