A premium contact landing page built with Next.js 15, featuring a photorealistic Three.js pill visual and Resend email integration.
- Three.js Pill Visual: Photorealistic capsule with studio lighting and smooth animations
- Dark Mode: Default dark theme with Next Themes
- Contact Form: React Hook Form with Zod validation and Resend integration
- Performance Optimized: Deferred WebGL, view-based animation control, capped device pixel ratio
- Responsive Design: Mobile-first design with TailwindCSS and shadcn/ui
- Next.js 15 (App Router)
- TypeScript
- TailwindCSS
- shadcn/ui
- Three.js
- GSAP
- React Hook Form + Zod
- Resend
- Next Themes
- Install dependencies:
npm install- Configure environment variables:
cp .env.example .env.localAdd your Resend API key to .env.local:
RESEND_API_KEY=your_api_key_here
- Run the development server:
npm run devRESEND_API_KEY: Your Resend API key (required)SALES_EMAIL: Sales contact email (default: sales@clarik.app)SUPPORT_EMAIL: Support contact email (default: support@clarik.app)PRESS_EMAIL: Press contact email (default: press@clarik.app)FROM_EMAIL: Email sender address (must be verified in Resend)
Deploy to Vercel:
- Push to GitHub
- Import to Vercel
- Add environment variables in Vercel dashboard
- Deploy
/app
/contact - Contact landing page
/api/contact - Contact form API endpoint
/components
/ui - shadcn/ui components
/three - Three.js pill component
/lib - Utilities and validation schemas
Proprietary - Clarik ( By Estopia )