diff --git a/src/layout/Hero/HeroImage.svelte b/src/layout/Hero/HeroImage.svelte index 9633671..6ab34cf 100644 --- a/src/layout/Hero/HeroImage.svelte +++ b/src/layout/Hero/HeroImage.svelte @@ -20,7 +20,7 @@ background-color: var(--surface-seven); user-select: none; } - @media (max-width: 1700px) { + @media screen and (max-width: 1700px) { .hero-img { height: 100vh; right: 6rem; diff --git a/src/layout/Hero/HeroSection.svelte b/src/layout/Hero/HeroSection.svelte index 6c83b1f..506c255 100644 --- a/src/layout/Hero/HeroSection.svelte +++ b/src/layout/Hero/HeroSection.svelte @@ -46,10 +46,9 @@ } .social-buttons { - justify-content: center; + max-width: 30rem; position: absolute; bottom: 1rem; - z-index: 1; transition: opacity 0.1s var(--bezier-one); } @@ -69,18 +68,41 @@ span { color: var(--primary); } - @media (max-width: 1700px) { + + @media screen and (max-width: 1700px) { .hero { height: 80vh; } } + @media screen and (max-height: 820px) { + .social-buttons { + bottom: initial; + left: initial; + position: initial; + width: initial; + opacity: 100% !important; + } + } + @media screen and (max-width: 1100px) or (min-height: 820px) { + .social-buttons { + transform: translateX(-50%); + width: 100%; + position: absolute; + justify-content: center; + } + } + @media screen and (max-width: 450px) { .internal-buttons { flex-direction: column; gap: 1rem; } + .social-buttons { + justify-content: center; + } + .hero { height: initial; } diff --git a/src/layout/Navbar/NavHost.svelte b/src/layout/Navbar/NavHost.svelte index 4073874..ab95131 100644 --- a/src/layout/Navbar/NavHost.svelte +++ b/src/layout/Navbar/NavHost.svelte @@ -202,6 +202,7 @@ } #nav-container { + z-index: 1; top: 0; position: sticky; width: 100%; diff --git a/src/lib/components/Wave.svelte b/src/lib/components/Wave.svelte index 43d60c7..1d605d5 100644 --- a/src/lib/components/Wave.svelte +++ b/src/lib/components/Wave.svelte @@ -17,10 +17,17 @@ transition: opacity 0.1s var(--bezier-one); position: absolute; bottom: 0rem; + z-index: -1; width: 100%; height: 40vh; } + @media screen and (max-height: 820px) { + svg { + opacity: 0 !important; + } + } + .wave { animation: wave-anim 30s; animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ece99d8..1b901ea 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -165,10 +165,10 @@ } .hero-img-container { - z-index: 1; + z-index: 0; } - @media (max-width: 1100px) { + @media screen and (max-width: 1100px) { .hero-img-container { display: none; }