'use client' import { useRef } from 'react' import type { Portfolio, Resume } from '@/lib/types' import styles from './hero.module.css' type Props = { resume: Resume; portfolio: Portfolio; mailHref: string; showProjects: boolean } export default function Hero({ resume, portfolio, mailHref, showProjects }: Readonly) { const hero = useRef(null) // The floor sways a couple of degrees with the pointer, like nudging the viewport. const onPointerMove = (event: React.PointerEvent) => { if (event.pointerType !== 'mouse' || !hero.current) return const offset = event.clientX / window.innerWidth - 0.5 hero.current.style.setProperty('--sway', `${(offset * 3).toFixed(2)}deg`) } return (

{resume.availability}

{resume.name}

{resume.role}

{resume.bio}

{showProjects && See projects} Full portfolio Email me
) }