@@ -35,6 +35,8 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat
3535 const [ isLargeScreen , setIsLargeScreen ] = useState ( window . innerWidth >= 1280 ) ;
3636 const [ isMapOpen , setIsMapOpen ] = useState ( false ) ;
3737 const emailRef = useRef < HTMLInputElement > ( null ) ;
38+ const [ windowHeight , setWindowHeight ] = useState ( window . innerHeight ) ;
39+ const [ windowWidth , setWindowWidth ] = useState ( window . innerWidth ) ;
3840
3941 useEffect ( ( ) => {
4042 document . addEventListener ( "scroll" , ( ) => {
@@ -66,7 +68,7 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat
6668 }
6769
6870 return (
69- < div className = "w-full min-h-screen flex flex-col overflow-x-hidden" >
71+ < div className = "w-full flex flex-col overflow-x-hidden" >
7072 < div className = "absolute -top-16 -left-8 w-1/3 z-20 pointer-events-none hidden min-[860px]:block" >
7173 < img
7274 src = "/compressed/backgrounds/corner-cloud.webp"
@@ -92,7 +94,10 @@ function App({slug, content, record_id}: {slug: string | undefined, content: Sat
9294 </ nav >
9395 </ header >
9496
95- < section className = "relative h-full flex items-end pb-32 2xl:pb-48 px-6 md:px-16 md:px-24 2xl:px-32 bg-[url(/backgrounds/blue-sky.webp)] bg-center bg-cover" >
97+ < section className = { clsx (
98+ "relative min-h-[750px] px-6 md:px-16 md:px-24 2xl:px-32 bg-[url(/backgrounds/blue-sky.webp)] bg-center bg-cover" ,
99+ windowHeight > windowWidth && windowWidth < 860 ? "flex items-stretch pb-0" : "h-full flex items-end pb-32 2xl:pb-48"
100+ ) } >
96101 < div className = "absolute top-0 left-0 w-full h-full pointer-events-none" >
97102 < img src = "/backgrounds/sky-shine.webp" alt = "" className = "w-full h-full object-cover select-none" />
98103 </ div >
0 commit comments