File size: 39,019 Bytes
d98d82c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 | <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Janngu - Plateforme de dons et cagnottes</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #6B46C1 0%, #4299E1 100%);
}
.donation-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.progress-bar {
transition: width 0.5s ease-in-out;
}
#paymentModal {
transition: all 0.3s ease;
}
.payment-method:hover {
border-color: #6B46C1;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-hand-holding-heart text-3xl"></i>
<h1 class="text-2xl font-bold">Janngu</h1>
</div>
<nav class="hidden md:flex space-x-8">
<a href="#" class="hover:text-purple-200 font-medium">Accueil</a>
<a href="#" class="hover:text-purple-200 font-medium">Cagnottes</a>
<a href="#" class="hover:text-purple-200 font-medium">Comment ça marche</a>
<a href="#" class="hover:text-purple-200 font-medium">Contact</a>
</nav>
<button id="createCampaignBtn" class="bg-white text-purple-700 px-4 py-2 rounded-full font-semibold hover:bg-purple-100 transition">
Créer une cagnotte
</button>
<button class="md:hidden text-2xl">
<i class="fas fa-bars"></i>
</button>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="gradient-bg text-white py-20">
<div class="container mx-auto px-4 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6">Faites la différence avec Janngu</h1>
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">Lancez votre cagnotte en quelques clics et recevez des dons via Orange Money, Wave, Paypal et plus encore.</p>
<div class="flex flex-col sm:flex-row justify-center gap-4">
<button id="heroCreateBtn" class="bg-white text-purple-700 px-6 py-3 rounded-full font-semibold text-lg hover:bg-purple-100 transition">
Créer une cagnotte
</button>
<button class="bg-transparent border-2 border-white px-6 py-3 rounded-full font-semibold text-lg hover:bg-white hover:text-purple-700 transition">
Voir les cagnottes
</button>
</div>
</div>
</section>
<!-- Campaign Creation Modal -->
<div id="campaignModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden flex items-center justify-center p-4">
<div class="bg-white rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Créer votre cagnotte</h2>
<button id="closeModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times text-2xl"></i>
</button>
</div>
<form id="campaignForm">
<div class="mb-6">
<label for="campaignTitle" class="block text-gray-700 font-medium mb-2">Titre de la cagnotte</label>
<input type="text" id="campaignTitle" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" placeholder="Ex: Aide médicale pour mon père" required>
</div>
<div class="mb-6">
<label for="campaignDescription" class="block text-gray-700 font-medium mb-2">Description</label>
<textarea id="campaignDescription" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" placeholder="Expliquez pourquoi vous collectez des fonds..." required></textarea>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div>
<label for="targetAmount" class="block text-gray-700 font-medium mb-2">Montant à atteindre (FCFA)</label>
<input type="number" id="targetAmount" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" placeholder="50000" required>
</div>
<div>
<label for="category" class="block text-gray-700 font-medium mb-2">Catégorie</label>
<select id="category" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500">
<option value="medical">Médical</option>
<option value="education">Éducation</option>
<option value="business">Entreprise</option>
<option value="personal">Personnel</option>
<option value="other">Autre</option>
</select>
</div>
</div>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Image de la cagnotte</label>
<div class="border-2 border-dashed border-gray-300 rounded-lg p-8 text-center">
<i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-2"></i>
<p class="text-gray-500">Glissez-déposez une image ou <span class="text-purple-600 cursor-pointer">parcourir</span></p>
<input type="file" id="campaignImage" class="hidden" accept="image/*">
</div>
</div>
<div class="flex justify-end space-x-4">
<button type="button" id="cancelCampaign" class="px-6 py-2 border border-gray-300 rounded-lg font-medium text-gray-700 hover:bg-gray-100">Annuler</button>
<button type="submit" class="gradient-bg text-white px-6 py-2 rounded-lg font-medium hover:opacity-90">Créer la cagnotte</button>
</div>
</form>
</div>
</div>
</div>
<!-- Featured Campaigns -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Cagnottes en cours</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Campaign Card 1 -->
<div class="bg-white rounded-xl shadow-md overflow-hidden donation-card transition duration-300">
<div class="h-48 bg-purple-100 relative">
<img src="https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Campaign" class="w-full h-full object-cover">
<div class="absolute top-4 left-4 bg-purple-600 text-white px-3 py-1 rounded-full text-sm font-medium">Médical</div>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Aide médicale pour Amadou</h3>
<p class="text-gray-600 mb-4">Amadou a besoin d'une opération urgente pour sauver sa vue. Aidez-nous à collecter les fonds nécessaires.</p>
<div class="mb-4">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>Collecté</span>
<span>350,000 FCFA / 500,000 FCFA</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-purple-600 h-2 rounded-full progress-bar" style="width: 70%"></div>
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-users text-gray-500 mr-2"></i>
<span class="text-gray-600">42 donateurs</span>
</div>
<button class="donate-btn gradient-bg text-white px-4 py-2 rounded-lg text-sm font-medium hover:opacity-90" data-id="1">
Faire un don
</button>
</div>
</div>
</div>
<!-- Campaign Card 2 -->
<div class="bg-white rounded-xl shadow-md overflow-hidden donation-card transition duration-300">
<div class="h-48 bg-blue-100 relative">
<img src="https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Campaign" class="w-full h-full object-cover">
<div class="absolute top-4 left-4 bg-blue-600 text-white px-3 py-1 rounded-full text-sm font-medium">Éducation</div>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Bourses scolaires 2023</h3>
<p class="text-gray-600 mb-4">Aidez 10 enfants défavorisés à poursuivre leur éducation cette année scolaire.</p>
<div class="mb-4">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>Collecté</span>
<span>120,000 FCFA / 300,000 FCFA</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-600 h-2 rounded-full progress-bar" style="width: 40%"></div>
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-users text-gray-500 mr-2"></i>
<span class="text-gray-600">18 donateurs</span>
</div>
<button class="donate-btn gradient-bg text-white px-4 py-2 rounded-lg text-sm font-medium hover:opacity-90" data-id="2">
Faire un don
</button>
</div>
</div>
</div>
<!-- Campaign Card 3 -->
<div class="bg-white rounded-xl shadow-md overflow-hidden donation-card transition duration-300">
<div class="h-48 bg-green-100 relative">
<img src="https://images.unsplash.com/photo-1556740738-b6a63e27c4df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Campaign" class="w-full h-full object-cover">
<div class="absolute top-4 left-4 bg-green-600 text-white px-3 py-1 rounded-full text-sm font-medium">Entreprise</div>
</div>
<div class="p-6">
<h3 class="text-xl font-bold mb-2">Atelier de couture communautaire</h3>
<p class="text-gray-600 mb-4">Soutenez notre projet d'atelier de couture qui emploiera 15 femmes de la communauté.</p>
<div class="mb-4">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>Collecté</span>
<span>750,000 FCFA / 1,000,000 FCFA</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-600 h-2 rounded-full progress-bar" style="width: 75%"></div>
</div>
</div>
<div class="flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-users text-gray-500 mr-2"></i>
<span class="text-gray-600">63 donateurs</span>
</div>
<button class="donate-btn gradient-bg text-white px-4 py-2 rounded-lg text-sm font-medium hover:opacity-90" data-id="3">
Faire un don
</button>
</div>
</div>
</div>
</div>
<div class="text-center mt-12">
<button class="border-2 border-purple-600 text-purple-600 px-6 py-3 rounded-full font-semibold hover:bg-purple-50 transition">
Voir toutes les cagnottes
</button>
</div>
</div>
</section>
<!-- How It Works -->
<section class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Comment ça marche</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-8 rounded-xl shadow-sm text-center">
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-plus text-purple-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-3">1. Créez votre cagnotte</h3>
<p class="text-gray-600">Remplissez le formulaire en quelques minutes avec les détails de votre collecte.</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-sm text-center">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-share-alt text-blue-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-3">2. Partagez votre lien</h3>
<p class="text-gray-600">Diffusez votre cagnotte sur les réseaux sociaux et auprès de vos proches.</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-sm text-center">
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-hand-holding-usd text-green-600 text-2xl"></i>
</div>
<h3 class="text-xl font-bold mb-3">3. Recevez les dons</h3>
<p class="text-gray-600">Les donateurs contribuent via Orange Money, Wave, Paypal et autres méthodes.</p>
</div>
</div>
</div>
</section>
<!-- Payment Methods -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Méthodes de paiement acceptées</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 max-w-4xl mx-auto">
<div class="payment-method bg-white p-6 rounded-xl border-2 border-gray-200 flex flex-col items-center justify-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Orange_Money_logo.svg/1200px-Orange_Money_logo.svg.png" alt="Orange Money" class="h-12 object-contain mb-3">
<span class="text-gray-700 font-medium">Orange Money</span>
</div>
<div class="payment-method bg-white p-6 rounded-xl border-2 border-gray-200 flex flex-col items-center justify-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Wave_logo.png/800px-Wave_logo.png" alt="Wave" class="h-12 object-contain mb-3">
<span class="text-gray-700 font-medium">Wave</span>
</div>
<div class="payment-method bg-white p-6 rounded-xl border-2 border-gray-200 flex flex-col items-center justify-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/PayPal.svg/1200px-PayPal.svg.png" alt="Paypal" class="h-12 object-contain mb-3">
<span class="text-gray-700 font-medium">PayPal</span>
</div>
<div class="payment-method bg-white p-6 rounded-xl border-2 border-gray-200 flex flex-col items-center justify-center">
<img src="https://www.bankizina.com/wp-content/uploads/2021/03/bankil-logo.png" alt="Bankil" class="h-12 object-contain mb-3">
<span class="text-gray-700 font-medium">Bankil</span>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Témoignages</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 max-w-6xl mx-auto">
<div class="bg-white p-8 rounded-xl shadow-sm">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
<i class="fas fa-user text-purple-600"></i>
</div>
<div>
<h4 class="font-bold">Aïssatou D.</h4>
<p class="text-gray-500 text-sm">Créatrice de cagnotte</p>
</div>
</div>
<p class="text-gray-700">"Grâce à Janngu, j'ai pu collecter les fonds nécessaires pour l'opération de ma mère. La plateforme est simple et les dons arrivent rapidement."</p>
<div class="flex mt-4">
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
</div>
</div>
<div class="bg-white p-8 rounded-xl shadow-sm">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
<i class="fas fa-user text-blue-600"></i>
</div>
<div>
<h4 class="font-bold">Mamadou K.</h4>
<p class="text-gray-500 text-sm">Donateur</p>
</div>
</div>
<p class="text-gray-700">"J'apprécie la transparence de Janngu. Je peux voir l'avancement des cagnottes et choisir celles qui me touchent. Le paiement par Wave est très pratique."</p>
<div class="flex mt-4">
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star text-yellow-400"></i>
<i class="fas fa-star-half-alt text-yellow-400"></i>
</div>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl md:text-4xl font-bold mb-6">Prêt à lancer votre cagnotte ?</h2>
<p class="text-xl mb-8 max-w-2xl mx-auto">Rejoignez des milliers de personnes qui utilisent Janngu pour collecter des fonds en toute simplicité.</p>
<button id="bottomCreateBtn" class="bg-white text-purple-700 px-8 py-3 rounded-full font-semibold text-lg hover:bg-purple-100 transition">
Créer une cagnotte maintenant
</button>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<div class="flex items-center space-x-2 mb-4">
<i class="fas fa-hand-holding-heart text-2xl"></i>
<h3 class="text-xl font-bold">Janngu</h3>
</div>
<p class="text-gray-400">La plateforme de dons et cagnottes la plus simple et sécurisée d'Afrique.</p>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Navigation</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Accueil</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Cagnottes</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Créer une cagnotte</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Comment ça marche</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Légal</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Conditions d'utilisation</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Politique de confidentialité</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Sécurité des paiements</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Contact</h4>
<ul class="space-y-2">
<li class="flex items-center">
<i class="fas fa-envelope text-gray-400 mr-2"></i>
<span class="text-gray-400">contact@janngu.com</span>
</li>
<li class="flex items-center">
<i class="fas fa-phone-alt text-gray-400 mr-2"></i>
<span class="text-gray-400">+221 77 123 45 67</span>
</li>
<li class="flex items-center">
<i class="fas fa-map-marker-alt text-gray-400 mr-2"></i>
<span class="text-gray-400">Dakar, Sénégal</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-400 mb-4 md:mb-0">© 2023 Janngu. Tous droits réservés.</p>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
</footer>
<!-- Payment Modal -->
<div id="paymentModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden flex items-center justify-center p-4">
<div class="bg-white rounded-lg shadow-xl max-w-md w-full">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Faire un don</h2>
<button id="closePaymentModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times text-2xl"></i>
</button>
</div>
<div id="campaignInfo" class="mb-6 p-4 bg-gray-50 rounded-lg">
<h3 id="paymentCampaignTitle" class="font-bold mb-1">Aide médicale pour Amadou</h3>
<div class="flex justify-between text-sm text-gray-600">
<span>Objectif: <span id="paymentTargetAmount">500,000 FCFA</span></span>
<span>Collecté: <span id="paymentCollectedAmount">350,000 FCFA</span></span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2 mt-2">
<div id="paymentProgressBar" class="bg-purple-600 h-2 rounded-full" style="width: 70%"></div>
</div>
</div>
<form id="donationForm">
<div class="mb-6">
<label for="donationAmount" class="block text-gray-700 font-medium mb-2">Montant du don (FCFA)</label>
<input type="number" id="donationAmount" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" placeholder="5000" required>
</div>
<div class="mb-6">
<label class="block text-gray-700 font-medium mb-2">Méthode de paiement</label>
<div class="grid grid-cols-2 gap-3">
<label class="payment-option payment-method cursor-pointer">
<input type="radio" name="paymentMethod" value="orange" class="hidden" checked>
<div class="border-2 border-gray-200 rounded-lg p-3 flex items-center justify-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Orange_Money_logo.svg/1200px-Orange_Money_logo.svg.png" alt="Orange Money" class="h-8 mr-2">
<span>Orange Money</span>
</div>
</label>
<label class="payment-option payment-method cursor-pointer">
<input type="radio" name="paymentMethod" value="wave" class="hidden">
<div class="border-2 border-gray-200 rounded-lg p-3 flex items-center justify-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Wave_logo.png/800px-Wave_logo.png" alt="Wave" class="h-8 mr-2">
<span>Wave</span>
</div>
</label>
<label class="payment-option payment-method cursor-pointer">
<input type="radio" name="paymentMethod" value="bankil" class="hidden">
<div class="border-2 border-gray-200 rounded-lg p-3 flex items-center justify-center">
<img src="https://www.bankizina.com/wp-content/uploads/2021/03/bankil-logo.png" alt="Bankil" class="h-8 mr-2">
<span>Bankil</span>
</div>
</label>
<label class="payment-option payment-method cursor-pointer">
<input type="radio" name="paymentMethod" value="paypal" class="hidden">
<div class="border-2 border-gray-200 rounded-lg p-3 flex items-center justify-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/PayPal.svg/1200px-PayPal.svg.png" alt="Paypal" class="h-8 mr-2">
<span>PayPal</span>
</div>
</label>
</div>
</div>
<div class="mb-6">
<label for="donorName" class="block text-gray-700 font-medium mb-2">Votre nom (optionnel)</label>
<input type="text" id="donorName" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" placeholder="Votre nom">
</div>
<div class="mb-6">
<label for="donorMessage" class="block text-gray-700 font-medium mb-2">Message de soutien (optionnel)</label>
<textarea id="donorMessage" rows="2" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-purple-500" placeholder="Votre message..."></textarea>
</div>
<button type="submit" class="w-full gradient-bg text-white px-6 py-3 rounded-lg font-semibold text-lg hover:opacity-90">
Confirmer le don
</button>
</form>
</div>
</div>
</div>
<!-- Success Modal -->
<div id="successModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden flex items-center justify-center p-4">
<div class="bg-white rounded-lg shadow-xl max-w-md w-full text-center p-8">
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6">
<i class="fas fa-check text-green-600 text-2xl"></i>
</div>
<h2 class="text-2xl font-bold text-gray-800 mb-4">Merci pour votre don !</h2>
<p class="text-gray-600 mb-6">Votre contribution fait toute la différence. Un reçu vous a été envoyé par email.</p>
<button id="closeSuccessModal" class="gradient-bg text-white px-6 py-2 rounded-lg font-medium hover:opacity-90">
Retour aux cagnottes
</button>
</div>
</div>
<script>
// DOM Elements
const campaignModal = document.getElementById('campaignModal');
const paymentModal = document.getElementById('paymentModal');
const successModal = document.getElementById('successModal');
const createCampaignBtn = document.getElementById('createCampaignBtn');
const heroCreateBtn = document.getElementById('heroCreateBtn');
const bottomCreateBtn = document.getElementById('bottomCreateBtn');
const closeModal = document.getElementById('closeModal');
const closePaymentModal = document.getElementById('closePaymentModal');
const closeSuccessModal = document.getElementById('closeSuccessModal');
const cancelCampaign = document.getElementById('cancelCampaign');
const campaignForm = document.getElementById('campaignForm');
const donationForm = document.getElementById('donationForm');
const donateButtons = document.querySelectorAll('.donate-btn');
// Campaign data for demo purposes
const campaigns = {
1: {
title: "Aide médicale pour Amadou",
target: 500000,
collected: 350000,
progress: 70
},
2: {
title: "Bourses scolaires 2023",
target: 300000,
collected: 120000,
progress: 40
},
3: {
title: "Atelier de couture communautaire",
target: 1000000,
collected: 750000,
progress: 75
}
};
// Format number with commas
function formatNumber(num) {
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
// Event Listeners
[createCampaignBtn, heroCreateBtn, bottomCreateBtn].forEach(btn => {
btn.addEventListener('click', () => {
campaignModal.classList.remove('hidden');
});
});
closeModal.addEventListener('click', () => {
campaignModal.classList.add('hidden');
});
cancelCampaign.addEventListener('click', () => {
campaignModal.classList.add('hidden');
});
closePaymentModal.addEventListener('click', () => {
paymentModal.classList.add('hidden');
});
closeSuccessModal.addEventListener('click', () => {
successModal.classList.add('hidden');
});
// Campaign form submission
campaignForm.addEventListener('submit', (e) => {
e.preventDefault();
// Get form values
const title = document.getElementById('campaignTitle').value;
const description = document.getElementById('campaignDescription').value;
const targetAmount = document.getElementById('targetAmount').value;
const category = document.getElementById('category').value;
// In a real app, you would send this data to your backend
console.log('New campaign created:', {
title,
description,
targetAmount,
category
});
// Show success message (in a real app, you might redirect or show a confirmation)
alert('Votre cagnotte a été créée avec succès !');
// Reset form and close modal
campaignForm.reset();
campaignModal.classList.add('hidden');
});
// Donate button click
donateButtons.forEach(btn => {
btn.addEventListener('click', () => {
const campaignId = btn.getAttribute('data-id');
const campaign = campaigns[campaignId];
// Update payment modal with campaign data
document.getElementById('paymentCampaignTitle').textContent = campaign.title;
document.getElementById('paymentTargetAmount').textContent = formatNumber(campaign.target) + ' FCFA';
document.getElementById('paymentCollectedAmount').textContent = formatNumber(campaign.collected) + ' FCFA';
document.getElementById('paymentProgressBar').style.width = campaign.progress + '%';
// Show payment modal
paymentModal.classList.remove('hidden');
});
});
// Donation form submission
donationForm.addEventListener('submit', (e) => {
e.preventDefault();
// Get form values
const amount = document.getElementById('donationAmount').value;
const paymentMethod = document.querySelector('input[name="paymentMethod"]:checked').value;
const name = document.getElementById('donorName').value;
const message = document.getElementById('donorMessage').value;
// In a real app, you would process the payment here
console.log('New donation:', {
amount,
paymentMethod,
name,
message
});
// Close payment modal and show success modal
paymentModal.classList.add('hidden');
donationForm.reset();
successModal.classList.remove('hidden');
});
// Close modals when clicking outside
[campaignModal, paymentModal, successModal].forEach(modal => {
modal.addEventListener('click', (e) => {
if (e.target === modal) {
modal.classList.add('hidden');
}
});
});
// Payment method selection
document.querySelectorAll('.payment-option').forEach(option => {
option.addEventListener('click', () => {
document.querySelectorAll('.payment-option').forEach(opt => {
opt.querySelector('div').classList.remove('border-purple-600', 'bg-purple-50');
});
option.querySelector('div').classList.add('border-purple-600', 'bg-purple-50');
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Janngu/don" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |