Skip to content

forgequant/context8-landing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

214 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context8 Landing Page

A modern, terminal-aesthetic landing page built with React 19, Vite 6, Tailwind CSS v4, and Framer Motion 12.

Features

  • Dark Theme: Terminal-inspired UI with custom color palette
  • Smooth Animations: 60fps scroll-triggered effects with Framer Motion
  • Responsive Design: Mobile-first approach with breakpoints for all devices
  • Performance Optimized: Bundle size <200KB, Lighthouse score 90+
  • Accessibility: WCAG 2.1 AA compliant with keyboard navigation
  • Type-Safe: Full TypeScript strict mode with path aliases
  • Tested: Unit tests (Vitest) and E2E tests (Playwright)
  • Crypto Payments: Multi-chain subscription payments (Ethereum, Polygon, BSC)
  • Subscription Management: Pro plan with automated payment verification

Tech Stack

  • React 19 - Concurrent rendering and latest features
  • Vite 6 - Lightning-fast dev server and optimized builds
  • Tailwind CSS v4 - Utility-first CSS with custom dark theme
  • Framer Motion 12 - Production-ready animation library
  • TypeScript 5.3+ - Strict mode for type safety
  • Vitest - Fast unit testing with jsdom
  • Playwright - Cross-browser E2E testing

Quick Start

# Install dependencies
npm install

# Start dev server (http://localhost:5173)
npm run dev

# Run type checking
npm run typecheck

# Run unit tests
npm run test

# Run E2E tests
npm run test:e2e

# Build for production
npm run build

# Preview production build
npm run preview

Crypto Payment Setup

Context8 supports Pro subscriptions paid with stablecoins (USDT/USDC) on three blockchains:

Prerequisites

  • Supabase project with Auth configured
  • Static crypto wallet addresses for Ethereum, Polygon, and BSC
  • Admin email for payment verification

1. Database Setup

Run the migration in Supabase Dashboard → SQL Editor:

-- Copy entire content from the database contract (removed from repo with Specify specs cleanup)

Grant admin role to your email:

UPDATE auth.users
SET raw_user_meta_data = raw_user_meta_data || '{"is_admin": true}'::jsonb
WHERE email = 'your-admin@email.com';

2. Configure Wallet Addresses

Update src/data/walletAddresses.ts with your real wallet addresses:

export const WALLET_ADDRESSES: WalletAddresses = {
  ethereum: {
    usdt: '0xYourEthereumUSDTAddress',
    usdc: '0xYourEthereumUSDCAddress'
  },
  polygon: {
    usdt: '0xYourPolygonUSDTAddress',
    usdc: '0xYourPolygonUSDCAddress'
  },
  bsc: {
    usdt: '0xYourBSCUSDTAddress',
    usdc: '0xYourBSCUSDCAddress'
  }
}

3. Admin Workflow

  1. Log in with admin account
  2. Navigate to /admin
  3. Review pending payments
  4. Click Etherscan/Polygonscan/BSCScan links to verify transactions
  5. Approve or reject with notes
  6. Approved payments activate Pro subscriptions automatically (30 days)

For detailed implementation guide, see project docs in docs/.

4. API Integration

Context8 is API-first. Generate an API key in /dashboard/settings and call the API with Bearer auth:

curl https://api.context8.markets/v1/signals \
  -H "Authorization: Bearer ctx8_sk_..." \
  -d '{"asset": "BTC", "modules": "all"}'

Development

# Run tests in watch mode
npm run test:watch

# Run E2E tests with UI
npm run test:e2e:ui

# Format code
npm run format

# Lint code
npm run lint

Project Structure

frontend-v2/
├── src/
│   ├── components/
│   │   ├── terminal/     # Terminal-themed components
│   │   ├── code/         # Code display components
│   │   ├── sections/     # Page section components
│   │   ├── ui/           # Reusable UI components
│   │   └── layout/       # Layout components
│   ├── hooks/            # Custom React hooks
│   ├── data/             # Static content and configuration
│   ├── styles/           # Global styles and fonts
│   ├── lib/              # Utilities and helpers
│   ├── App.tsx           # Root component
│   └── main.tsx          # Entry point
├── public/
│   ├── fonts/            # Self-hosted fonts
│   └── images/           # Static images
├── tests/
│   ├── unit/             # Vitest unit tests
│   └── e2e/              # Playwright E2E tests
└── vite.config.ts        # Vite configuration

Performance Targets

  • Bundle Size: <200KB (gzip)
  • Lighthouse Score: 90+ (Performance, Accessibility, Best Practices, SEO)
  • Animation: 60fps on modern devices
  • First Contentful Paint: <1.5s
  • Time to Interactive: <3.5s

Browser Support

  • Chrome/Edge (last 2 versions)
  • Firefox (last 2 versions)
  • Safari (last 2 versions)
  • Mobile browsers (iOS Safari, Chrome Mobile)

License

MIT

About

Landing page for Context8 MCP server - Real-time crypto data for AI assistants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors