// Header.jsx — Daniel do Japão UI Kit const Header = ({ dark = true, currentPage = 'home', onNavigate }) => { const [menuOpen, setMenuOpen] = React.useState(false); const navItems = [ { id: 'home', label: 'Início' }, { id: 'about', label: 'Sobre' }, { id: 'cria', label: 'CRIA' }, { id: 'trabalhos', label: 'Trabalhos' }, { id: 'conteudo', label: 'Conteúdo' }, { id: 'contato', label: 'Contato' }, ]; const s = headerStyles; return (
{/* Logo */}
onNavigate && onNavigate('home')}> D
DANIEL DO JAPÃO CRIA · DISCIPLINA · PRESENÇA
{/* Nav desktop */} {/* CTA */} {/* Mobile hamburger */}
{/* Mobile menu */} {menuOpen && (
{navItems.map(item => ( ))}
)}
); }; const headerStyles = { headerDark: { background: '#0A0A0A', borderBottom: '1px solid #1A1A1A', position: 'sticky', top: 0, zIndex: 100 }, headerLight: { background: '#FAFAFA', borderBottom: '1px solid #E8E8E8', position: 'sticky', top: 0, zIndex: 100 }, inner: { maxWidth: 1200, margin: '0 auto', padding: '0 32px', height: 64, display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 24 }, logo: { display: 'flex', alignItems: 'center', gap: 10, cursor: 'pointer', flexShrink: 0 }, logoD: { fontFamily: "'Cormorant Garamond', Georgia, serif", fontSize: 32, fontWeight: 300, color: '#D62B2B', lineHeight: 1 }, logoText: { display: 'flex', flexDirection: 'column' }, logoName: { fontFamily: "'DM Sans', sans-serif", fontSize: 11, fontWeight: 300, letterSpacing: '0.14em', textTransform: 'uppercase' }, logoSub: { fontFamily: "'DM Sans', sans-serif", fontSize: 7, fontWeight: 700, letterSpacing: '0.22em', textTransform: 'uppercase', color: '#3A3A3A', marginTop: 2 }, nav: { display: 'flex', alignItems: 'center', gap: 4, flex: 1, justifyContent: 'center' }, navItem: { background: 'none', border: 'none', cursor: 'pointer', fontFamily: "'DM Sans', sans-serif", fontSize: 11, letterSpacing: '0.06em', textTransform: 'uppercase', padding: '8px 12px', transition: 'color 180ms' }, ctaBtn: { background: '#D62B2B', color: '#FAFAFA', border: 'none', cursor: 'pointer', fontFamily: "'DM Sans', sans-serif", fontSize: 10, fontWeight: 700, letterSpacing: '0.1em', textTransform: 'uppercase', padding: '9px 18px', borderRadius: 2, flexShrink: 0 }, hamburger: { display: 'none', flexDirection: 'column', gap: 5, background: 'none', border: 'none', cursor: 'pointer', padding: 4 }, bar: { width: 22, height: 1.5, background: '#FAFAFA', display: 'block', transition: 'all 200ms' }, barOpen1: { transform: 'rotate(45deg) translate(4px, 4px)' }, barOpen2: { transform: 'rotate(-45deg) translate(4px, -4px)' }, mobileMenu: { background: '#111', borderTop: '1px solid #1A1A1A', padding: '16px 32px 24px', display: 'flex', flexDirection: 'column', gap: 4 }, mobileNavItem: { background: 'none', border: 'none', cursor: 'pointer', fontFamily: "'DM Sans', sans-serif", fontSize: 14, fontWeight: 400, letterSpacing: '0.06em', textTransform: 'uppercase', padding: '10px 0', textAlign: 'left', borderBottom: '1px solid #1A1A1A' }, mobileCta: { background: '#D62B2B', color: '#FAFAFA', border: 'none', cursor: 'pointer', fontFamily: "'DM Sans', sans-serif", fontSize: 11, fontWeight: 700, letterSpacing: '0.1em', textTransform: 'uppercase', padding: '12px 24px', borderRadius: 2, marginTop: 12 }, }; Object.assign(window, { Header });