zeekay b6d7ea761c feat: Add GPU Clusters page for enterprise deployments
Create comprehensive clusters page for large-scale GPU infrastructure:

Page Features:
- Hero section emphasizing enterprise workloads
- "Why Hanzo Clusters" with 4 key benefits:
  * Scalable Performance (8 GPUs to multi-rack SuperPODs)
  * Trusted & Secure (SOC 2, 24/7 support)
  * Speed to Market (NVIDIA Inception partnership)
  * Cost-Efficient (transparent pricing, volume discounts)

- "Clusters Are Best For" section explaining:
  * Ideal for: Ongoing, large-scale AI workloads
  * Alternative options: DGX Spark, Hanzo Cloud for smaller needs

- Benefits section with 4 detailed cards:
  * Flexible, Dedicated Hardware (custom configs)
  * Transparent Billing & Monitoring (real-time dashboards)
  * Full Integration & Toolchain Support (ML frameworks, containers)
  * Expert Guidance & SLA-Backed Support (24/7 specialists)

- Cluster request form with fields:
  * Contact info (name, email, company)
  * Cluster requirements (detailed description)
  * GPU count selector (8-16 to 128+ GPUs)
  * Rental duration (1-24 months with discounts)
  * Project description
  * Referral source tracking
  * Honeypot spam protection

- CTA section with trust indicators:
  * NVIDIA Inception Partner
  * Techstars Portfolio Company
  * SOC 2 Type II Certified

Dependencies:
- Installed @supabase/supabase-js for backend integration

Route added: /clusters

Next: Set up Supabase backend for RFQ and cluster request storage
2025-10-31 11:11:41 -07:00
2025-10-29 16:55:41 -07:00

Hanzo.Computer - AI Hardware Marketplace

A modern ecommerce platform for purchasing AI compute hardware, featuring the DGX Spark instance ($4,000) as the only credit card purchasable item, with enterprise solutions requiring sales consultation.

๐Ÿš€ Features

Ecommerce Functionality

  • Shopping Cart: Full cart management with add/remove/quantity controls
  • Checkout Flow: Secure Stripe payment integration for DGX Spark
  • Order Management: Account page with order history and status tracking
  • Purchase Methods:
    • โœ… Credit Card (Stripe): DGX Spark ($4,000) - instant online purchase
    • ๐Ÿ“ž Sales Call Required: GPU On-Demand and Enterprise solutions

User Experience

  • Cart Icon: Live cart item counter in header
  • Account Dashboard: View order history, active instances, and total spent
  • Visual Indicators:
    • "Buy Now" badge on purchasable items
    • "Contact Sales Required" badges on enterprise items
    • Clear payment method indicators on each product card
  • Responsive Design: Mobile-first, works on all devices

Technical Stack

  • Framework: React 19 + TypeScript + Vite
  • Styling: Tailwind CSS v4
  • Routing: React Router v7
  • Payments: Stripe (via @stripe/stripe-js + @stripe/react-stripe-js)
  • State Management: React Context API
  • Persistence: LocalStorage for cart and orders

๐Ÿ“ฆ Installation

npm install

๐Ÿ”ง Configuration

Stripe Setup

  1. Create a .env file from the example:
cp .env.example .env
  1. Add your Stripe publishable key:
VITE_STRIPE_PUBLISHABLE_KEY=pk_test_YOUR_KEY_HERE

Get your keys from: https://dashboard.stripe.com/apikeys

Environment Variables

Variable Description Required
VITE_STRIPE_PUBLISHABLE_KEY Stripe publishable key Yes (for checkout)

๐Ÿƒ Development

npm run dev

Visit http://localhost:5173

๐Ÿ—๏ธ Build

npm run build

Preview production build:

npm run preview

๐Ÿ“ Project Structure

computer/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ context/
โ”‚   โ”‚   โ””โ”€โ”€ CartContext.tsx        # Shopping cart state management
โ”‚   โ””โ”€โ”€ pages/
โ”‚       โ”œโ”€โ”€ Cart.tsx               # Shopping cart page
โ”‚       โ”œโ”€โ”€ Checkout.tsx           # Stripe checkout form
โ”‚       โ””โ”€โ”€ Account.tsx            # Order history & account dashboard
โ”œโ”€โ”€ components/
โ”‚   โ”œโ”€โ”€ Header.tsx                 # Navigation with cart icon
โ”‚   โ”œโ”€โ”€ Pricing.tsx                # Product cards with purchase methods
โ”‚   โ”œโ”€โ”€ Hero.tsx                   # Landing page hero
โ”‚   โ”œโ”€โ”€ Features.tsx               # Feature highlights
โ”‚   โ”œโ”€โ”€ HardwareSpec.tsx           # Hardware specifications
โ”‚   โ”œโ”€โ”€ Partners.tsx               # Partner logos
โ”‚   โ”œโ”€โ”€ ImageGallery.tsx           # Product images
โ”‚   โ”œโ”€โ”€ CallToAction.tsx           # CTA section
โ”‚   โ””โ”€โ”€ Footer.tsx                 # Site footer
โ”œโ”€โ”€ App.tsx                        # Main app with routing
โ””โ”€โ”€ .env.example                   # Environment variables template

๐Ÿ›’ Shopping Flow

1. Browse Products (Homepage)

  • View 3 tiers: DGX Spark, GPU On-Demand, Enterprise
  • DGX Spark shows "Buy Now" badge and credit card icon
  • Other products show "Contact Sales Required"

2. Add to Cart (DGX Spark Only)

  • Click "Add to Cart" on DGX Spark
  • See success feedback
  • Cart icon updates with item count
  • Auto-redirect to cart page

3. Shopping Cart

  • Stripe Purchasable Items: DGX Spark with quantity controls
  • Sales Items: Enterprise products with "Schedule Sales Call" button
  • Remove items or update quantities
  • See total price for purchasable items
  • Proceed to checkout or contact sales

4. Checkout (Stripe)

  • Secure payment form with Stripe Elements
  • Billing address collection
  • Credit card input with validation
  • Order summary sidebar
  • Real-time processing feedback

5. Order Confirmation

  • Redirect to Account page with success message
  • Order appears in history
  • Instance provisioning timeline: 24-48 hours
  • Email confirmation (to be implemented on backend)

6. Account Dashboard

  • View all orders with status
  • See active instances
  • Track total spending
  • Quick links to support and enterprise sales

๐Ÿ’ณ Payment Methods

Credit Card (Stripe)

Product: DGX Spark ($4,000)

  • Instant online purchase
  • Secure payment via Stripe
  • Immediate order confirmation
  • Instance provisioned in 24-48 hours

Features:

  • ๐Ÿ”’ PCI-compliant checkout
  • ๐Ÿ’ณ Supports all major credit cards
  • ๐ŸŒ International payments
  • ๐Ÿ“ง Email confirmations

Sales Call (Enterprise)

Products: GPU On-Demand, Enterprise & Resale

  • Custom quotes required
  • Configuration consultation
  • Volume discounts available
  • Managed services options

Contact: https://hanzo.ai/contact

๐ŸŽจ Design Highlights

Visual Indicators

  • โœ… "Buy Now" Badge: Green badge on DGX Spark
  • ๐Ÿ’ณ Credit Card Icon: Shows Stripe payment available
  • ๐Ÿ“ž Sales Icon: Indicates sales consultation required
  • ๐Ÿ›’ Cart Counter: Live update on items added

Color Scheme

  • Primary: #FF6B35 (Vibrant Orange) - CTAs, highlights
  • Secondary: #00D9FF (Cyan) - Sales call actions
  • Dark BG: #0A0A0A - Background
  • Dark Card: #1A1A1A - Cards and components
  • Dark Border: #2A2A2A - Borders

Responsive Breakpoints

  • Mobile: < 768px
  • Tablet: 768px - 1024px
  • Desktop: > 1024px

๐Ÿ” Security

  • Stripe handles all sensitive payment data (PCI-compliant)
  • No credit card data stored on client or server
  • HTTPS required for production
  • Environment variables for API keys
  • CORS and CSP headers recommended

๐Ÿ“Š Data Storage

LocalStorage

  • Cart: localStorage.cart - Shopping cart items
  • Orders: localStorage.orders - Order history (demo)

Note: In production, orders should be stored in a backend database with proper authentication.

๐Ÿš€ Deployment

GitHub Pages (Current)

The site is deployed to GitHub Pages via GitHub Actions:

# .github/workflows/deploy.yml
- Builds on push to main
- Deploys to gh-pages branch
- Live at: https://hanzoai.github.io/computer/

Production Deployment

For production with real payments:

  1. Backend API: Implement server-side Stripe integration

    • Create Payment Intents
    • Handle webhooks
    • Store orders in database
    • Send email confirmations
  2. Environment: Use production Stripe keys

    VITE_STRIPE_PUBLISHABLE_KEY=pk_live_YOUR_LIVE_KEY
    
  3. Database: Store orders, users, instances

    • PostgreSQL or MongoDB recommended
    • User authentication (Auth0, Clerk, etc.)
    • Order tracking and status updates
  4. Email: Set up transactional emails

    • Order confirmations
    • Instance provisioning updates
    • Invoice generation

๐Ÿ”ฎ Future Enhancements

Short Term

  • Backend API for order processing
  • User authentication (login/signup)
  • Email confirmations
  • Invoice generation
  • Payment receipts

Medium Term

  • Subscription support (GPU On-Demand)
  • Usage tracking dashboard
  • Multiple payment methods (ACH, wire transfer)
  • Tax calculation
  • Discount codes

Long Term

  • Self-service instance management
  • Usage-based billing
  • Multi-region support
  • Enterprise portal
  • API access for programmatic orders

๐Ÿ› Known Issues

  • Orders stored in LocalStorage (demo only)
  • No actual payment processing (needs backend)
  • No email confirmations
  • No inventory management
  • No tax calculation

๐Ÿ“ License

Proprietary - Hanzo AI Inc.

๐Ÿค Support


Built with โค๏ธ by Hanzo AI Inc.

S
Description
No description provided
Readme MIT
76 MiB
Languages
TypeScript 94.9%
PLpgSQL 3.1%
HTML 1.1%
JavaScript 0.8%
CSS 0.1%