style: Fixed mobile, enhanced homepage
This commit is contained in:
@@ -60,6 +60,11 @@ export const isMobile = () => {
|
||||
|
||||
useEffect(() => {
|
||||
setWindowWidth(window.innerWidth)
|
||||
|
||||
const handleResize = () => setWindowWidth(window.innerWidth)
|
||||
window.addEventListener('resize', handleResize)
|
||||
|
||||
return () => window.removeEventListener('resize', handleResize)
|
||||
}, [])
|
||||
|
||||
return windowWidth < 1024
|
||||
|
||||
Reference in New Issue
Block a user