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 ( -
+