1- import styles from " ./banner.module.scss" ;
1+ import styles from ' ./banner.module.scss'
22// import SplashImage from "../assets/splash.png";
33// import Image from "next/image"
4- import { useMedia } from " react-use" ;
5- import classNames from " classnames" ;
4+ import { useMedia } from ' react-use'
5+ import classNames from ' classnames'
66export function Banner ( ) {
7- const small = useMedia ( "(max-width:500px)" , false ) ;
8- const med = useMedia ( "(max-width:1000px)" , false ) && ! small ;
9- const large = useMedia ( "(min-width:1000px)" , true ) && ! med ;
10- return (
11- < div className = { styles . root } >
12- < div className = { classNames ( styles . content , large && styles . large , med && styles . medium , small && styles . small ) } >
13- { /* <Image src={SplashImage} alt={"splash"} width={globalThis && globalThis.window && globalThis.window?.innerWidth||100}></Image> */ }
14- < div className = { styles . image } > </ div >
15- < div className = { styles . gradient } > </ div >
16- </ div >
17- </ div >
18- ) ;
19- }
7+ const small = useMedia ( '(max-width:500px)' , false )
8+ const med = useMedia ( '(max-width:1000px)' , false ) && ! small
9+ const large = useMedia ( '(min-width:1000px)' , true ) && ! med
10+ return (
11+ < div className = { styles . root } >
12+ < div
13+ className = { classNames (
14+ styles . content ,
15+ large && styles . large ,
16+ med && styles . medium ,
17+ small && styles . small
18+ ) }
19+ >
20+ { /* <Image src={SplashImage} alt={"splash"} width={globalThis && globalThis.window && globalThis.window?.innerWidth||100}></Image> */ }
21+ < div className = { styles . image } > </ div >
22+ < div className = { styles . gradient } > </ div >
23+ </ div >
24+ </ div >
25+ )
26+ }
0 commit comments