diff --git a/src/assets/bg_1280.webp b/src/assets/bg_1280.webp new file mode 100644 index 0000000..8e3c7cc Binary files /dev/null and b/src/assets/bg_1280.webp differ diff --git a/src/assets/bg_1920.webp b/src/assets/bg_1920.webp new file mode 100644 index 0000000..8157f0c Binary files /dev/null and b/src/assets/bg_1920.webp differ diff --git a/src/assets/bg_2560.webp b/src/assets/bg_2560.webp new file mode 100644 index 0000000..dcc4e96 Binary files /dev/null and b/src/assets/bg_2560.webp differ diff --git a/src/assets/bg_480.webp b/src/assets/bg_480.webp new file mode 100644 index 0000000..af0c940 Binary files /dev/null and b/src/assets/bg_480.webp differ diff --git a/src/assets/bg_768.webp b/src/assets/bg_768.webp new file mode 100644 index 0000000..ff337b9 Binary files /dev/null and b/src/assets/bg_768.webp differ diff --git a/src/styles/_hero.scss b/src/styles/_hero.scss index 4df66a7..16657d8 100644 --- a/src/styles/_hero.scss +++ b/src/styles/_hero.scss @@ -7,21 +7,47 @@ padding-block: var(--space-12); overflow: hidden; + background-image: url('/src/assets/bg_1280.webp'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + + @media (min-width: 1920px) { + background-image: url('/src/assets/bg_2560.webp'); + } + @media (min-width: 1280px) and (max-width: 1919px) { + background-image: url('/src/assets/bg_1920.webp'); + } + @media (min-width: 768px) and (max-width: 1279px) { + background-image: url('/src/assets/bg_1280.webp'); + } + @media (min-width: 480px) and (max-width: 767px) { + background-image: url('/src/assets/bg_768.webp'); + } + @media (max-width: 479px) { + background-image: url('/src/assets/bg_480.webp'); + } + &::before { content: ''; position: absolute; inset: 0; background: + linear-gradient(180deg, rgb(250 246 239 / 0.87) 0%, rgb(250 246 239 / 0.81) 60%, rgb(250 246 239 / 0.91) 100%), radial-gradient(60% 60% at 85% 15%, rgb(217 108 63 / 0.16), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgb(46 107 79 / 0.18), transparent 70%); - z-index: -1; + z-index: 0; } h1 { + position: relative; + z-index: 1; margin-bottom: var(--space-4); } p { + position: relative; + z-index: 1; font-size: 1.15rem; color: var(--text); max-width: 60ch; @@ -29,10 +55,14 @@ } .hero__inner { + position: relative; + z-index: 1; max-width: 720px; } .hero__actions { + position: relative; + z-index: 1; display: flex; gap: var(--space-3); margin-top: var(--space-6); diff --git a/src/styles/_layout.scss b/src/styles/_layout.scss index c3ba178..4500544 100644 --- a/src/styles/_layout.scss +++ b/src/styles/_layout.scss @@ -32,6 +32,8 @@ } .eyebrow { + position: relative; + z-index: 1; display: inline-block; font-size: 0.8rem; font-weight: 600;