From db6824d86478477a9b1818485170cce1d4e363b8 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 11 Oct 2024 14:53:57 -0500 Subject: [PATCH] Style fix for super wide screens --- src/components/banner/HeroBanner.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/banner/HeroBanner.js b/src/components/banner/HeroBanner.js index f19b289..eafe1a9 100644 --- a/src/components/banner/HeroBanner.js +++ b/src/components/banner/HeroBanner.js @@ -19,6 +19,8 @@ const HeroBanner = () => { const { returnImageProxy } = useImageProxy(); const isMobile = windowWidth <= 800; + const isWideScreen = windowWidth >= 2200; + const isSuperWideScreen = windowWidth >= 2600; useEffect(() => { const interval = setInterval(() => { @@ -44,8 +46,15 @@ const HeroBanner = () => { } }; + const getHeroHeight = () => { + if (isSuperWideScreen) return 'h-[900px]'; + if (isWideScreen) return 'h-[700px]'; + if (isMobile) return 'h-[450px]'; + return 'h-[600px]'; + }; + return ( -
+