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