# Zanzibar Digital Freezone Portal This is the entry portal for the Zanzibar Digital Freezone platform. It provides a streamlined registration and login interface for digital residents. ## Features - **Digital Resident Registration**: Complete multi-step registration process with KYC - **Stripe Payment Integration**: Secure payment processing for registration fees - **Responsive Design**: Works on desktop and mobile devices - **Real-time Validation**: Form validation and error handling - **Animated UI**: Smooth transitions and professional interface - **Fresh Start**: No form persistence - users start fresh each time for simplicity ## What's Included - Resident registration overlay with expandable form - Stripe Elements integration for secure payments - Form validation and error handling - Responsive Bootstrap-based design - WASM-based Yew frontend ## What's Removed This portal is a stripped-down version of the main platform that only includes: - Resident registration components - Stripe payment integration - Essential models and services Removed components: - Company registration - Treasury dashboard - Accounting system - Business management features - Admin panels - Full platform navigation ## Building and Running ```bash # Install trunk if you haven't already cargo install trunk # Build the WASM application trunk build # Serve for development trunk serve ``` ## Stripe Configuration Update the Stripe publishable key in `index.html`: ```javascript const STRIPE_PUBLISHABLE_KEY = 'pk_test_your_actual_key_here'; ``` ## Server Integration The portal expects a server running on `http://127.0.0.1:3001` with the following endpoints: - `POST /resident/create-payment-intent` - Create payment intent for resident registration ## Purpose This portal serves as the entry point for new users who want to become digital residents. Once they complete registration, they can be redirected to the full platform.