style: Fixed mobile, enhanced homepage

This commit is contained in:
2024-10-18 00:09:34 +02:00
parent 68afc97c07
commit d8208742f2
11 changed files with 249 additions and 52 deletions
+5
View File
@@ -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