Spaces:
Running

re / index.html

Commit History

  1. Génère une marketplace web complète "ReventeExpress" avec Next.js 14 + App Router pour la revente d'objets d'occasion au Cameroun. Application professionnelle, moderne, entièrement fonctionnelle avec design premium. STACK TECHNIQUE EXACT: - Framework: Next.js 14.0+ avec App Router + TypeScript - Styling: TailwindCSS 3.4+ + CSS Modules pour animations custom - Cartes: Leaflet.js 1.9.4 avec react-leaflet pour cartes interactives - Icons: @fortawesome/react-fontawesome + Font Awesome 6.5+ - Charts: Chart.js 4.0+ avec react-chartjs-2 pour analytics - Typography: Google Fonts - Poppins (headings) + Inter (body) - Images: next/image avec optimization WebP automatique - State: React Hooks (useState, useEffect) + localStorage pour persistence - Animation: Framer Motion 10+ pour transitions fluides DESIGN SYSTEM EXACT - PALETTE COULEURS: :root { --primary: #F57C00; /* Orange principal - boutons, liens, accents */ --primary-dark: #E65100; /* Orange foncé pour hover states */ --primary-light: #FFB74D; /* Orange clair pour backgrounds */ --secondary: #388E3C; /* Vert - succès, disponible, confirmations */ --error: #D32F2F; /* Rouge - erreurs, alertes, suppression */ --warning: #FFA000; /* Ambre - avertissements, en attente */ --info: #1976D2; /* Bleu - informations, liens */ --neutral-900: #212121; /* Gris très foncé - textes principaux */ --neutral-700: #424242; /* Gris foncé - textes secondaires */ --neutral-500: #757575; /* Gris moyen - textes descriptifs */ --neutral-300: #BDBDBD; /* Gris clair - bordures, séparateurs */ --neutral-100: #F5F5F5; /* Gris très clair - backgrounds */ --white: #FFFFFF; /* Blanc pur - cards, modals */ --black: #000000; /* Noir pur - overlays, text contrast */ } TYPOGRAPHY PRÉCISE: h1 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.5rem; line-height: 1.2; } h2 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 2rem; line-height: 1.3; } h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.5rem; line-height: 1.4; } h4 { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1.25rem; line-height: 1.4; } body { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.6; } COMPOSANTS UI STYLES: .btn-primary { background: linear-gradient(135deg, #F57C00 0%, #E65100 100%); color: white; padding: 12px 24px; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(245, 124, 0, 0.2); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245, 124, 0, 0.3); background: linear-gradient(135deg, #E65100 0%, #D84315 100%); } .card { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; overflow: hidden; } .card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); } .badge-promoted { background: linear-gradient(45deg, #F57C00, #FF9800); color: white; padding: 4px 12px; border-radius: 16px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } STRUCTURE NEXT.JS EXACTE: app/ ├── layout.tsx # Layout principal avec navigation ├── page.tsx # Page d'accueil ├── globals.css # Styles globaux + TailwindCSS ├── annonces/ │ ├── page.tsx # Liste des annonces avec filtres │ ├── [id]/ │ │ └── page.tsx # Détail d'une annonce │ └── loading.tsx # Loading state pour annonces ├── publier/ │ └── page.tsx # Formulaire publication 4 étapes ├── favoris/ │ └── page.tsx # Page favoris avec localStorage ├── recherche/ │ └── page.tsx # Recherche avancée avec filtres ├── dashboard/ │ └── page.tsx # Dashboard personnel utilisateur ├── paiement/ │ └── page.tsx # Système paiement Mobile Money ├── admin/ │ ├── page.tsx # Dashboard administration │ ├── annonces/ │ │ └── page.tsx # Modération annonces │ └── analytics/ │ └── page.tsx # Analytics et statistiques └── support/ └── page.tsx # Support client + FAQ PAGE D'ACCUEIL (app/page.tsx) - HERO SECTION: <section className="bg-gradient-to-br from-orange-50 to-white py-16 lg:py-24"> <div className="container mx-auto px-4"> <div className="grid lg:grid-cols-5 gap-12 items-center"> <div className="lg:col-span-3"> <h1 className="text-4xl lg:text-6xl font-bold text-gray-900 mb-6"> Vends autour de toi. <span className="block text-orange-500">Rapidement. Simplement.</span> </h1> <p className="text-xl text-gray-600 mb-8 leading-relaxed"> La marketplace locale #1 au Cameroun pour vendre et acheter des objets d'occasion dans un rayon de 2km. Sans compte compliqué, paiement Mobile Money. </p> <div className="flex flex-col sm:flex-row gap-4"> <button className="btn-primary text-lg px-8 py-4"> <i className="fas fa-bullhorn mr-3"></i> Publier une annonce </button> <button className="border-2 border-orange-500 text-orange-500 px-8 py-4 rounded-lg font-semibold hover:bg-orange-50 transition"> <i className="fas fa-search mr-3"></i> Parcourir les annonces </button> </div> </div> <div className="lg:col-span-2"> <div className="relative"> <div className="card p-6 max-w-sm mx-auto"> <div className="flex items-center mb-4"> <div className="w-12 h-12 rounded-full bg-gradient-to-br from-orange-400 to-orange-600 flex items-center justify-center text-white font-bold"> JD </div> <div className="ml-3"> <p className="font-semibold text-gray-900">Jean Mballa</p> <p className="text-sm text-gray-500">Bastos, Yaoundé • 4.8⭐</p> </div> <span className="ml-auto badge-promoted">Épinglé</span> </div> <div className="relative h-48 bg-gradient-to-br from-gray-100 to-gray-200 rounded-lg mb-4 overflow-hidden"> <div className="absolute inset-0 flex items-center justify-center"> <i className="fas fa-mobile-alt text-4xl text-gray-400"></i> </div> <div className="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-4"> <p className="text-white font-bold text-xl">450 000 FCFA</p> <div className="flex items-center text-white/90 text-sm"> <span className="bg-white/20 px-2 py-1 rounded-full mr-2">1.2 km</span> <span>Publié il y a 2h</span> </div> </div> </div> <h3 className="font-bold text-lg mb-2">iPhone 13 Pro 128GB - État impeccable</h3> <p className="text-gray-600 text-sm mb-4"> Téléphone en parfait état, acheté il y a 8 mois. Facture + accessoires inclus... </p> <div className="flex gap-2"> <button className="flex-1 bg-green-600 hover:bg-green-700 text-white py-3 rounded-lg font-medium transition"> <i className="fab fa-whatsapp mr-2"></i>WhatsApp </button> <button className="flex-1 bg-gray-200 hover:bg-gray-300 text-gray-800 py-3 rounded-lg font-medium transition"> <i className="fas fa-phone mr-2"></i>Appeler </button> </div> </div> </div> </div> </div> </div> </section> SECTION GÉOLOCALISATION: <section className="py-16 bg-white"> <div className="container mx-auto px-4"> <div className="grid lg:grid-cols-2 gap-12 items-center"> <div> <h2 className="text-3xl font-bold text-gray-900 mb-6"> Trouvez des objets près de chez vous </h2> <p className="text-gray-600 mb-8 text-lg"> Notre système de géolocalisation intelligent vous montre uniquement les annonces dans un rayon de 2km pour faciliter les échanges locaux et économiser vos déplacements. </p> <div className="bg-orange-50 border border-orange-200 rounded-lg p-6 mb-6"> <div className="flex items-center mb-4"> <div className="w-12 h-12 bg-orange-500 rounded-full flex items-center justify-center mr-4"> <i className="fas fa-map-marker-alt text-white text-xl"></i> </div> <div> <p className="font-semibold text-gray-900">Position actuelle détectée</p> <p className="text-gray-600">Bastos, Yaoundé - Rayon de 2km</p> </div> </div> <div className="flex gap-3"> <button className="btn-primary px-6 py-2"> <i className="fas fa-sync-alt mr-2"></i>Actualiser </button> <button className="text-orange-500 hover:text-orange-600 font-medium"> Changer de ville </button> </div> </div> </div> <div> <div className="h-96 rounded-xl overflow-hidden shadow-lg"> {/* Carte Leaflet avec vraies coordonnées Yaoundé */} <LeafletMap center={[3.8480, 11.5021]} zoom={14} markers={[ {lat: 3.855, lng: 11.508, title: "iPhone 13 Pro", price: "450 000 FCFA"}, {lat: 3.843, lng: 11.495, title: "Canapé 3 places", price: "120 000 FCFA"}, {lat: 3.851, lng: 11.502, title: "MacBook Pro", price: "850 000 FCFA"}, {lat: 3.847, lng: 11.510, title: "Vélo de course", price: "85 000 FCFA"} ]} radiusKm={2} /> </div> </div> </div> </div> </section> ANNONCES RÉCENTES (8 cards): <section className="py-16 bg-gray-50"> <div className="container mx-auto px-4"> <div className="flex justify-between items-center mb-12"> <h2 className="text-3xl font-bold text-gray-900">Objets récemment ajoutés</h2> <a href="/annonces" className="text-orange-500 hover:text-orange-600 font-semibold flex items-center"> Voir tout <i className="fas fa-arrow-right ml-2"></i> </a> </div> <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6"> {/* 8 annonces avec vraies données camerounaises */} </div> </div> </section> PAGE LISTE ANNONCES (app/annonces/page.tsx): <div className="container mx-auto px-4 py-8"> <div className="flex flex-col lg:flex-row gap-8"> <aside className="lg:w-1/4"> <div className="bg-white rounded-xl shadow-sm p-6 sticky top-4"> <h3 className="font-bold text-lg mb-6">Filtres</h3> <div className="mb-6"> <label className="block font-medium text-gray-700 mb-2">Catégorie</label> <select className="w-full border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-orange-500"> <option value="">Toutes catégories</option> <option value="electronique">📱 Électronique</option> <option value="mobilier">🪑 Mobilier</option> <option value="vetements">👕 Vêtements</option> <option value="vehicules">🚗 Véhicules</option> <option value="immobilier">🏠 Immobilier</option> </select> </div> <div className="mb-6"> <label className="block font-medium text-gray-700 mb-2">Prix (FCFA)</label> <div className="flex gap-2"> <input type="number" placeholder="Min" className="w-1/2 border border-gray-300 rounded-lg px-3 py-2" /> <input type="number" placeholder="Max" className="w-1/2 border border-gray-300 rounded-lg px-3 py-2" /> </div> </div> <div className="mb-6"> <label className="block font-medium text-gray-700 mb-2">Distance maximale</label> <input type="range" min="0.5" max="5" step="0.5" value="2" className="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer" /> <div className="flex justify-between text-sm text-gray-500 mt-1"> <span>500m</span> <span className="font-medium text-orange-500">2 km</span> <span>5km</span> </div> </div> <button className="w-full btn-primary"> <i className="fas fa-filter mr-2"></i>Appliquer les filtres </button> </div> </aside> <main className="lg:w-3/4"> <div className="bg-white rounded-xl shadow-sm p-6 mb-6"> <div className="flex flex-col sm:flex-row justify-between items-center gap-4 mb-4"> <h1 className="text-2xl font-bold text-gray-900">1,247 annonces près de vous</h1> <select className="border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-orange-500"> <option value="recent">Plus récent</option> <option value="price-asc">Prix croissant</option> <option value="price-desc">Prix décroissant</option> <option value="distance">Plus proche</option> </select> </div> <div className="flex gap-4"> <div className="flex-1 relative"> <input type="text" placeholder="Rechercher des articles (iPhone, canapé, vélo...)" className="w-full border border-gray-300 rounded-lg px-4 py-3 pl-12 focus:ring-2 focus:ring-orange-500" /> <i className="fas fa-search absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400"></i> </div> <button className="bg-orange-500 hover:bg-orange-600 text-white px-6 py-3 rounded-lg font-medium"> <i className="fas fa-map-marked-alt mr-2"></i>Vue carte </button> </div> </div> <div className="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-6"> {/* 20 annonces par page */} </div> </main> </div> </div> FORMULAIRE PUBLICATION (app/publier/page.tsx) - 4 ÉTAPES: Barre de progression avec 4 étapes visuelles Étape 1: Informations (catégorie, titre, description, prix, état) avec validation temps réel Étape 2: Upload photos avec drag & drop et preview Étape 3: Géolocalisation avec carte Leaflet interactive Étape 4: Contact + options paiement (abonnements, épinglage) SYSTÈME PAIEMENT MOBILE MONEY (app/paiement/page.tsx): Plans d'abonnement: 1000F/1mois, 2500F/3mois (populaire), 4000F/6mois Options épinglage: 500F/7j, 1000F/14j, 1500F/30j Sélection MTN/Orange avec logos Saisie numéro téléphone format +237 Simulation processus USSD avec instructions Timer confirmation 5 minutes DONNÉES CAMEROUNAISES EXACTES: VILLES ET QUARTIERS: "Yaoundé": coordinates: [3.8480, 11.5021], districts: ["Centre-ville", "Bastos", "Melen", "Mvog-Mbi", "Essos", "Emombo", "Ngousso", "Nkoldongo", "Obili", "Mokolo", "Mimboman", "Etoug-Ebe", "Nsam", "Nlongkak", "Ekounou"] "Douala": coordinates: [4.0511, 9.7679], districts: ["Akwa", "Bonanjo", "Deido", "New Bell", "Bali", "Bonapriso", "Makepe", "Logpom", "Kotto", "Ndokoti", "Bépanda", "Village", "Bessengue"] "Bafoussam": coordinates: [5.4737, 10.4158], districts: ["Centre-ville", "Tamdja", "Tougang", "Djeleng", "Famla"] "Bamenda": coordinates: [5.9597, 10.1475], districts: ["Commercial Avenue", "Ntarikon", "Mile 4", "Up Station", "Cow Street"] "Garoua": coordinates: [9.3265, 13.3958], districts: ["Centre-ville", "Dougoureye", "Plateau", "Liberté", "Djarengol"] 50+ ANNONCES D'EXEMPLE AVEC DONNÉES RÉALISTES: 1. iPhone 13 Pro 128GB - 450 000 FCFA (Bastos, Yaoundé) - Vendeur: Jean Mballa, 4.8⭐, WhatsApp: +237 677 123 456 2. Canapé 3 places cuir - 120 000 FCFA (Akwa, Douala) - Vendeur: Marie Ngo, 4.6⭐ 3. Moto Yamaha YBR 125 - 650 000 FCFA (New Bell, Douala) - État: Très bon 4. HP EliteBook 840 G5 - 300 000 FCFA (Melen, Yaoundé) - i5, 8GB RAM, SSD 256GB 5. TV Samsung 55" 4K - 350 000 FCFA (Centre-ville, Bafoussam) - Smart TV avec télécommande 6. MacBook Pro M1 - 850 000 FCFA (Bonapriso, Douala) - 512GB, garantie 1 an 7. Réfrigérateur Samsung - 280 000 FCFA (Essos, Yaoundé) - 300L, très bon état 8. Vélo de course professionnel - 85 000 FCFA (Mokolo, Yaoundé) - Cadre aluminium CATÉGORIES COMPLÈTES: 📱 Électronique (1247 objets): Téléphones, Ordinateurs, TV/Audio, Gaming, Appareils photo 🪑 Mobilier (892 objets): Salon, Chambre, Cuisine, Bureau, Décoration 👕 Vêtements (1750 objets): Hommes, Femmes, Enfants, Chaussures, Accessoires 🚗 Véhicules (320 objets): Voitures, Motos, Vélos, Pièces auto 🏠 Immobilier (210 objets): Vente, Location, Terrain, Commercial 💼 Emploi/Services: Offres emploi, Services, Cours, Garde enfants 🎮 Loisirs/Culture: Livres, Jeux, Sport, Musique, Instruments 🌱 Maison/Jardin: Outils, Jardinage, Bricolage, Animaux, Plantes INTÉGRATION CARTES LEAFLET: Utilise Leaflet.js avec OpenStreetMap (gratuit, pas de clé API) Centre: [3.8480, 11.5021] (Yaoundé) avec zoom 14 Markers personnalisés avec popups informatives Cercle rayon 2km visible en orange (#F57C00) Clustering markers pour performance Géolocalisation automatique utilisateur Calculs distance temps réel FONCTIONNALITÉS JAVASCRIPT: Navigation entre pages fluide avec transitions Géolocalisation API navigator.geolocation avec fallbacks Gestion favoris localStorage avec add/remove Validation numéro camerounais (+237 6XX XXX XXX) Génération liens WhatsApp avec messages pré-remplis Toast notifications animées (success, error, warning) Calcul distances géographiques précises Formatage prix FCFA avec séparateurs Formatage dates relatives (il y a 2h, 3j, 1 semaine) DASHBOARD PERSONNEL: Authentification SMS simulée avec timer Vue d'ensemble KPI (vues, contacts, revenus) Onglets: Mes annonces, Statistiques, Abonnements, Messages Graphiques Chart.js pour analytics détaillées Gestion abonnements avec renouvellement 1-clic Modification/suppression annonces en temps réel Export données RGPD avec générateur PDF INTERFACE ADMINISTRATION: Login admin sécurisé avec session management Dashboard analytics temps réel avec graphiques Modération annonces (approuver/rejeter/supprimer) Gestion utilisateurs avec recherche et filtres Configuration tarifs, villes, quartiers dynamique Logs transactions avec export CSV/Excel Système tickets support avec statuts SUPPORT CLIENT: Formulaire contact catégorisé (technique, remboursement, général) FAQ interactive avec recherche instantanée Chat bot simulé avec réponses automatiques contextuelles Guides utilisateur illustrés étape par étape Base connaissances searchable avec tags Contact WhatsApp Business direct OPTIMISATIONS PERFORMANCE: Configuration Next.js pour export statique (compatibilité cPanel) Optimisation images automatique WebP avec next/image Lazy loading contenus avec IntersectionObserver Code splitting par routes pour bundle optimal Cache intelligent ressources avec Service Worker Core Web Vitals optimisés (LCP < 2.5s, FID < 100ms, CLS < 0.1) PWA FEATURES: Manifest.json avec icônes et configuration installation Service Worker pour cache et mode offline Notifications push natives avec gestion permissions Installation possible mobile/desktop Mode offline pour favoris et données cachées SEO OPTIMISÉ: Meta tags dynamiques par page avec descriptions locales Schema.org markup pour annonces et business local Open Graph pour partage social optimisé Sitemap.xml généré automatiquement URLs SEO-friendly avec routing Next.js RESPONSIVE DESIGN: Mobile-first avec breakpoints: 320px, 768px, 1024px, 1280px, 1536px Touch gestures natifs (swipe, pinch zoom) Menu hamburger mobile avec animations fluides Cards adaptatives avec hover effects desktop Navigation optimisée tactile NEXT.CONFIG.JS: output: 'export' pour génération statique trailingSlash: true pour compatibilité serveurs images: { unoptimized: true } pour export statique Support domaines images externes (Unsplash, etc.) Génère une marketplace Next.js complète, moderne, responsive et entièrement fonctionnelle avec toutes ces spécifications détaillées. L'application doit être prête à l'utilisation avec navigation fluide, données camerounaises réalistes, design premium et performances optimisées. Inclus tous les composants, pages, fonctionnalités et interactions spécifiées. - Initial Deployment

    Verified signature
    bae89ec
  2. initial commit

    Verified signature
    a3389e2