Skip to content

zapPilot/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zap Pilot - Portfolio Management UI

A modern, mobile-first Progressive Web App (PWA) for managing DeFi portfolios using intent-based execution.

Features

  • 📱 PWA Support - Install as mobile app with offline capabilities
  • 🎨 Modern Design - Glass morphism effects with purple/blue gradient theme
  • 💼 Wallet Interface - Professional wallet-style portfolio management
  • 📊 Smart Navigation - Responsive navigation (sidebar for web, bottom for mobile)
  • 🥧 Asset Categories - Visual pie chart for BTC, ETH, STABLECOIN, ALTCOIN categories
  • 🔍 Detailed Analytics - Expandable asset details with pool information and APR
  • 🔄 Intent-Based Actions - ZapIn, ZapOut, and Optimize operations
  • 🧑‍🤝‍🧑 Community Hub - Stats, podcasts, and social links
  • ⚙️ Settings - Comprehensive preferences and help section
  • 📱 Mobile Responsive - Optimized for all screen sizes
  • Performance - Built with Next.js 15 and Turbopack
  • 🎭 Animations - Smooth Framer Motion transitions

Technology Stack

  • Framework: Next.js 15 with App Router
  • Styling: Tailwind CSS v4
  • Animations: Framer Motion
  • Icons: Lucide React
  • PWA: next-pwa
  • TypeScript: Full type safety

Portfolio Metrics

The dashboard displays key portfolio metrics:

  • Total Balance: Current USD value with daily change
  • Portfolio APR: Annual percentage return
  • Max Drawdown: Peak-to-trough decline percentage
  • Risk Score: Portfolio risk assessment (1-10 scale)
  • Composition: Asset allocation breakdown

Application Structure

📱 Navigation

  • Desktop: Left sidebar with detailed navigation
  • Mobile: Bottom tab bar with swipe gestures
  • Sections: Portfolio, Analytics, Community, Airdrop, Settings

💼 Portfolio Tab (Wallet Interface)

  • Balance Overview: Total value, 24h change, portfolio metrics
  • Asset Categories: Interactive pie chart showing:
    • BTC: All Bitcoin-related assets (WBTC, BTC, etc.)
    • ETH: Ethereum assets (stETH, ETH, LSTs)
    • STABLECOIN: USDC, USDT, DAI pools
    • ALTCOIN: LINK, AAVE, and other tokens
  • Detailed View: Expandable categories showing:
    • Individual assets and pools
    • Protocol information (Lido, Aave, Uniswap)
    • APR rates and asset types
    • Pool performance metrics

📊 Analytics Tab

  • Performance Charts: Historical portfolio analytics and metrics
  • Dashboards: Interactive analytics dashboard components

🧑‍🤝‍🧑 Community Tab

  • Community Stats: Ecosystem metrics and engagement
  • Resources: Podcast links and social media connections

🎁 Airdrop Tab

  • Rewards Overview: Token reward programs for early users

⚙️ Settings Tab

  • Account Preferences: Configuration options and personalization
  • Help & Support: Documentation and community links

Quick Actions

Three main intent-based actions available:

  1. ZapIn - Add liquidity optimally across protocols
  2. ZapOut - Exit positions with minimal slippage
  3. Optimize - Rebalance portfolio for maximum yield

Getting Started

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Start production server
npm start

Open http://localhost:3000 with your browser to see the result.

Design System

Following the Zap Pilot design language:

  • Colors: Purple-blue gradients (#8b5cf6 to #3b82f6)
  • Background: Dark theme (#0a0a0f)
  • Glass Morphism: Backdrop blur with transparency
  • Animations: Subtle hover effects and micro-interactions
  • Typography: Geist Sans font family

Mobile Features

  • Touch-friendly button sizes
  • Responsive grid layouts
  • Swipe gestures ready
  • Optimized for iOS and Android
  • Apple Web App metadata

Browser Support

  • Chrome/Edge 88+
  • Firefox 85+
  • Safari 14+
  • Mobile Safari 14+
  • Chrome Mobile 88+

AI Collaboration

This repository includes configuration and guidance for automated agents:

  • .serena/ holds project memories and configuration for the Serena agent.
  • .claude/ and Claude.md document workflows and commands for Anthropic's Claude.

Keep these resources updated as the codebase evolves.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •