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

@ -235,7 +235,6 @@ def page_content(content):
align_items="center",
justify="center",
width="100%",
padding="2em",
),
rx.box(
@ -245,11 +244,15 @@ def page_content(content):
align_items="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")