feat(ui): v3 enhancements - hero photo, particles, mobile responsive

- Hero photo: circular shape, object-position center top, transparent background
- Hero particles: bigger (6-16px), more visible (opacity 0.8)
- Mobile: hide hero photo, transparent hero content, fix text/social link colors
- Mobile social links: darker border in light mode
- Update spec docs and all section components for v3 UI
This commit is contained in:
dong.nguyen committed 2026-10-13 00:24:12 +07:00
1 parent a303d98e41
commit dd22f3be3a
26 files changed
+810 -504

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { useEffect } from 'react'
export function useClickOutside(ref: React.RefObject<HTMLElement | null>, handler: () => void) {
useEffect(() => {
const listener = (event: MouseEvent | TouchEvent) => {
const el = ref.current
if (!el || el.contains(event.target as Node)) return
handler()
}
document.addEventListener('mousedown', listener)
document.addEventListener('touchstart', listener)
return () => {
document.removeEventListener('mousedown', listener)
document.removeEventListener('touchstart', listener)
}
}, [ref, handler])
}