Skip to content

Commit 84f6293

Browse files
authored
Merge pull request #13041 from ethereum/performance/optimize-home-hero-img
Performance: optimize max width for home hero image
2 parents eb74969 + 2d33b16 commit 84f6293

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Hero/HomeHero/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const HomeHero = ({ heroImg }: HomeHeroProps) => {
1717
<Image
1818
src={heroImg}
1919
alt={t("page-index:page-index-hero-image-alt")}
20-
sizes="100vw"
20+
// TODO: adjust value when the old theme breakpoints are removed (src/theme.ts)
21+
sizes="(max-width: 1504px) 100vw, 1504px"
2122
w="full"
2223
h="full"
2324
priority

0 commit comments

Comments
 (0)