Professional landing page for ANYCALL AI phone service. Built with modern web technologies and optimized for performance, SEO, and developer experience. Integrates seamlessly with the main dashboard application.
Tech Stack: Next.js App Router • TypeScript • TailwindCSS • Framer Motion • Radix UI • React Context
# Install dependencies
npm install
# Setup environment
cp .env.example .env.local
# Start development server
npm run devVisit http://localhost:3000
NEXT_PUBLIC_MAIN_APP_URL=http://localhost:3001 # Main app URL
RESEND_API_KEY=your_resend_api_key # Contact form emailsConnects with main anycaller-frontend application:
- Authentication redirects to main app (
/login,/register) - Post-login redirect to dashboard
- Shared user session management
src/
├── app/ # Next.js App Router
│ ├── layout.tsx # Root layout with providers
│ ├── page.tsx # Homepage composition
│ ├── globals.css # Global styles & CSS variables
│ ├── contact/ # Contact route
│ ├── robots.ts # SEO robots.txt
│ └── sitemap.ts # SEO sitemap
├── components/
│ ├── landing/ # Business-specific components
│ │ ├── navbar.tsx # Navigation with scroll effects
│ │ ├── hero.tsx # Hero section with animations
│ │ ├── pricing.tsx # Pricing with bilingual support
│ │ └── ...
│ └── ui/ # Reusable UI components (Radix)
├── contexts/
│ └── LanguageContext.tsx # I18n state management
└── lib/
├── data.ts # Centralized data exports
├── i18n/ # Internationalization
│ ├── th.ts # Thai content
│ └── en.ts # English content
└── utils.ts # Utility functions
- Modern Color System: HSL-based with CSS variables for consistency
- Custom Animations: Tailwind + Framer Motion for smooth interactions
- Responsive Design: Mobile-first with adaptive layouts
- Glassmorphism: Backdrop blur effects for modern aesthetics
- Client-side Context: Real-time language switching without reload
- Persistent Preferences: localStorage for user language settings
- Structured Content: Organized Thai/English content files
- Next.js App Router: Server-side rendering with client hydration
- Font Optimization: Google Fonts with
next/fontoptimization - Image Optimization:
next/imagewith lazy loading - Code Splitting: Automatic bundling optimization
- Navbar: Complex navigation with scroll detection and glassmorphism
- Hero: Animated landing section with call-to-action
- Pricing: Bilingual pricing tables with hover effects
- Contact: Form integration with validation and email API
- Toast System: Custom implementation with reducer pattern
- Scroll Detection: Dynamic navbar styling based on scroll position
- Animation System: Framer Motion for complex transitions
- Form Validation: Built-in validation with error handling
- Create component in
src/components/landing/ - Add content to
src/lib/i18n/th.tsanden.ts - Update type definitions in
src/lib/data.ts - Import in
src/app/page.tsx - Test responsive design
- Use CSS variables for theme consistency
- Implement mobile-first responsive design
- Follow Tailwind utility-first approach
- Use Framer Motion for complex animations
- Metadata API: Next.js built-in metadata handling
- Open Graph: Social media sharing optimization
- Sitemap Generation: Automated XML sitemap creation
- Robots.txt: Search engine crawler configuration
# Build and deploy
vercel --prod# Build for production
npm run build
# Start production server
npm startStandard Next.js Dockerfile compatible for containerized deployment.
- A/B Testing Framework - Implement analytics for conversion optimization
- Advanced Animations - Lottie animations for hero section
- Interactive Demos - Live phone call simulation widget
- Progressive Web App - Offline capability and app-like experience
- Performance Optimization - Bundle size reduction and lazy loading
- SEO Enhancement - Schema markup and advanced meta tags
- Accessibility - WCAG 2.1 AA compliance
- Testing Suite - E2E tests with Playwright
- Multi-language Support - Extend beyond Thai/English
- Advanced Analytics - Heatmaps and user behavior tracking
- CMS Integration - Headless CMS for content management
- API Documentation - Interactive API docs for integrations
- Real-time Chat - Customer support integration
- Video Testimonials - Dynamic customer success stories
- Pricing Calculator - Interactive ROI calculator
- Integration Marketplace - Showcase available integrations
- Fork the repository
- Create feature branch (
git checkout -b feature/new-feature) - Commit changes (
git commit -m 'Add new feature') - Push to branch (
git push origin feature/new-feature) - Open Pull Request
Proprietary - ANYCALL Team
Last Updated: February 2026