File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
app/[locale]/10years/_components Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { getTranslations } from "next-intl/server"
2
2
3
+ import { Image } from "@/components/Image"
3
4
import ParallaxImage from "@/components/Image/ParallaxImage"
4
5
import { ButtonLink } from "@/components/ui/buttons/Button"
5
6
6
7
import Countdown from "./CountDown"
7
8
import { getTimeUnitTranslations } from "./utils"
8
9
10
+ import TenYearBackgroundImage from "@/public/images/10-year-anniversary/10-year-background.png"
9
11
import TenYearGraphicImage from "@/public/images/10-year-anniversary/10-year-logo.png"
10
12
import TenYearDesktopText from "@/public/images/10-year-anniversary/10yeartext.svg"
11
13
import TenYearMobileText from "@/public/images/10-year-anniversary/10yeartext-mobile.svg"
@@ -19,8 +21,16 @@ const TenYearHomeBanner = async ({ locale }: { locale: string }) => {
19
21
const timeLeftLabels = await getTimeUnitTranslations ( locale )
20
22
21
23
return (
22
- < div className = "relative rounded-2xl bg-[url('/images/10-year-anniversary/10-year-background.png')] bg-cover bg-center text-center" >
23
- < div className = "absolute h-full w-full rounded-2xl bg-ten-year-gradient opacity-80" />
24
+ < div className = "relative rounded-2xl bg-cover bg-center text-center" >
25
+ < div className = "absolute inset-0 overflow-hidden rounded-2xl after:absolute after:inset-0 after:bg-ten-year-gradient after:opacity-80 after:content-['']" >
26
+ < Image
27
+ src = { TenYearBackgroundImage }
28
+ alt = ""
29
+ sizes = "(max-width: 1504px) 100vw, 1504px"
30
+ quality = { 15 }
31
+ className = "size-full"
32
+ />
33
+ </ div >
24
34
< div className = "relative rounded-2xl p-8" >
25
35
< ParallaxImage
26
36
src = { TenYearGraphicImage }
You can’t perform that action at this time.
0 commit comments