photos/src/components/Header.tsx
Michael Mainguy c44c820239 Initial Next.js photo gallery application
- Set up Next.js 15 with TypeScript and Tailwind CSS v4
- Configured responsive layout with header, sidebar, and main content area
- Implemented directory scan modal with real-time validation
- Added reusable Button component with primary/secondary variants
- Created API endpoint for server-side directory validation
- Integrated Tabler icons for UI feedback
- Configured PostCSS with @tailwindcss/postcss for proper styling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-26 13:24:38 -05:00

33 lines
898 B
TypeScript

'use client'
import Button from './Button'
interface HeaderProps {
onScanDirectory: () => void
}
export default function Header({ onScanDirectory }: HeaderProps) {
return (
<header className="bg-white dark:bg-gray-900 shadow-sm border-b border-gray-200 dark:border-gray-700">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center h-16">
<div className="flex items-center">
<h1 className="text-xl font-bold text-gray-900 dark:text-white">
Photos
</h1>
</div>
<nav className="md:flex space-x-8">
<Button
onClick={onScanDirectory}
variant="secondary"
className="text-sm"
>
Scan Directory
</Button>
</nav>
</div>
</div>
</header>
)
}