A modern, animated landing page for Zap Pilot - the DeFi intent-based execution engine. Built with Next.js, TypeScript, Tailwind CSS, and Framer Motion.
- Modern Design: Beautiful dark theme with gradient animations
- Real-time Data: Live DeFi metrics from CoinGecko and DeFiLlama APIs
- Smooth Animations: Powered by Framer Motion for premium UX
- Responsive: Optimized for all device sizes
- Performance: Static site generation with Next.js
- GitHub Pages Ready: Automated deployment workflow
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Styling: Tailwind CSS
- Animations: Framer Motion
- Icons: Lucide React
- APIs: CoinGecko, DeFiLlama
- Deployment: GitHub Pages
# Clone the repository
git clone <your-repo-url>
cd landing-page
# Install dependencies
npm install
# Start development server
npm run dev
Open http://localhost:3000 to view the site.
npm run dev
- Start development server with Turbopacknpm run build
- Build for productionnpm run start
- Start production servernpm run lint
- Run ESLint
src/
├── app/
│ ├── globals.css
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ ├── Navbar.tsx
│ ├── Hero.tsx
│ ├── Features.tsx
│ ├── UseCases.tsx
│ ├── HowItWorks.tsx
│ ├── CTA.tsx
│ └── Footer.tsx
└── lib/
└── api.ts
- Push to
main
branch - GitHub Actions will automatically build and deploy
- Site will be available at
https://your-username.github.io/landing-page/
# Build static files
npm run build
# Files will be generated in ./out directory
# Upload ./out contents to your hosting provider
- Go to repository Settings → Pages
- Set Source to "GitHub Actions"
- The workflow will automatically deploy on push to main
The landing page fetches real-time DeFi data from:
- CoinGecko API: Bitcoin and Ethereum prices
- DeFiLlama API: Total Value Locked (TVL) data
- Automatic fallbacks: Graceful degradation if APIs are unavailable
- 30-second caching to reduce API calls
- Automatic retries with fallback data
- Real-time price updates
- Error handling and recovery
The design uses a purple-blue gradient theme. Update colors in:
tailwind.config.js
for global color scheme- Component files for specific gradient combinations
Update content in the component files:
Hero.tsx
- Main headline and subtitleFeatures.tsx
- Feature descriptionsUseCases.tsx
- Use case examples
Framer Motion animations can be customized in each component:
- Adjust
duration
,delay
, andease
properties - Modify
variants
for different animation patterns - Add new animations using
motion
components
- Responsive grid layouts
- Touch-friendly interactions
- Optimized animations for mobile devices
- Mobile-first design approach
- Static site generation for fast loading
- Optimized images and assets
- Minimal JavaScript bundle
- Efficient animation performance
- API caching and error handling
- No server-side components for static hosting
- HTTPS-only external API calls
- No sensitive data in client-side code
- CSP-compatible inline styles
This project is part of the Zap Pilot ecosystem. See the main repository for license information.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
For questions or issues:
- Create an issue in the repository
- Join our Discord community
- Check the documentation
Built with ❤️ for the DeFi community