Mega Prompt That Creates A SaaS App In Next.JS
Create a complete Next.js 14+ SaaS framework foundation with the following specifications: ## Project Initialization Initialize a new Next.js project with: - npx create-next-app@latest saas-framework --typescript --tailwind --eslint --app --src-dir --import-alias - Use App Router (not Pages Router) - TypeScript for all files - Tailwind CSS with custom configuration ## shadcn/ui Integration 1. Initialize shadcn/ui with proper configuration 2. Install these essential components: button, card, input, label, form, dropdown-menu, navigation-menu, sheet, dialog, avatar 3. Configure the components.json file for consistent theming 4. Set up proper import aliases for components ## Project Structure Create this exact folder structure: src/ βββ app/ β βββ globals.css β βββ layout.tsx β βββ page.tsx β βββ (auth)/ # Route groups for future auth pages βββ components/ β βββ ui/ # shadcn components (auto-generated) β βββ layout/ β β βββ header.tsx β β βββ footer.tsx β β βββ navigation.tsx β βββ features/ β β βββ landing/ β β βββ hero-section.tsx β β βββ features-section.tsx β β βββ pricing-preview.tsx β βββ common/ β βββ loading-spinner.tsx β βββ theme-toggle.tsx βββ lib/ β βββ utils.ts # cn() utility and helpers β βββ constants.ts # App constants β βββ types.ts # Shared TypeScript types βββ styles/ β βββ globals.css # Additional custom styles βββ types/ βββ auth.ts # Auth-related types (for future) βββ subscription.ts # Subscription types (for future) ## Configuration Files 1. **tailwind.config.ts**: Extend with custom colors for SaaS branding (primary, secondary, accent colors) 2. **prettier.config.js**: Include tailwindcss plugin for class sorting 3. **next.config.js**: Optimize for production with proper headers and redirects setup 4. **.env.local.example**: Template for environment variables (include placeholders for SUPABASE_URL, etc.) ## Core Components to Build 1. **Layout Components:** - Header with logo, navigation, and auth button placeholders - Footer with company links and social media