A dynamic Next.js website for the 6-piece funk/pop band Clark's Bowling Club, featuring bilingual content, interactive 3D elements, and content managed in Payload CMS.
- Features
- Tech Stack
- Getting Started
- Project Structure
- Environment Setup
- Content Management
- Key Components
- Development
- Documentation
- License
β¨ Bilingual Support: English/French with automatic location detection
π΅ Music Integration: Embedded Spotify, YouTube, and Bandcamp players
π― 3D Interactive Elements: Three.js powered spinning logo with holographic effects
π± Responsive Design: Mobile-first approach with Tailwind CSS
π§ Contact Forms: Email integration with bilingual templates
ποΈ Tour Management: Dynamic tour dates with past/future filtering
π€ Lyrics Display: Searchable lyrics organised by album
π SEO Optimised: Automatic sitemap generation, robots.txt, and LLMs.txt
βΏ Accessibility: ARIA labels, keyboard navigation, reduced motion support
π Dynamic Content: Pages populated from the Payload CMS
- Framework: Next.js 16 with TypeScript
- Styling: Tailwind CSS with custom fonts
- 3D Graphics: Three.js for interactive elements
- Email: Nodemailer for contact forms
- Data: Payload CMS on Neon Postgres
- Icons: React Icons (Font Awesome 6)
- State: React Context for language switching
- Deployment: Netlify
- Node.js 22 or higher
- pnpm
- Clone the repository:
- with https:
git clone https://github.com/TandemCreativeDev/cbc.git
cd cbc- with ssh (recommended):
git clone git@github.com:TandemCreativeDev/cbc.git
cd cbc- Install dependencies:
pnpm install-
Set up environment variables (see Environment Setup)
-
Run the development server:
pnpm devOpen http://localhost:3000 to view the site.
src/
βββ app/ # Next.js app router pages
β βββ api/send-emails/ # Email sending endpoint
β βββ [page]/ # Dynamic page routes
β βββ _components/ # Page-specific components
βββ components/ # Shared components
β βββ layout/ # Header, footer, navigation
β βββ ui/ # Reusable UI components
βββ context/ # React contexts
βββ utils/ # Utility functions
βββ data/ # Static data files
βββ fonts/ # Custom web fonts
Create a .env.local file in the root directory:
# Payload Configuration
DATABASE_URL=postgres://user:password@host/db
PAYLOAD_SECRET=a_long_random_string
# Media storage (S3-compatible, Neon object storage)
S3_ENDPOINT=https://storage.example.com
S3_REGION=eu-central-1
S3_BUCKET=media
S3_ACCESS_KEY_ID=your_access_key_id
S3_SECRET_ACCESS_KEY=your_secret_access_key
# Site Configuration
NEXT_PUBLIC_SITE_URL=https://clarksbowlingclub.com
# Email Configuration (SMTP)
EMAIL_HOST=smtp.host.com
EMAIL_PORT=587
EMAIL_SECURE=false
EMAIL_USER=your@email.com
EMAIL_PASSWORD=your_app_passwordContent is edited in the Payload admin at /admin. See docs/admin-guide.md.
Automatic language detection based on user location, with manual toggle support.
Custom bowling ball indicator that animates between active nav items with CSS animations.
Three.js powered spinning logo with holographic effects and mouse tracking.
Bilingual email templates with validation and toast notifications.
# Start development server with Turbopack
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Run linting
pnpm lint- Hot Reload: Instant updates during development
- TypeScript: Full type safety and IntelliSense
- Turbopack: Fast bundling with Next.js 16
- ESLint: Code quality enforcement
- Tailwind CSS: Utility-first styling with JIT compilation
Modern browsers with ES6+ support. Graceful degradation for:
- Reduced motion preferences
- JavaScript disabled scenarios
- Legacy browser compatibility
- Automatic sitemap generation including dynamic content
- SEO-friendly meta tags and structured data
- Performance optimisations with Next.js Image component
- Accessibility compliance with ARIA labels and keyboard navigation
- Next.js - React framework documentation
- Tailwind CSS - CSS framework documentation
- Three.js - 3D graphics library documentation
- React Icons - Icon library documentation
- Nodemailer - Email sending library documentation
- Next.js with Tailwind CSS - Official integration guide
- Three.js Fundamentals - Getting started with 3D graphics
- React TypeScript Cheatsheet - TypeScript best practices
- Follow TypeScript best practices
- Use Tailwind's utility classes (no custom CSS when possible)
- Ensure accessibility compliance
- Test on multiple devices and browsers
- Maintain bilingual support for new features
TandemCreativeDev - hello@runintandem.com
Clark's Bowling Club - A 6-piece funk/pop band based in Lyon, France.
π Website | π§ Contact | π΅ Spotify