From 4bac34bcdd96333d9ac85d8cae2ca5fa2d77b5dc Mon Sep 17 00:00:00 2001 From: badbl0cks <4161747+badbl0cks@users.noreply.github.com> Date: Sat, 11 Jul 2026 11:06:38 -0700 Subject: [PATCH] integrate parallax into index and tidy up --- public/theme.css | 10 +- src/pages/contact.astro | 2 +- src/pages/index.astro | 304 ++++++++++++++++++++++++++++++++++++++- src/pages/license.astro | 4 +- src/pages/parallax.astro | 152 -------------------- 5 files changed, 311 insertions(+), 161 deletions(-) delete mode 100644 src/pages/parallax.astro diff --git a/public/theme.css b/public/theme.css index 311b2a4..ce99f9e 100644 --- a/public/theme.css +++ b/public/theme.css @@ -35,6 +35,10 @@ small.nano { small.pico { font-size: var(--pt-minion); } +html { + width: 100%; + height: 100%; +} body { animation: textShadow 1.6s infinite; background-color: var(--color-bg); @@ -42,7 +46,7 @@ body { var(--color-accent-transparent), black 120% ); - background-attachment: fixed; + color: var(--color-fg); column-gap: var(--gutter-large); display: grid; @@ -53,10 +57,10 @@ body { padding-inline: var(--page-padding-inline); place-items: center; position: absolute; + right: 0; row-gap: var(--stack-large); text-shadow: 0 0 5px var(--color-glow); top: 0; - width: 100dvi; } @keyframes flicker { 0% { @@ -260,6 +264,7 @@ body::after { bottom: 0; right: 0; background: rgba(18, 16, 16, 0.1); + background-attachment: fixed; opacity: 0; z-index: 2; pointer-events: none; @@ -285,6 +290,7 @@ body::before { background-size: 100% 2px, 3px 100%; + background-attachment: fixed; pointer-events: none; } header, diff --git a/src/pages/contact.astro b/src/pages/contact.astro index c886b85..613af44 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -27,7 +27,7 @@ const msgValue = pickValue("msg") || (await Astro.session?.get("msg")); --- - Contact + Contact | badblocks.dev