- Main Config File:
/src/config/app-config.ts - TypeScript Interface: Fully typed configuration with
AppConfiginterface - Single Source of Truth: All UI text, branding, and content managed from one file
All components now read from the centralized config:
-
Header.tsx ✅
- Brand name and logo
- CTA button text and accessibility labels
-
Hero.tsx ✅
- Hero title and description
- Brand elements
- Device mockup images (dynamic array)
-
Experience.tsx ✅
- Section title and main heading
- Device images (dynamic array)
-
Features.tsx ✅
- Section title and heading
- Feature items (title, description, images)
- Dynamic alternating layout
-
Testimonials.tsx ✅
- Section title and heading
- Testimonial content (text, names, roles, photos)
-
Pricing.tsx ✅
- Section title and heading
- Pricing plans and features
- Default selections
-
Footer.tsx ✅
- Brand elements
- Navigation links (dynamic)
- Social media links
brand: {
name: string, // App name throughout site
logo: string, // Logo image path
tagline: string, // Main tagline
description: string, // Hero description
downloadBadge: string // Download button image
}- Header: CTA button customization
- Hero: Title, description, device images
- Experience: Section content and images
- Features: Dynamic feature list with alternating layout
- Testimonials: Customer testimonials with photos
- Pricing: Plans, features, and pricing tiers
- Footer: Navigation and social links
theme: {
primaryColor: string, // Main brand color
primaryHover: string, // Hover state color
primaryActive: string // Active state color
}- README.md - Complete project documentation
- CONFIGURATION.md - Detailed configuration guide
- QUICK-START.md - 5-minute setup guide
- LICENSE - MIT license for open source
- example-taskmaster-config.ts - Productivity app example
- example-shopsmart-config.ts - E-commerce platform example
- Script:
/scripts/switch-config.js - NPM Commands:
npm run config:default # Cal AI (original) npm run config:taskmaster # TaskMaster Pro npm run config:shopsmart # ShopSmart E-commerce npm run config:help # Show help
// Multiple files with hardcoded text
<h1>Smart scheduling powered by AI.</h1>
<p>Cal AI transforms your speech...</p>
<img src="/cal.svg" alt="Cal AI Logo" />// Single config import
import { appConfig } from '@/config/app-config';
// Dynamic content
<h1>{appConfig.hero.title}</h1>
<p>{appConfig.hero.description}</p>
<img src={appConfig.brand.logo} alt={`${appConfig.brand.name} Logo`} />- Edit
/src/config/app-config.ts - Replace images in
/public/folder - Update image paths in config
- Refresh browser ✨
// Change this in config file:
brand: {
name: "TaskMaster Pro",
tagline: "Master your productivity with AI"
}
// Automatically updates entire site!- 🎯 One-file editing: Change everything from single location
- ⚡ Quick rebranding: 5-minute setup for new projects
- 🔄 Easy switching: Try different configurations instantly
- 📱 Mobile-ready: Fully responsive design maintained
- 🎨 Professional: Clean, modern UI components
- 📖 Well-documented: Complete guides and examples
- 🔧 TypeScript: Type-safe configuration
- 🚀 Developer-friendly: Easy to extend and customize
- 📦 Modern stack: Next.js 15, TypeScript, Tailwind CSS
- ⚡ Performance: Optimized images and animations
- 🧹 Clean architecture: Separation of content and code
- 🔧 Easy updates: Modify content without touching components
- 🎯 Consistent: Standardized configuration interface
- 🚀 Scalable: Easy to add new sections and features
The template is now fully prepared for open-source distribution:
- ✅ MIT License included
- ✅ Complete documentation (README, guides, examples)
- ✅ TypeScript support with proper interfaces
- ✅ Example configurations for different industries
- ✅ Development tools for easy configuration switching
- ✅ Responsive design maintained throughout
- ✅ Modern tech stack (Next.js 15, Framer Motion, Tailwind)
git clone <repo-url>
cd app-temp
npm install
npm run dev
# Try different configs
npm run config:taskmaster
npm run config:shopsmart// Edit src/config/app-config.ts
export const appConfig = {
brand: {
name: 'Your App Name',
logo: '/your-logo.svg',
// ... customize everything
},
};🎉 Template is ready for production and open-source distribution!