This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
A Linktree-style personal link collection site built with Next.js. Deployed as a static site to GitHub Pages.
pnpm dev # Start development server (http://localhost:3000)
pnpm build # Build for production (outputs to ./out)
pnpm lint # Run ESLint
pnpm format # Format code with Prettier
pnpm format:check # Check formatting without modifyingApp Structure (Next.js App Router)
app/page.tsx- Home page, renders profile and link cardsapp/layout.tsx- Root layout with theme providerapp/components/ui/- UI components (profile, link-card, theme-switch, share-button)app/components/providers.tsx- ThemeProvider wrapper
Configuration
config/site.ts- Profile info (name, description, image) and site metadataconfig/links.ts- Array of links to display (title, url, icon)config/theme.ts- Theme/color configuration
Types
types/index.ts- Shared TypeScript type definitions
Static Export
next.config.jsusesoutput: 'export'for static site generation- Images are unoptimized for GitHub Pages compatibility
Pushes to main trigger automatic deployment to GitHub Pages via .github/workflows/deploy.yml.
- UI/UX changes require approval - Do not modify layout, colors, fonts, or spacing without explicit permission
- Version changes require approval - Do not upgrade dependencies or change tech stack versions
- Check for duplicates - Before implementing, verify no similar functionality exists
- Use Tailwind CSS for styling (shadcn/ui components available)
- Use Next.js Image component for images in
public/images/