/* Hero section for ZenTag */
function Nav() {
const [scrolled, setScrolled] = React.useState(false);
React.useEffect(() => {
const onScroll = () => setScrolled(window.scrollY > 20);
window.addEventListener('scroll', onScroll, { passive: true });
return () => window.removeEventListener('scroll', onScroll);
}, []);
const cfg = (typeof window !== 'undefined' && window.ZENTAG) || { isAuthed: false, urls: { login: '/login', signup: '/login', dashboard: '/login', order: '/login' } };
return (
);
}
function Hero({ heroMaterial = 'matte' }) {
// Parallax tilt for the hero stage based on mouse
const stageRef = React.useRef(null);
React.useEffect(() => {
const el = stageRef.current;
if (!el) return;
let raf = null;
const onMove = (e) => {
const r = el.getBoundingClientRect();
const cx = r.left + r.width/2;
const cy = r.top + r.height/2;
const dx = (e.clientX - cx) / r.width;
const dy = (e.clientY - cy) / r.height;
cancelAnimationFrame(raf);
raf = requestAnimationFrame(() => {
el.style.setProperty('--mx', dx.toFixed(3));
el.style.setProperty('--my', dy.toFixed(3));
});
};
window.addEventListener('mousemove', onMove);
return () => window.removeEventListener('mousemove', onMove);
}, []);
return (
Share your brand instantly with NFC, QR codes, and smart digital profiles. One tap. Unlimited connections.
Your business card.
Reinvented.