Add 2 files
Browse files- index.html +481 -416
- prompts.txt +3 -1
index.html
CHANGED
|
@@ -12,9 +12,16 @@
|
|
| 12 |
0%, 100% { transform: translateY(0); }
|
| 13 |
50% { transform: translateY(-10px); }
|
| 14 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
.floating {
|
| 16 |
animation: float 6s ease-in-out infinite;
|
| 17 |
}
|
|
|
|
|
|
|
|
|
|
| 18 |
.course-card:hover {
|
| 19 |
transform: translateY(-5px);
|
| 20 |
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
@@ -44,6 +51,13 @@
|
|
| 44 |
.cart-item:hover {
|
| 45 |
background-color: #f8fafc;
|
| 46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
</style>
|
| 48 |
</head>
|
| 49 |
<body class="bg-gray-50 min-h-screen">
|
|
@@ -77,13 +91,13 @@
|
|
| 77 |
<span>Total:</span>
|
| 78 |
<span id="cart-total">0€</span>
|
| 79 |
</div>
|
| 80 |
-
<button id="checkout-btn" class="w-full bg-indigo-600 text-white py-2 rounded-md hover:bg-indigo-700
|
| 81 |
Payer maintenant
|
| 82 |
</button>
|
| 83 |
</div>
|
| 84 |
</div>
|
| 85 |
</div>
|
| 86 |
-
<button id="auth-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700">
|
| 87 |
Se connecter
|
| 88 |
</button>
|
| 89 |
</div>
|
|
@@ -98,12 +112,12 @@
|
|
| 98 |
<a href="#courses" class="block py-2 text-gray-700 hover:text-indigo-600">Cours</a>
|
| 99 |
<a href="#features" class="block py-2 text-gray-700 hover:text-indigo-600">Fonctionnalités</a>
|
| 100 |
<a href="#pricing" class="block py-2 text-gray-700 hover:text-indigo-600">Tarifs</a>
|
| 101 |
-
<div class="flex items-center py-2 text-gray-700">
|
| 102 |
<i class="fas fa-shopping-cart mr-2"></i>
|
| 103 |
<span>Panier</span>
|
| 104 |
<span id="mobile-cart-count" class="ml-auto bg-indigo-600 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
|
| 105 |
</div>
|
| 106 |
-
<button class="w-full bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 mt-2">
|
| 107 |
Se connecter
|
| 108 |
</button>
|
| 109 |
</div>
|
|
@@ -118,10 +132,10 @@
|
|
| 118 |
<h1 class="text-4xl md:text-5xl font-bold mb-4">Apprenez sans limites avec LearnHub</h1>
|
| 119 |
<p class="text-xl mb-8">Accédez à des milliers de cours en ligne dans tous les domaines, enseignés par des experts.</p>
|
| 120 |
<div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
|
| 121 |
-
<a href="#courses" class="bg-white text-indigo-600 px-6 py-3 rounded-lg font-bold text-center hover:bg-gray-100 transition">
|
| 122 |
Explorer les cours
|
| 123 |
</a>
|
| 124 |
-
<a href="#pricing" class="bg-transparent border-2 border-white px-6 py-3 rounded-lg font-bold text-center hover:bg-white hover:text-indigo-600 transition">
|
| 125 |
Voir les abonnements
|
| 126 |
</a>
|
| 127 |
</div>
|
|
@@ -169,200 +183,25 @@
|
|
| 169 |
<!-- Courses Section -->
|
| 170 |
<section id="courses" class="py-16 bg-gray-50">
|
| 171 |
<div class="container mx-auto px-4">
|
| 172 |
-
<div class="flex justify-between items-center mb-12">
|
| 173 |
<h2 class="text-3xl font-bold">Nos Cours Populaires</h2>
|
| 174 |
-
<div class="flex space-x-2">
|
| 175 |
<button class="category-btn active px-4 py-2 rounded-full bg-indigo-600 text-white" data-category="all">Tous</button>
|
| 176 |
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="tech">Technologie</button>
|
| 177 |
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="business">Business</button>
|
| 178 |
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="design">Design</button>
|
|
|
|
|
|
|
| 179 |
</div>
|
| 180 |
</div>
|
| 181 |
|
| 182 |
-
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 183 |
-
<!--
|
| 184 |
-
<div class="course-card bg-white rounded-xl overflow-hidden shadow-md" data-category="tech">
|
| 185 |
-
<div class="relative">
|
| 186 |
-
<img src="https://images.unsplash.com/photo-1551033406-611a8e0dcb14?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Développement Web" class="w-full h-48 object-cover">
|
| 187 |
-
<div class="absolute top-2 right-2 bg-indigo-600 text-white px-2 py-1 rounded text-xs font-bold">Nouveau</div>
|
| 188 |
-
</div>
|
| 189 |
-
<div class="p-6">
|
| 190 |
-
<div class="flex justify-between items-start mb-2">
|
| 191 |
-
<h3 class="text-xl font-bold">Développement Web Full Stack</h3>
|
| 192 |
-
<span class="bg-indigo-100 text-indigo-800 text-xs px-2 py-1 rounded">Tech</span>
|
| 193 |
-
</div>
|
| 194 |
-
<p class="text-gray-600 mb-4">Maîtrisez HTML, CSS, JavaScript, React, Node.js et MongoDB pour devenir développeur full stack.</p>
|
| 195 |
-
<div class="flex items-center mb-4">
|
| 196 |
-
<div class="flex -space-x-2">
|
| 197 |
-
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 198 |
-
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 199 |
-
</div>
|
| 200 |
-
<span class="text-sm text-gray-500 ml-2">Par Sarah & Marc</span>
|
| 201 |
-
</div>
|
| 202 |
-
<div class="flex justify-between items-center">
|
| 203 |
-
<div>
|
| 204 |
-
<span class="text-2xl font-bold">49€</span>
|
| 205 |
-
<span class="text-gray-500 line-through ml-2">99€</span>
|
| 206 |
-
</div>
|
| 207 |
-
<button class="add-to-cart-btn bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700" data-id="1" data-name="Développement Web Full Stack" data-price="49">
|
| 208 |
-
Ajouter au panier
|
| 209 |
-
</button>
|
| 210 |
-
</div>
|
| 211 |
-
</div>
|
| 212 |
-
</div>
|
| 213 |
-
|
| 214 |
-
<!-- Course 2 -->
|
| 215 |
-
<div class="course-card bg-white rounded-xl overflow-hidden shadow-md" data-category="business">
|
| 216 |
-
<div class="relative">
|
| 217 |
-
<img src="https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1415&q=80" alt="Marketing Digital" class="w-full h-48 object-cover">
|
| 218 |
-
</div>
|
| 219 |
-
<div class="p-6">
|
| 220 |
-
<div class="flex justify-between items-start mb-2">
|
| 221 |
-
<h3 class="text-xl font-bold">Marketing Digital Complet</h3>
|
| 222 |
-
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Business</span>
|
| 223 |
-
</div>
|
| 224 |
-
<p class="text-gray-600 mb-4">Apprenez les stratégies de marketing digital les plus efficaces pour booster votre business en ligne.</p>
|
| 225 |
-
<div class="flex items-center mb-4">
|
| 226 |
-
<div class="flex -space-x-2">
|
| 227 |
-
<img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 228 |
-
</div>
|
| 229 |
-
<span class="text-sm text-gray-500 ml-2">Par Amélie</span>
|
| 230 |
-
</div>
|
| 231 |
-
<div class="flex justify-between items-center">
|
| 232 |
-
<div>
|
| 233 |
-
<span class="text-2xl font-bold">39€</span>
|
| 234 |
-
<span class="text-gray-500 line-through ml-2">79€</span>
|
| 235 |
-
</div>
|
| 236 |
-
<button class="add-to-cart-btn bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700" data-id="2" data-name="Marketing Digital Complet" data-price="39">
|
| 237 |
-
Ajouter au panier
|
| 238 |
-
</button>
|
| 239 |
-
</div>
|
| 240 |
-
</div>
|
| 241 |
-
</div>
|
| 242 |
-
|
| 243 |
-
<!-- Course 3 -->
|
| 244 |
-
<div class="course-card bg-white rounded-xl overflow-hidden shadow-md" data-category="design">
|
| 245 |
-
<div class="relative">
|
| 246 |
-
<img src="https://images.unsplash.com/photo-1541462608143-67571c6738dd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="UI/UX Design" class="w-full h-48 object-cover">
|
| 247 |
-
<div class="absolute top-2 right-2 bg-red-600 text-white px-2 py-1 rounded text-xs font-bold">Populaire</div>
|
| 248 |
-
</div>
|
| 249 |
-
<div class="p-6">
|
| 250 |
-
<div class="flex justify-between items-start mb-2">
|
| 251 |
-
<h3 class="text-xl font-bold">UI/UX Design Masterclass</h3>
|
| 252 |
-
<span class="bg-pink-100 text-pink-800 text-xs px-2 py-1 rounded">Design</span>
|
| 253 |
-
</div>
|
| 254 |
-
<p class="text-gray-600 mb-4">Devenez un designer d'interface et d'expérience utilisateur avec Figma, Adobe XD et plus encore.</p>
|
| 255 |
-
<div class="flex items-center mb-4">
|
| 256 |
-
<div class="flex -space-x-2">
|
| 257 |
-
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 258 |
-
<img src="https://randomuser.me/api/portraits/women/33.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 259 |
-
</div>
|
| 260 |
-
<span class="text-sm text-gray-500 ml-2">Par Thomas & Léa</span>
|
| 261 |
-
</div>
|
| 262 |
-
<div class="flex justify-between items-center">
|
| 263 |
-
<div>
|
| 264 |
-
<span class="text-2xl font-bold">59€</span>
|
| 265 |
-
<span class="text-gray-500 line-through ml-2">119€</span>
|
| 266 |
-
</div>
|
| 267 |
-
<button class="add-to-cart-btn bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700" data-id="3" data-name="UI/UX Design Masterclass" data-price="59">
|
| 268 |
-
Ajouter au panier
|
| 269 |
-
</button>
|
| 270 |
-
</div>
|
| 271 |
-
</div>
|
| 272 |
-
</div>
|
| 273 |
-
|
| 274 |
-
<!-- Course 4 -->
|
| 275 |
-
<div class="course-card bg-white rounded-xl overflow-hidden shadow-md" data-category="tech">
|
| 276 |
-
<div class="relative">
|
| 277 |
-
<img src="https://images.unsplash.com/photo-1617791160536-598cf32026fb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1364&q=80" alt="Data Science" class="w-full h-48 object-cover">
|
| 278 |
-
</div>
|
| 279 |
-
<div class="p-6">
|
| 280 |
-
<div class="flex justify-between items-start mb-2">
|
| 281 |
-
<h3 class="text-xl font-bold">Data Science avec Python</h3>
|
| 282 |
-
<span class="bg-indigo-100 text-indigo-800 text-xs px-2 py-1 rounded">Tech</span>
|
| 283 |
-
</div>
|
| 284 |
-
<p class="text-gray-600 mb-4">Apprenez à analyser des données et à créer des modèles prédictifs avec Python, Pandas et Scikit-learn.</p>
|
| 285 |
-
<div class="flex items-center mb-4">
|
| 286 |
-
<div class="flex -space-x-2">
|
| 287 |
-
<img src="https://randomuser.me/api/portraits/men/42.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 288 |
-
</div>
|
| 289 |
-
<span class="text-sm text-gray-500 ml-2">Par Jean</span>
|
| 290 |
-
</div>
|
| 291 |
-
<div class="flex justify-between items-center">
|
| 292 |
-
<div>
|
| 293 |
-
<span class="text-2xl font-bold">69€</span>
|
| 294 |
-
<span class="text-gray-500 line-through ml-2">129€</span>
|
| 295 |
-
</div>
|
| 296 |
-
<button class="add-to-cart-btn bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700" data-id="4" data-name="Data Science avec Python" data-price="69">
|
| 297 |
-
Ajouter au panier
|
| 298 |
-
</button>
|
| 299 |
-
</div>
|
| 300 |
-
</div>
|
| 301 |
-
</div>
|
| 302 |
-
|
| 303 |
-
<!-- Course 5 -->
|
| 304 |
-
<div class="course-card bg-white rounded-xl overflow-hidden shadow-md" data-category="business">
|
| 305 |
-
<div class="relative">
|
| 306 |
-
<img src="https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Finance" class="w-full h-48 object-cover">
|
| 307 |
-
</div>
|
| 308 |
-
<div class="p-6">
|
| 309 |
-
<div class="flex justify-between items-start mb-2">
|
| 310 |
-
<h3 class="text-xl font-bold">Finance pour Entrepreneurs</h3>
|
| 311 |
-
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded">Business</span>
|
| 312 |
-
</div>
|
| 313 |
-
<p class="text-gray-600 mb-4">Maîtrisez les fondamentaux de la finance pour prendre les bonnes décisions pour votre entreprise.</p>
|
| 314 |
-
<div class="flex items-center mb-4">
|
| 315 |
-
<div class="flex -space-x-2">
|
| 316 |
-
<img src="https://randomuser.me/api/portraits/women/62.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 317 |
-
<img src="https://randomuser.me/api/portraits/men/22.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 318 |
-
</div>
|
| 319 |
-
<span class="text-sm text-gray-500 ml-2">Par Sophie & Pierre</span>
|
| 320 |
-
</div>
|
| 321 |
-
<div class="flex justify-between items-center">
|
| 322 |
-
<div>
|
| 323 |
-
<span class="text-2xl font-bold">45€</span>
|
| 324 |
-
<span class="text-gray-500 line-through ml-2">89€</span>
|
| 325 |
-
</div>
|
| 326 |
-
<button class="add-to-cart-btn bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700" data-id="5" data-name="Finance pour Entrepreneurs" data-price="45">
|
| 327 |
-
Ajouter au panier
|
| 328 |
-
</button>
|
| 329 |
-
</div>
|
| 330 |
-
</div>
|
| 331 |
-
</div>
|
| 332 |
-
|
| 333 |
-
<!-- Course 6 -->
|
| 334 |
-
<div class="course-card bg-white rounded-xl overflow-hidden shadow-md" data-category="design">
|
| 335 |
-
<div class="relative">
|
| 336 |
-
<img src="https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Photographie" class="w-full h-48 object-cover">
|
| 337 |
-
</div>
|
| 338 |
-
<div class="p-6">
|
| 339 |
-
<div class="flex justify-between items-start mb-2">
|
| 340 |
-
<h3 class="text-xl font-bold">Photographie Professionnelle</h3>
|
| 341 |
-
<span class="bg-pink-100 text-pink-800 text-xs px-2 py-1 rounded">Design</span>
|
| 342 |
-
</div>
|
| 343 |
-
<p class="text-gray-600 mb-4">Apprenez les techniques des photographes professionnels et maîtrisez la lumière, la composition et l'édition.</p>
|
| 344 |
-
<div class="flex items-center mb-4">
|
| 345 |
-
<div class="flex -space-x-2">
|
| 346 |
-
<img src="https://randomuser.me/api/portraits/men/65.jpg" alt="Instructor" class="w-8 h-8 rounded-full border-2 border-white">
|
| 347 |
-
</div>
|
| 348 |
-
<span class="text-sm text-gray-500 ml-2">Par Nicolas</span>
|
| 349 |
-
</div>
|
| 350 |
-
<div class="flex justify-between items-center">
|
| 351 |
-
<div>
|
| 352 |
-
<span class="text-2xl font-bold">35€</span>
|
| 353 |
-
<span class="text-gray-500 line-through ml-2">75€</span>
|
| 354 |
-
</div>
|
| 355 |
-
<button class="add-to-cart-btn bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700" data-id="6" data-name="Photographie Professionnelle" data-price="35">
|
| 356 |
-
Ajouter au panier
|
| 357 |
-
</button>
|
| 358 |
-
</div>
|
| 359 |
-
</div>
|
| 360 |
-
</div>
|
| 361 |
</div>
|
| 362 |
|
| 363 |
<div class="text-center mt-12">
|
| 364 |
-
<button class="bg-white border-2 border-indigo-600 text-indigo-600 px-6 py-3 rounded-lg font-bold hover:bg-indigo-600 hover:text-white transition">
|
| 365 |
-
|
| 366 |
</button>
|
| 367 |
</div>
|
| 368 |
</div>
|
|
@@ -405,7 +244,7 @@
|
|
| 405 |
<span>Téléchargement des ressources</span>
|
| 406 |
</li>
|
| 407 |
</ul>
|
| 408 |
-
<button class="w-full bg-gray-200 text-gray-800 py-3 rounded-lg font-bold hover:bg-gray-300 transition">
|
| 409 |
S'inscrire gratuitement
|
| 410 |
</button>
|
| 411 |
</div>
|
|
@@ -441,7 +280,7 @@
|
|
| 441 |
<span>Nouveaux cours chaque semaine</span>
|
| 442 |
</li>
|
| 443 |
</ul>
|
| 444 |
-
<button class="w-full bg-indigo-600 text-white py-3 rounded-lg font-bold hover:bg-indigo-700 transition">
|
| 445 |
Choisir Pro
|
| 446 |
</button>
|
| 447 |
</div>
|
|
@@ -476,7 +315,7 @@
|
|
| 476 |
<span>Support dédié</span>
|
| 477 |
</li>
|
| 478 |
</ul>
|
| 479 |
-
<button class="w-full bg-gray-200 text-gray-800 py-3 rounded-lg font-bold hover:bg-gray-300 transition">
|
| 480 |
Contacter les ventes
|
| 481 |
</button>
|
| 482 |
</div>
|
|
@@ -552,7 +391,7 @@
|
|
| 552 |
<div class="container mx-auto px-4 text-center">
|
| 553 |
<h2 class="text-3xl font-bold mb-4">Prêt à commencer votre voyage d'apprentissage?</h2>
|
| 554 |
<p class="text-xl mb-8 max-w-2xl mx-auto">Rejoignez plus de 100,000 étudiants qui ont déjà transformé leur carrière avec nos cours.</p>
|
| 555 |
-
<button class="bg-white text-indigo-600 px-8 py-4 rounded-lg font-bold text-lg hover:bg-gray-100 transition">
|
| 556 |
Commencer maintenant - C'est gratuit
|
| 557 |
</button>
|
| 558 |
</div>
|
|
@@ -744,15 +583,15 @@
|
|
| 744 |
|
| 745 |
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
|
| 746 |
<img src="https://images.unsplash.com/photo-1617791160536-598cf32026fb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1364&q=80" alt="Data Science" class="w-full h-24 object-cover rounded-md mb-2">
|
| 747 |
-
<h4 class="font-bold text-sm">Data Science
|
| 748 |
-
<p class="text-xs text-gray-600 mb-2">Par
|
| 749 |
<button class="w-full text-xs bg-indigo-600 text-white py-1 px-2 rounded hover:bg-indigo-700">Ajouter à ma liste</button>
|
| 750 |
</div>
|
| 751 |
|
| 752 |
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
|
| 753 |
-
<img src="https://images.unsplash.com/photo-
|
| 754 |
-
<h4 class="font-bold text-sm">
|
| 755 |
-
<p class="text-xs text-gray-600 mb-2">Par
|
| 756 |
<button class="w-full text-xs bg-indigo-600 text-white py-1 px-2 rounded hover:bg-indigo-700">Ajouter à ma liste</button>
|
| 757 |
</div>
|
| 758 |
</div>
|
|
@@ -762,44 +601,12 @@
|
|
| 762 |
<div id="payments-tab" class="tab-content py-6">
|
| 763 |
<h3 class="text-xl font-bold mb-4">Historique des paiements</h3>
|
| 764 |
|
| 765 |
-
<div class="mb-8">
|
| 766 |
-
<div class="flex justify-between items-center mb-4">
|
| 767 |
-
<h4 class="font-medium">Méthodes de paiement</h4>
|
| 768 |
-
<button class="text-sm text-indigo-600 hover:text-indigo-800">Ajouter une méthode</button>
|
| 769 |
-
</div>
|
| 770 |
-
|
| 771 |
-
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
|
| 772 |
-
<div class="border border-gray-200 rounded-lg p-4 flex items-center">
|
| 773 |
-
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/PayPal.svg/2560px-PayPal.svg.png" alt="PayPal" class="h-8 mr-4">
|
| 774 |
-
<div>
|
| 775 |
-
<p class="font-medium">PayPal</p>
|
| 776 |
-
<p class="text-sm text-gray-600">marie.d@gmail.com</p>
|
| 777 |
-
</div>
|
| 778 |
-
<button class="ml-auto text-gray-400 hover:text-gray-700">
|
| 779 |
-
<i class="fas fa-ellipsis-v"></i>
|
| 780 |
-
</button>
|
| 781 |
-
</div>
|
| 782 |
-
|
| 783 |
-
<div class="border border-gray-200 rounded-lg p-4 flex items-center">
|
| 784 |
-
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Stripe_Logo%2C_revised_2016.svg/2560px-Stripe_Logo%2C_revised_2016.svg.png" alt="Stripe" class="h-8 mr-4">
|
| 785 |
-
<div>
|
| 786 |
-
<p class="font-medium">Carte Visa</p>
|
| 787 |
-
<p class="text-sm text-gray-600">•••• •••• •••• 4242</p>
|
| 788 |
-
</div>
|
| 789 |
-
<button class="ml-auto text-gray-400 hover:text-gray-700">
|
| 790 |
-
<i class="fas fa-ellipsis-v"></i>
|
| 791 |
-
</button>
|
| 792 |
-
</div>
|
| 793 |
-
</div>
|
| 794 |
-
</div>
|
| 795 |
-
|
| 796 |
<div class="overflow-x-auto">
|
| 797 |
<table class="min-w-full divide-y divide-gray-200">
|
| 798 |
<thead class="bg-gray-50">
|
| 799 |
<tr>
|
| 800 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
| 801 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Description</th>
|
| 802 |
-
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Méthode</th>
|
| 803 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Montant</th>
|
| 804 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
|
| 805 |
</tr>
|
|
@@ -808,42 +615,38 @@
|
|
| 808 |
<tr>
|
| 809 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/06/2023</td>
|
| 810 |
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Abonnement Pro</td>
|
| 811 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">PayPal</td>
|
| 812 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">19,00 €</td>
|
| 813 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 814 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Payé</span>
|
| 815 |
-
</td>
|
| 816 |
</tr>
|
| 817 |
<tr>
|
| 818 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/05/2023</td>
|
| 819 |
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Abonnement Pro</td>
|
| 820 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">PayPal</td>
|
| 821 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">19,00 €</td>
|
| 822 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 823 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Payé</span>
|
| 824 |
-
</td>
|
| 825 |
</tr>
|
| 826 |
<tr>
|
| 827 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/04/2023</td>
|
| 828 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
|
| 829 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 830 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-
|
| 831 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 832 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Payé</span>
|
| 833 |
-
</td>
|
| 834 |
-
</tr>
|
| 835 |
-
<tr>
|
| 836 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">10/04/2023</td>
|
| 837 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Cours Marketing Digital</td>
|
| 838 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Carte Visa</td>
|
| 839 |
-
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">39,00 €</td>
|
| 840 |
-
<td class="px-6 py-4 whitespace-nowrap">
|
| 841 |
-
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Payé</span>
|
| 842 |
-
</td>
|
| 843 |
</tr>
|
| 844 |
</tbody>
|
| 845 |
</table>
|
| 846 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 847 |
</div>
|
| 848 |
|
| 849 |
<!-- Settings Tab -->
|
|
@@ -852,50 +655,40 @@
|
|
| 852 |
|
| 853 |
<form class="space-y-6">
|
| 854 |
<div>
|
| 855 |
-
<
|
| 856 |
-
<
|
| 857 |
-
<div>
|
| 858 |
-
<label for="first-name" class="block text-sm font-medium text-gray-700 mb-1">Prénom</label>
|
| 859 |
-
<input type="text" id="first-name" value="Marie" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 860 |
-
</div>
|
| 861 |
-
<div>
|
| 862 |
-
<label for="last-name" class="block text-sm font-medium text-gray-700 mb-1">Nom</label>
|
| 863 |
-
<input type="text" id="last-name" value="Dupont" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 864 |
-
</div>
|
| 865 |
-
</div>
|
| 866 |
-
<div class="mb-4">
|
| 867 |
-
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
| 868 |
-
<input type="email" id="email" value="marie.dupont@gmail.com" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 869 |
-
</div>
|
| 870 |
-
<div>
|
| 871 |
-
<label for="bio" class="block text-sm font-medium text-gray-700 mb-1">Bio</label>
|
| 872 |
-
<textarea id="bio" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">Développeuse front-end passionnée par l'UI/UX design. J'aime partager mes connaissances et apprendre de nouvelles technologies.</textarea>
|
| 873 |
-
</div>
|
| 874 |
</div>
|
| 875 |
|
| 876 |
<div>
|
| 877 |
-
<
|
| 878 |
-
<
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
<
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 886 |
</div>
|
| 887 |
-
<div>
|
| 888 |
-
<
|
| 889 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
| 890 |
</div>
|
| 891 |
</div>
|
| 892 |
</div>
|
| 893 |
|
| 894 |
-
<div class="
|
| 895 |
-
<button type="
|
| 896 |
-
Annuler
|
| 897 |
-
</button>
|
| 898 |
-
<button type="submit" class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700">
|
| 899 |
Enregistrer les modifications
|
| 900 |
</button>
|
| 901 |
</div>
|
|
@@ -911,165 +704,437 @@
|
|
| 911 |
<i class="fas fa-times"></i>
|
| 912 |
</button>
|
| 913 |
|
| 914 |
-
<h2 class="text-2xl font-bold mb-6">Finaliser votre commande</h2>
|
| 915 |
|
| 916 |
<div class="mb-6">
|
| 917 |
-
<h3 class="font-
|
| 918 |
<div id="checkout-items" class="space-y-2 mb-4">
|
| 919 |
-
<!--
|
| 920 |
</div>
|
| 921 |
-
<div class="
|
| 922 |
-
<
|
| 923 |
-
|
|
|
|
|
|
|
| 924 |
</div>
|
| 925 |
</div>
|
| 926 |
|
| 927 |
-
<
|
| 928 |
-
<
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
<input type="radio" id="paypal" name="payment" value="paypal" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300" checked>
|
| 933 |
-
<label for="paypal" class="ml-2 block text-sm text-gray-700 flex items-center">
|
| 934 |
-
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/PayPal.svg/2560px-PayPal.svg.png" alt="PayPal" class="h-6 ml-2">
|
| 935 |
-
</label>
|
| 936 |
-
</div>
|
| 937 |
-
|
| 938 |
-
<div class="flex items-center">
|
| 939 |
-
<input type="radio" id="stripe" name="payment" value="stripe" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300">
|
| 940 |
-
<label for="stripe" class="ml-2 block text-sm text-gray-700 flex items-center">
|
| 941 |
-
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Stripe_Logo%2C_revised_2016.svg/2560px-Stripe_Logo%2C_revised_2016.svg.png" alt="Stripe" class="h-6 ml-2">
|
| 942 |
-
<span class="ml-2">Carte de crédit</span>
|
| 943 |
-
</label>
|
| 944 |
</div>
|
|
|
|
| 945 |
</div>
|
| 946 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 947 |
|
| 948 |
-
<div
|
| 949 |
-
<
|
| 950 |
-
<
|
|
|
|
|
|
|
| 951 |
</div>
|
| 952 |
-
|
| 953 |
-
<button id="confirm-payment" class="w-full bg-indigo-600 text-white py-3 rounded-lg font-bold hover:bg-indigo-700 transition">
|
| 954 |
-
Payer maintenant
|
| 955 |
-
</button>
|
| 956 |
-
|
| 957 |
-
<p class="text-xs text-gray-500 mt-4 text-center">
|
| 958 |
-
En cliquant sur "Payer maintenant", vous acceptez nos <a href="#" class="text-indigo-600">Conditions d'utilisation</a> et notre <a href="#" class="text-indigo-600">Politique de confidentialité</a>.
|
| 959 |
-
</p>
|
| 960 |
</div>
|
| 961 |
</div>
|
| 962 |
|
| 963 |
-
<!--
|
| 964 |
<div id="success-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 965 |
<div class="bg-white rounded-xl p-8 w-full max-w-md text-center">
|
| 966 |
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 967 |
<i class="fas fa-check text-green-600 text-2xl"></i>
|
| 968 |
</div>
|
| 969 |
<h2 class="text-2xl font-bold mb-2">Paiement réussi!</h2>
|
| 970 |
-
<p class="text-gray-600 mb-6">Merci pour votre achat. Vous
|
| 971 |
-
<button id="close-success-modal" class="bg-indigo-600 text-white px-6 py-2 rounded-
|
| 972 |
-
Retour
|
| 973 |
</button>
|
| 974 |
</div>
|
| 975 |
</div>
|
| 976 |
|
| 977 |
<script>
|
| 978 |
-
//
|
| 979 |
-
document.
|
| 980 |
-
const
|
| 981 |
-
|
| 982 |
-
|
| 983 |
-
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
|
| 993 |
-
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
-
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
-
|
| 1015 |
-
|
| 1016 |
-
|
| 1017 |
-
|
| 1018 |
-
|
| 1019 |
-
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
|
| 1031 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1032 |
|
| 1033 |
-
|
| 1034 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1035 |
|
| 1036 |
-
//
|
| 1037 |
-
const
|
| 1038 |
-
document.getElementById(tabId).classList.add('active');
|
| 1039 |
-
});
|
| 1040 |
-
});
|
| 1041 |
-
|
| 1042 |
-
// Course category filtering
|
| 1043 |
-
document.querySelectorAll('.category-btn').forEach(btn => {
|
| 1044 |
-
btn.addEventListener('click', function() {
|
| 1045 |
-
document.querySelectorAll('.category-btn').forEach(b => {
|
| 1046 |
-
b.classList.remove('active', 'bg-indigo-600', 'text-white');
|
| 1047 |
-
b.classList.add('bg-white', 'text-gray-700');
|
| 1048 |
-
});
|
| 1049 |
|
| 1050 |
-
|
| 1051 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1052 |
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1057 |
} else {
|
| 1058 |
-
|
| 1059 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1060 |
});
|
| 1061 |
});
|
| 1062 |
-
});
|
| 1063 |
-
|
| 1064 |
-
// Shopping cart functionality
|
| 1065 |
-
let cart = [];
|
| 1066 |
-
|
| 1067 |
-
function updateCart() {
|
| 1068 |
-
const cartCount = document.getElementById('cart-count');
|
| 1069 |
-
const mobileCartCount = document.getElementById('mobile-cart-count');
|
| 1070 |
-
const cartTotal = document.getElementById('cart-total');
|
| 1071 |
-
const checkoutBtn = document.getElementById('checkout-btn');
|
| 1072 |
|
| 1073 |
-
//
|
| 1074 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1075 |
</html>
|
|
|
|
| 12 |
0%, 100% { transform: translateY(0); }
|
| 13 |
50% { transform: translateY(-10px); }
|
| 14 |
}
|
| 15 |
+
@keyframes pulse {
|
| 16 |
+
0%, 100% { transform: scale(1); }
|
| 17 |
+
50% { transform: scale(1.05); }
|
| 18 |
+
}
|
| 19 |
.floating {
|
| 20 |
animation: float 6s ease-in-out infinite;
|
| 21 |
}
|
| 22 |
+
.pulse:hover {
|
| 23 |
+
animation: pulse 1.5s infinite;
|
| 24 |
+
}
|
| 25 |
.course-card:hover {
|
| 26 |
transform: translateY(-5px);
|
| 27 |
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
|
|
| 51 |
.cart-item:hover {
|
| 52 |
background-color: #f8fafc;
|
| 53 |
}
|
| 54 |
+
.loading-spinner {
|
| 55 |
+
animation: spin 1s linear infinite;
|
| 56 |
+
}
|
| 57 |
+
@keyframes spin {
|
| 58 |
+
0% { transform: rotate(0deg); }
|
| 59 |
+
100% { transform: rotate(360deg); }
|
| 60 |
+
}
|
| 61 |
</style>
|
| 62 |
</head>
|
| 63 |
<body class="bg-gray-50 min-h-screen">
|
|
|
|
| 91 |
<span>Total:</span>
|
| 92 |
<span id="cart-total">0€</span>
|
| 93 |
</div>
|
| 94 |
+
<button id="checkout-btn" class="w-full bg-indigo-600 text-white py-2 rounded-md hover:bg-indigo-700">
|
| 95 |
Payer maintenant
|
| 96 |
</button>
|
| 97 |
</div>
|
| 98 |
</div>
|
| 99 |
</div>
|
| 100 |
+
<button id="auth-btn" class="bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 transition-all duration-300 hover:shadow-lg">
|
| 101 |
Se connecter
|
| 102 |
</button>
|
| 103 |
</div>
|
|
|
|
| 112 |
<a href="#courses" class="block py-2 text-gray-700 hover:text-indigo-600">Cours</a>
|
| 113 |
<a href="#features" class="block py-2 text-gray-700 hover:text-indigo-600">Fonctionnalités</a>
|
| 114 |
<a href="#pricing" class="block py-2 text-gray-700 hover:text-indigo-600">Tarifs</a>
|
| 115 |
+
<div class="flex items-center py-2 text-gray-700 hover:text-indigo-600 cursor-pointer" id="mobile-cart-btn">
|
| 116 |
<i class="fas fa-shopping-cart mr-2"></i>
|
| 117 |
<span>Panier</span>
|
| 118 |
<span id="mobile-cart-count" class="ml-auto bg-indigo-600 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
|
| 119 |
</div>
|
| 120 |
+
<button class="w-full bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 mt-2" id="mobile-auth-btn">
|
| 121 |
Se connecter
|
| 122 |
</button>
|
| 123 |
</div>
|
|
|
|
| 132 |
<h1 class="text-4xl md:text-5xl font-bold mb-4">Apprenez sans limites avec LearnHub</h1>
|
| 133 |
<p class="text-xl mb-8">Accédez à des milliers de cours en ligne dans tous les domaines, enseignés par des experts.</p>
|
| 134 |
<div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
|
| 135 |
+
<a href="#courses" class="bg-white text-indigo-600 px-6 py-3 rounded-lg font-bold text-center hover:bg-gray-100 transition pulse">
|
| 136 |
Explorer les cours
|
| 137 |
</a>
|
| 138 |
+
<a href="#pricing" class="bg-transparent border-2 border-white px-6 py-3 rounded-lg font-bold text-center hover:bg-white hover:text-indigo-600 transition pulse">
|
| 139 |
Voir les abonnements
|
| 140 |
</a>
|
| 141 |
</div>
|
|
|
|
| 183 |
<!-- Courses Section -->
|
| 184 |
<section id="courses" class="py-16 bg-gray-50">
|
| 185 |
<div class="container mx-auto px-4">
|
| 186 |
+
<div class="flex justify-between items-center mb-12 flex-wrap gap-4">
|
| 187 |
<h2 class="text-3xl font-bold">Nos Cours Populaires</h2>
|
| 188 |
+
<div class="flex space-x-2 flex-wrap">
|
| 189 |
<button class="category-btn active px-4 py-2 rounded-full bg-indigo-600 text-white" data-category="all">Tous</button>
|
| 190 |
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="tech">Technologie</button>
|
| 191 |
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="business">Business</button>
|
| 192 |
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="design">Design</button>
|
| 193 |
+
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="langues">Langues</button>
|
| 194 |
+
<button class="category-btn px-4 py-2 rounded-full bg-white text-gray-700 hover:bg-gray-100" data-category="sante">Santé</button>
|
| 195 |
</div>
|
| 196 |
</div>
|
| 197 |
|
| 198 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8" id="courses-container">
|
| 199 |
+
<!-- 200 courses will be generated by JavaScript -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
</div>
|
| 201 |
|
| 202 |
<div class="text-center mt-12">
|
| 203 |
+
<button id="load-more-btn" class="bg-white border-2 border-indigo-600 text-indigo-600 px-6 py-3 rounded-lg font-bold hover:bg-indigo-600 hover:text-white transition pulse">
|
| 204 |
+
Charger plus de cours
|
| 205 |
</button>
|
| 206 |
</div>
|
| 207 |
</div>
|
|
|
|
| 244 |
<span>Téléchargement des ressources</span>
|
| 245 |
</li>
|
| 246 |
</ul>
|
| 247 |
+
<button class="w-full bg-gray-200 text-gray-800 py-3 rounded-lg font-bold hover:bg-gray-300 transition pulse">
|
| 248 |
S'inscrire gratuitement
|
| 249 |
</button>
|
| 250 |
</div>
|
|
|
|
| 280 |
<span>Nouveaux cours chaque semaine</span>
|
| 281 |
</li>
|
| 282 |
</ul>
|
| 283 |
+
<button class="w-full bg-indigo-600 text-white py-3 rounded-lg font-bold hover:bg-indigo-700 transition pulse">
|
| 284 |
Choisir Pro
|
| 285 |
</button>
|
| 286 |
</div>
|
|
|
|
| 315 |
<span>Support dédié</span>
|
| 316 |
</li>
|
| 317 |
</ul>
|
| 318 |
+
<button class="w-full bg-gray-200 text-gray-800 py-3 rounded-lg font-bold hover:bg-gray-300 transition pulse">
|
| 319 |
Contacter les ventes
|
| 320 |
</button>
|
| 321 |
</div>
|
|
|
|
| 391 |
<div class="container mx-auto px-4 text-center">
|
| 392 |
<h2 class="text-3xl font-bold mb-4">Prêt à commencer votre voyage d'apprentissage?</h2>
|
| 393 |
<p class="text-xl mb-8 max-w-2xl mx-auto">Rejoignez plus de 100,000 étudiants qui ont déjà transformé leur carrière avec nos cours.</p>
|
| 394 |
+
<button class="bg-white text-indigo-600 px-8 py-4 rounded-lg font-bold text-lg hover:bg-gray-100 transition pulse">
|
| 395 |
Commencer maintenant - C'est gratuit
|
| 396 |
</button>
|
| 397 |
</div>
|
|
|
|
| 583 |
|
| 584 |
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
|
| 585 |
<img src="https://images.unsplash.com/photo-1617791160536-598cf32026fb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1364&q=80" alt="Data Science" class="w-full h-24 object-cover rounded-md mb-2">
|
| 586 |
+
<h4 class="font-bold text-sm">Data Science pour débutants</h4>
|
| 587 |
+
<p class="text-xs text-gray-600 mb-2">Par Dr. Martin</p>
|
| 588 |
<button class="w-full text-xs bg-indigo-600 text-white py-1 px-2 rounded hover:bg-indigo-700">Ajouter à ma liste</button>
|
| 589 |
</div>
|
| 590 |
|
| 591 |
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition">
|
| 592 |
+
<img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Photographie" class="w-full h-24 object-cover rounded-md mb-2">
|
| 593 |
+
<h4 class="font-bold text-sm">Photographie professionnelle</h4>
|
| 594 |
+
<p class="text-xs text-gray-600 mb-2">Par Sarah K.</p>
|
| 595 |
<button class="w-full text-xs bg-indigo-600 text-white py-1 px-2 rounded hover:bg-indigo-700">Ajouter à ma liste</button>
|
| 596 |
</div>
|
| 597 |
</div>
|
|
|
|
| 601 |
<div id="payments-tab" class="tab-content py-6">
|
| 602 |
<h3 class="text-xl font-bold mb-4">Historique des paiements</h3>
|
| 603 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 604 |
<div class="overflow-x-auto">
|
| 605 |
<table class="min-w-full divide-y divide-gray-200">
|
| 606 |
<thead class="bg-gray-50">
|
| 607 |
<tr>
|
| 608 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
| 609 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Description</th>
|
|
|
|
| 610 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Montant</th>
|
| 611 |
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Statut</th>
|
| 612 |
</tr>
|
|
|
|
| 615 |
<tr>
|
| 616 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/06/2023</td>
|
| 617 |
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Abonnement Pro</td>
|
|
|
|
| 618 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">19,00 €</td>
|
| 619 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600">Payé</td>
|
|
|
|
|
|
|
| 620 |
</tr>
|
| 621 |
<tr>
|
| 622 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/05/2023</td>
|
| 623 |
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Abonnement Pro</td>
|
|
|
|
| 624 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">19,00 €</td>
|
| 625 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600">Payé</td>
|
|
|
|
|
|
|
| 626 |
</tr>
|
| 627 |
<tr>
|
| 628 |
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15/04/2023</td>
|
| 629 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Abonnement Pro</td>
|
| 630 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">19,00 €</td>
|
| 631 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-600">Payé</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 632 |
</tr>
|
| 633 |
</tbody>
|
| 634 |
</table>
|
| 635 |
</div>
|
| 636 |
+
|
| 637 |
+
<div class="mt-8">
|
| 638 |
+
<h4 class="text-lg font-bold mb-4">Méthode de paiement</h4>
|
| 639 |
+
<div class="border border-gray-200 rounded-lg p-4 flex justify-between items-center">
|
| 640 |
+
<div class="flex items-center">
|
| 641 |
+
<i class="fab fa-cc-visa text-3xl text-blue-600 mr-4"></i>
|
| 642 |
+
<div>
|
| 643 |
+
<p class="font-medium">Carte Visa •••• •••• •••• 4242</p>
|
| 644 |
+
<p class="text-sm text-gray-500">Expire le 04/2025</p>
|
| 645 |
+
</div>
|
| 646 |
+
</div>
|
| 647 |
+
<button class="text-indigo-600 hover:text-indigo-800">Modifier</button>
|
| 648 |
+
</div>
|
| 649 |
+
</div>
|
| 650 |
</div>
|
| 651 |
|
| 652 |
<!-- Settings Tab -->
|
|
|
|
| 655 |
|
| 656 |
<form class="space-y-6">
|
| 657 |
<div>
|
| 658 |
+
<label for="full-name" class="block text-sm font-medium text-gray-700 mb-1">Nom complet</label>
|
| 659 |
+
<input type="text" id="full-name" value="Marie Dupont" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 660 |
</div>
|
| 661 |
|
| 662 |
<div>
|
| 663 |
+
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
| 664 |
+
<input type="email" id="email" value="marie.dupont@example.com" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
| 665 |
+
</div>
|
| 666 |
+
|
| 667 |
+
<div>
|
| 668 |
+
<label for="bio" class="block text-sm font-medium text-gray-700 mb-1">Bio</label>
|
| 669 |
+
<textarea id="bio" rows="3" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">Développeuse web passionnée par l'apprentissage continu.</textarea>
|
| 670 |
+
</div>
|
| 671 |
+
|
| 672 |
+
<div>
|
| 673 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Préférences de notification</label>
|
| 674 |
+
<div class="space-y-3">
|
| 675 |
+
<div class="flex items-center">
|
| 676 |
+
<input type="checkbox" id="email-notifications" checked class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 677 |
+
<label for="email-notifications" class="ml-2 block text-sm text-gray-700">Notifications par email</label>
|
| 678 |
</div>
|
| 679 |
+
<div class="flex items-center">
|
| 680 |
+
<input type="checkbox" id="push-notifications" checked class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 681 |
+
<label for="push-notifications" class="ml-2 block text-sm text-gray-700">Notifications push</label>
|
| 682 |
+
</div>
|
| 683 |
+
<div class="flex items-center">
|
| 684 |
+
<input type="checkbox" id="sms-notifications" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 685 |
+
<label for="sms-notifications" class="ml-2 block text-sm text-gray-700">Notifications SMS</label>
|
| 686 |
</div>
|
| 687 |
</div>
|
| 688 |
</div>
|
| 689 |
|
| 690 |
+
<div class="pt-4">
|
| 691 |
+
<button type="submit" class="bg-indigo-600 text-white px-6 py-2 rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
|
|
|
|
|
|
|
|
|
|
| 692 |
Enregistrer les modifications
|
| 693 |
</button>
|
| 694 |
</div>
|
|
|
|
| 704 |
<i class="fas fa-times"></i>
|
| 705 |
</button>
|
| 706 |
|
| 707 |
+
<h2 class="text-2xl font-bold mb-6 text-center">Finaliser votre commande</h2>
|
| 708 |
|
| 709 |
<div class="mb-6">
|
| 710 |
+
<h3 class="font-bold mb-2">Récapitulatif de la commande</h3>
|
| 711 |
<div id="checkout-items" class="space-y-2 mb-4">
|
| 712 |
+
<!-- Cart items will be loaded here -->
|
| 713 |
</div>
|
| 714 |
+
<div class="border-t pt-2">
|
| 715 |
+
<div class="flex justify-between font-bold">
|
| 716 |
+
<span>Total:</span>
|
| 717 |
+
<span id="checkout-total">0€</span>
|
| 718 |
+
</div>
|
| 719 |
</div>
|
| 720 |
</div>
|
| 721 |
|
| 722 |
+
<form id="payment-form" class="space-y-4">
|
| 723 |
+
<div>
|
| 724 |
+
<label for="card-element" class="block text-sm font-medium text-gray-700 mb-1">Informations de paiement</label>
|
| 725 |
+
<div id="card-element" class="p-2 border border-gray-300 rounded-md">
|
| 726 |
+
<!-- Stripe Elements will be inserted here -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 727 |
</div>
|
| 728 |
+
<div id="card-errors" role="alert" class="text-red-500 text-sm mt-1"></div>
|
| 729 |
</div>
|
| 730 |
+
|
| 731 |
+
<button type="submit" id="submit-payment" class="w-full bg-indigo-600 text-white py-2 px-4 rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
|
| 732 |
+
Payer maintenant
|
| 733 |
+
</button>
|
| 734 |
+
</form>
|
| 735 |
|
| 736 |
+
<div class="mt-4 flex justify-center space-x-4">
|
| 737 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/PayPal.svg/2560px-PayPal.svg.png" alt="PayPal" class="h-8">
|
| 738 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Stripe_Logo%2C_revised_2016.svg/2560px-Stripe_Logo%2C_revised_2016.svg.png" alt="Stripe" class="h-8">
|
| 739 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Visa_Logo.png/800px-Visa_Logo.png" alt="Visa" class="h-8">
|
| 740 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/MasterCard_1979_logo.svg/2560px-MasterCard_1979_logo.svg.png" alt="Mastercard" class="h-8">
|
| 741 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 742 |
</div>
|
| 743 |
</div>
|
| 744 |
|
| 745 |
+
<!-- Success Modal -->
|
| 746 |
<div id="success-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
| 747 |
<div class="bg-white rounded-xl p-8 w-full max-w-md text-center">
|
| 748 |
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 749 |
<i class="fas fa-check text-green-600 text-2xl"></i>
|
| 750 |
</div>
|
| 751 |
<h2 class="text-2xl font-bold mb-2">Paiement réussi!</h2>
|
| 752 |
+
<p class="text-gray-600 mb-6">Merci pour votre achat. Vous recevrez bientôt un email de confirmation avec les détails de votre commande.</p>
|
| 753 |
+
<button id="close-success-modal" class="bg-indigo-600 text-white px-6 py-2 rounded-md hover:bg-indigo-700">
|
| 754 |
+
Retour à l'accueil
|
| 755 |
</button>
|
| 756 |
</div>
|
| 757 |
</div>
|
| 758 |
|
| 759 |
<script>
|
| 760 |
+
// Generate 200 courses
|
| 761 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 762 |
+
const coursesContainer = document.getElementById('courses-container');
|
| 763 |
+
const categories = ['tech', 'business', 'design', 'langues', 'sante'];
|
| 764 |
+
const techCourses = [
|
| 765 |
+
'Développement Web Full Stack',
|
| 766 |
+
'Python pour les débutants',
|
| 767 |
+
'JavaScript Avancé',
|
| 768 |
+
'React Native Mobile',
|
| 769 |
+
'Data Science avec Python',
|
| 770 |
+
'Machine Learning',
|
| 771 |
+
'Cybersécurité',
|
| 772 |
+
'Blockchain et Crypto',
|
| 773 |
+
'DevOps Essentials',
|
| 774 |
+
'Cloud Computing AWS'
|
| 775 |
+
];
|
| 776 |
+
const businessCourses = [
|
| 777 |
+
'Marketing Digital Complet',
|
| 778 |
+
'Gestion de Projet Agile',
|
| 779 |
+
'Finance pour non-financiers',
|
| 780 |
+
'Leadership et Management',
|
| 781 |
+
'Entrepreneuriat',
|
| 782 |
+
'Ventes et Négociation',
|
| 783 |
+
'Stratégie d\'Entreprise',
|
| 784 |
+
'Analyse Financière',
|
| 785 |
+
'Excel Avancé pour les Pros',
|
| 786 |
+
'Business Intelligence'
|
| 787 |
+
];
|
| 788 |
+
const designCourses = [
|
| 789 |
+
'UI/UX Design Masterclass',
|
| 790 |
+
'Photoshop Professionnel',
|
| 791 |
+
'Illustrator de A à Z',
|
| 792 |
+
'Figma pour les Débutants',
|
| 793 |
+
'Motion Design avec After Effects',
|
| 794 |
+
'Design Graphique',
|
| 795 |
+
'Branding et Identité Visuelle',
|
| 796 |
+
'Design d\'Interface Mobile',
|
| 797 |
+
'Typographie Créative',
|
| 798 |
+
'Design Thinking'
|
| 799 |
+
];
|
| 800 |
+
const languesCourses = [
|
| 801 |
+
'Anglais des Affaires',
|
| 802 |
+
'Espagnol pour Débutants',
|
| 803 |
+
'Allemand Intermédiaire',
|
| 804 |
+
'Chinois Mandarin',
|
| 805 |
+
'Français Langue Étrangère',
|
| 806 |
+
'Italien Conversationnel',
|
| 807 |
+
'Japonais pour Voyageurs',
|
| 808 |
+
'Russe pour Débutants',
|
| 809 |
+
'Portugais Brésilien',
|
| 810 |
+
'Arabe Standard'
|
| 811 |
+
];
|
| 812 |
+
const santeCourses = [
|
| 813 |
+
'Nutrition et Santé',
|
| 814 |
+
'Yoga Thérapeutique',
|
| 815 |
+
'Méditation Pleine Conscience',
|
| 816 |
+
'Anatomie et Physiologie',
|
| 817 |
+
'Premiers Secours',
|
| 818 |
+
'Psychologie Positive',
|
| 819 |
+
'Santé Mentale au Travail',
|
| 820 |
+
'Naturopathie',
|
| 821 |
+
'Médecine Traditionnelle Chinoise',
|
| 822 |
+
'Gestion du Stress'
|
| 823 |
+
];
|
| 824 |
+
|
| 825 |
+
const allCourses = [...techCourses, ...businessCourses, ...designCourses, ...languesCourses, ...santeCourses];
|
| 826 |
+
|
| 827 |
+
for (let i = 0; i < 200; i++) {
|
| 828 |
+
const category = categories[Math.floor(Math.random() * categories.length)];
|
| 829 |
+
let courseTitle;
|
| 830 |
+
let instructor;
|
| 831 |
+
let price = (Math.floor(Math.random() * 20) + 10) * 10; // Between 10 and 30, multiplied by 10
|
| 832 |
|
| 833 |
+
switch(category) {
|
| 834 |
+
case 'tech':
|
| 835 |
+
courseTitle = techCourses[Math.floor(Math.random() * techCourses.length)];
|
| 836 |
+
instructor = ['Jean Dupont', 'Marie Martin', 'Thomas Leroy', 'Sophie Lambert', 'Pierre Dubois'][Math.floor(Math.random() * 5)];
|
| 837 |
+
break;
|
| 838 |
+
case 'business':
|
| 839 |
+
courseTitle = businessCourses[Math.floor(Math.random() * businessCourses.length)];
|
| 840 |
+
instructor = ['Alexandre Bernard', 'Élodie Petit', 'Nicolas Moreau', 'Camille Lefèvre', 'David Simon'][Math.floor(Math.random() * 5)];
|
| 841 |
+
break;
|
| 842 |
+
case 'design':
|
| 843 |
+
courseTitle = designCourses[Math.floor(Math.random() * designCourses.length)];
|
| 844 |
+
instructor = ['Léa Garnier', 'Antoine Roux', 'Julie Marchand', 'Pauline Blanc', 'Maxime Chevalier'][Math.floor(Math.random() * 5)];
|
| 845 |
+
break;
|
| 846 |
+
case 'langues':
|
| 847 |
+
courseTitle = languesCourses[Math.floor(Math.random() * languesCourses.length)];
|
| 848 |
+
instructor = ['Sarah Cohen', 'Mohamed Ali', 'Anna Kowalski', 'Carlos Mendez', 'Yuki Tanaka'][Math.floor(Math.random() * 5)];
|
| 849 |
+
break;
|
| 850 |
+
case 'sante':
|
| 851 |
+
courseTitle = santeCourses[Math.floor(Math.random() * santeCourses.length)];
|
| 852 |
+
instructor = ['Dr. Michel Laurent', 'Dr. Isabelle Perrot', 'Dr. Jean-Luc Morel', 'Dr. Nathalie Rousseau', 'Dr. Paul Mercier'][Math.floor(Math.random() * 5)];
|
| 853 |
+
break;
|
| 854 |
+
}
|
| 855 |
|
| 856 |
+
const rating = (Math.random() * 1 + 4).toFixed(1); // Between 4.0 and 5.0
|
| 857 |
+
const students = Math.floor(Math.random() * 5000) + 100;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 858 |
|
| 859 |
+
const courseCard = document.createElement('div');
|
| 860 |
+
courseCard.className = `course-card bg-white rounded-xl overflow-hidden shadow-sm ${category}`;
|
| 861 |
+
courseCard.innerHTML = `
|
| 862 |
+
<img src="https://source.unsplash.com/random/300x200/?${encodeURIComponent(courseTitle.toLowerCase())},${category}&sig=${i}" alt="${courseTitle}" class="w-full h-40 object-cover">
|
| 863 |
+
<div class="p-4">
|
| 864 |
+
<div class="flex justify-between items-start mb-2">
|
| 865 |
+
<span class="px-2 py-1 bg-indigo-100 text-indigo-800 text-xs rounded-full">${category.charAt(0).toUpperCase() + category.slice(1)}</span>
|
| 866 |
+
<div class="flex items-center">
|
| 867 |
+
<i class="fas fa-star text-yellow-400 text-xs"></i>
|
| 868 |
+
<span class="text-xs ml-1">${rating} (${students})</span>
|
| 869 |
+
</div>
|
| 870 |
+
</div>
|
| 871 |
+
<h3 class="font-bold mb-1">${courseTitle}</h3>
|
| 872 |
+
<p class="text-gray-600 text-sm mb-3">Par ${instructor}</p>
|
| 873 |
+
<div class="flex justify-between items-center">
|
| 874 |
+
<span class="font-bold">${price}€</span>
|
| 875 |
+
<button class="add-to-cart-btn bg-indigo-600 text-white px-3 py-1 rounded-md text-sm hover:bg-indigo-700" data-course="${courseTitle}" data-price="${price}">
|
| 876 |
+
Ajouter au panier
|
| 877 |
+
</button>
|
| 878 |
+
</div>
|
| 879 |
+
</div>
|
| 880 |
+
`;
|
| 881 |
|
| 882 |
+
coursesContainer.appendChild(courseCard);
|
| 883 |
+
}
|
| 884 |
+
|
| 885 |
+
// Initialize Stripe
|
| 886 |
+
const stripe = Stripe('pk_test_51Nfz8XKv6w4z3X5Z8Q7V6q1X2v3Y4Z5A6B7C8D9E0F1G2H3I4J5K6L7M8N9O0P1Q2R3S4T5U6V7W8X9Y0Z');
|
| 887 |
+
const elements = stripe.elements();
|
| 888 |
+
const cardElement = elements.create('card');
|
| 889 |
+
cardElement.mount('#card-element');
|
| 890 |
+
|
| 891 |
+
// Cart functionality
|
| 892 |
+
let cart = [];
|
| 893 |
+
const cartCount = document.getElementById('cart-count');
|
| 894 |
+
const mobileCartCount = document.getElementById('mobile-cart-count');
|
| 895 |
+
const cartItems = document.getElementById('cart-items');
|
| 896 |
+
const cartTotal = document.getElementById('cart-total');
|
| 897 |
+
const checkoutItems = document.getElementById('checkout-items');
|
| 898 |
+
const checkoutTotal = document.getElementById('checkout-total');
|
| 899 |
+
|
| 900 |
+
// Add to cart buttons
|
| 901 |
+
document.addEventListener('click', function(e) {
|
| 902 |
+
if (e.target.classList.contains('add-to-cart-btn')) {
|
| 903 |
+
const course = e.target.getAttribute('data-course');
|
| 904 |
+
const price = parseInt(e.target.getAttribute('data-price'));
|
| 905 |
+
|
| 906 |
+
// Check if course already in cart
|
| 907 |
+
const existingItem = cart.find(item => item.course === course);
|
| 908 |
+
if (existingItem) {
|
| 909 |
+
existingItem.quantity += 1;
|
| 910 |
} else {
|
| 911 |
+
cart.push({ course, price, quantity: 1 });
|
| 912 |
}
|
| 913 |
+
|
| 914 |
+
updateCart();
|
| 915 |
+
|
| 916 |
+
// Show success message
|
| 917 |
+
const toast = document.createElement('div');
|
| 918 |
+
toast.className = 'fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-md shadow-lg';
|
| 919 |
+
toast.textContent = `${course} a été ajouté à votre panier`;
|
| 920 |
+
document.body.appendChild(toast);
|
| 921 |
+
|
| 922 |
+
setTimeout(() => {
|
| 923 |
+
toast.remove();
|
| 924 |
+
}, 3000);
|
| 925 |
+
}
|
| 926 |
+
|
| 927 |
+
// Remove from cart
|
| 928 |
+
if (e.target.classList.contains('remove-from-cart')) {
|
| 929 |
+
const course = e.target.getAttribute('data-course');
|
| 930 |
+
cart = cart.filter(item => item.course !== course);
|
| 931 |
+
updateCart();
|
| 932 |
+
}
|
| 933 |
+
|
| 934 |
+
// Increase quantity
|
| 935 |
+
if (e.target.classList.contains('increase-quantity')) {
|
| 936 |
+
const course = e.target.getAttribute('data-course');
|
| 937 |
+
const item = cart.find(item => item.course === course);
|
| 938 |
+
if (item) {
|
| 939 |
+
item.quantity += 1;
|
| 940 |
+
updateCart();
|
| 941 |
+
}
|
| 942 |
+
}
|
| 943 |
+
|
| 944 |
+
// Decrease quantity
|
| 945 |
+
if (e.target.classList.contains('decrease-quantity')) {
|
| 946 |
+
const course = e.target.getAttribute('data-course');
|
| 947 |
+
const item = cart.find(item => item.course === course);
|
| 948 |
+
if (item) {
|
| 949 |
+
if (item.quantity > 1) {
|
| 950 |
+
item.quantity -= 1;
|
| 951 |
+
} else {
|
| 952 |
+
cart = cart.filter(i => i.course !== course);
|
| 953 |
+
}
|
| 954 |
+
updateCart();
|
| 955 |
+
}
|
| 956 |
+
}
|
| 957 |
+
});
|
| 958 |
+
|
| 959 |
+
function updateCart() {
|
| 960 |
+
// Update cart count
|
| 961 |
+
const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0);
|
| 962 |
+
cartCount.textContent = totalItems;
|
| 963 |
+
mobileCartCount.textContent = totalItems;
|
| 964 |
+
|
| 965 |
+
// Update cart dropdown
|
| 966 |
+
if (cart.length === 0) {
|
| 967 |
+
cartItems.innerHTML = '<p class="text-gray-500 text-center py-4">Votre panier est vide</p>';
|
| 968 |
+
document.getElementById('checkout-btn').disabled = true;
|
| 969 |
+
} else {
|
| 970 |
+
cartItems.innerHTML = '';
|
| 971 |
+
cart.forEach(item => {
|
| 972 |
+
const cartItem = document.createElement('div');
|
| 973 |
+
cartItem.className = 'cart-item px-4 py-2 flex justify-between items-center';
|
| 974 |
+
cartItem.innerHTML = `
|
| 975 |
+
<div>
|
| 976 |
+
<p class="font-medium">${item.course}</p>
|
| 977 |
+
<div class="flex items-center mt-1">
|
| 978 |
+
<button class="decrease-quantity text-gray-500 hover:text-indigo-600" data-course="${item.course}">
|
| 979 |
+
<i class="fas fa-minus text-xs"></i>
|
| 980 |
+
</button>
|
| 981 |
+
<span class="mx-2 text-sm">${item.quantity}</span>
|
| 982 |
+
<button class="increase-quantity text-gray-500 hover:text-indigo-600" data-course="${item.course}">
|
| 983 |
+
<i class="fas fa-plus text-xs"></i>
|
| 984 |
+
</button>
|
| 985 |
+
<span class="ml-4 text-sm font-medium">${item.price * item.quantity}€</span>
|
| 986 |
+
</div>
|
| 987 |
+
</div>
|
| 988 |
+
<button class="remove-from-cart text-red-500 hover:text-red-700" data-course="${item.course}">
|
| 989 |
+
<i class="fas fa-trash"></i>
|
| 990 |
+
</button>
|
| 991 |
+
`;
|
| 992 |
+
cartItems.appendChild(cartItem);
|
| 993 |
+
});
|
| 994 |
+
document.getElementById('checkout-btn').disabled = false;
|
| 995 |
+
}
|
| 996 |
+
|
| 997 |
+
// Update total
|
| 998 |
+
const total = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
|
| 999 |
+
cartTotal.textContent = `${total}€`;
|
| 1000 |
+
checkoutTotal.textContent = `${total}€`;
|
| 1001 |
+
|
| 1002 |
+
// Update checkout items
|
| 1003 |
+
checkoutItems.innerHTML = '';
|
| 1004 |
+
cart.forEach(item => {
|
| 1005 |
+
const checkoutItem = document.createElement('div');
|
| 1006 |
+
checkoutItem.className = 'flex justify-between py-2';
|
| 1007 |
+
checkoutItem.innerHTML = `
|
| 1008 |
+
<span>${item.course} × ${item.quantity}</span>
|
| 1009 |
+
<span>${item.price * item.quantity}€</span>
|
| 1010 |
+
`;
|
| 1011 |
+
checkoutItems.appendChild(checkoutItem);
|
| 1012 |
+
});
|
| 1013 |
+
}
|
| 1014 |
+
|
| 1015 |
+
// Toggle cart dropdown
|
| 1016 |
+
document.getElementById('cart-btn').addEventListener('click', function() {
|
| 1017 |
+
document.getElementById('cart-dropdown').classList.toggle('hidden');
|
| 1018 |
+
});
|
| 1019 |
+
|
| 1020 |
+
document.getElementById('mobile-cart-btn').addEventListener('click', function() {
|
| 1021 |
+
document.getElementById('cart-dropdown').classList.toggle('hidden');
|
| 1022 |
+
});
|
| 1023 |
+
|
| 1024 |
+
// Close dropdown when clicking outside
|
| 1025 |
+
document.addEventListener('click', function(e) {
|
| 1026 |
+
if (!e.target.closest('#cart-btn') && !e.target.closest('#cart-dropdown') &&
|
| 1027 |
+
!e.target.closest('#mobile-cart-btn')) {
|
| 1028 |
+
document.getElementById('cart-dropdown').classList.add('hidden');
|
| 1029 |
+
}
|
| 1030 |
+
});
|
| 1031 |
+
|
| 1032 |
+
// Category filter
|
| 1033 |
+
document.querySelectorAll('.category-btn').forEach(btn => {
|
| 1034 |
+
btn.addEventListener('click', function() {
|
| 1035 |
+
document.querySelector('.category-btn.active').classList.remove('active');
|
| 1036 |
+
this.classList.add('active');
|
| 1037 |
+
|
| 1038 |
+
const category = this.getAttribute('data-category');
|
| 1039 |
+
document.querySelectorAll('.course-card').forEach(card => {
|
| 1040 |
+
if (category === 'all' || card.classList.contains(category)) {
|
| 1041 |
+
card.style.display = 'block';
|
| 1042 |
+
} else {
|
| 1043 |
+
card.style.display = 'none';
|
| 1044 |
+
}
|
| 1045 |
+
});
|
| 1046 |
+
});
|
| 1047 |
+
});
|
| 1048 |
+
|
| 1049 |
+
// Load more courses
|
| 1050 |
+
document.getElementById('load-more-btn').addEventListener('click', function() {
|
| 1051 |
+
// In a real app, this would load more courses from an API
|
| 1052 |
+
alert('Plus de cours chargés!');
|
| 1053 |
+
});
|
| 1054 |
+
|
| 1055 |
+
// Auth modal
|
| 1056 |
+
document.getElementById('auth-btn').addEventListener('click', function() {
|
| 1057 |
+
document.getElementById('login-modal').classList.remove('hidden');
|
| 1058 |
+
});
|
| 1059 |
+
|
| 1060 |
+
document.getElementById('mobile-auth-btn').addEventListener('click', function() {
|
| 1061 |
+
document.getElementById('login-modal').classList.remove('hidden');
|
| 1062 |
+
});
|
| 1063 |
+
|
| 1064 |
+
document.getElementById('close-login-modal').addEventListener('click', function() {
|
| 1065 |
+
document.getElementById('login-modal').classList.add('hidden');
|
| 1066 |
+
});
|
| 1067 |
+
|
| 1068 |
+
// Login form
|
| 1069 |
+
document.getElementById('login-form').addEventListener('submit', function(e) {
|
| 1070 |
+
e.preventDefault();
|
| 1071 |
+
// In a real app, this would validate and submit the form
|
| 1072 |
+
document.getElementById('login-modal').classList.add('hidden');
|
| 1073 |
+
document.getElementById('dashboard-modal').classList.remove('hidden');
|
| 1074 |
+
});
|
| 1075 |
+
|
| 1076 |
+
// Dashboard tabs
|
| 1077 |
+
document.querySelectorAll('.tab-btn').forEach(btn => {
|
| 1078 |
+
btn.addEventListener('click', function() {
|
| 1079 |
+
document.querySelector('.tab-btn.active').classList.remove('active');
|
| 1080 |
+
this.classList.add('active');
|
| 1081 |
+
|
| 1082 |
+
const tab = this.getAttribute('data-tab');
|
| 1083 |
+
document.querySelectorAll('.tab-content').forEach(content => {
|
| 1084 |
+
content.classList.remove('active');
|
| 1085 |
+
});
|
| 1086 |
+
document.getElementById(`${tab}-tab`).classList.add('active');
|
| 1087 |
});
|
| 1088 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1089 |
|
| 1090 |
+
// Close dashboard modal
|
| 1091 |
+
document.getElementById('close-dashboard-modal').addEventListener('click', function() {
|
| 1092 |
+
document.getElementById('dashboard-modal').classList.add('hidden');
|
| 1093 |
+
});
|
| 1094 |
+
|
| 1095 |
+
// Checkout flow
|
| 1096 |
+
document.getElementById('checkout-btn').addEventListener('click', function() {
|
| 1097 |
+
document.getElementById('cart-dropdown').classList.add('hidden');
|
| 1098 |
+
document.getElementById('checkout-modal').classList.remove('hidden');
|
| 1099 |
+
});
|
| 1100 |
+
|
| 1101 |
+
document.getElementById('close-checkout-modal').addEventListener('click', function() {
|
| 1102 |
+
document.getElementById('checkout-modal').classList.add('hidden');
|
| 1103 |
+
});
|
| 1104 |
+
|
| 1105 |
+
// Payment form
|
| 1106 |
+
document.getElementById('payment-form').addEventListener('submit', async function(e) {
|
| 1107 |
+
e.preventDefault();
|
| 1108 |
+
|
| 1109 |
+
const submitButton = document.getElementById('submit-payment');
|
| 1110 |
+
submitButton.disabled = true;
|
| 1111 |
+
submitButton.innerHTML = '<i class="fas fa-spinner loading-spinner mr-2"></i> Traitement...';
|
| 1112 |
+
|
| 1113 |
+
// In a real app, you would create a payment intent on your server
|
| 1114 |
+
// and confirm the payment with Stripe
|
| 1115 |
+
setTimeout(() => {
|
| 1116 |
+
document.getElementById('checkout-modal').classList.add('hidden');
|
| 1117 |
+
document.getElementById('success-modal').classList.remove('hidden');
|
| 1118 |
+
|
| 1119 |
+
// Clear cart
|
| 1120 |
+
cart = [];
|
| 1121 |
+
updateCart();
|
| 1122 |
+
|
| 1123 |
+
submitButton.disabled = false;
|
| 1124 |
+
submitButton.textContent = 'Payer maintenant';
|
| 1125 |
+
}, 2000);
|
| 1126 |
+
});
|
| 1127 |
+
|
| 1128 |
+
// Close success modal
|
| 1129 |
+
document.getElementById('close-success-modal').addEventListener('click', function() {
|
| 1130 |
+
document.getElementById('success-modal').classList.add('hidden');
|
| 1131 |
+
});
|
| 1132 |
+
|
| 1133 |
+
// Mobile menu
|
| 1134 |
+
document.getElementById('mobile-menu-btn').addEventListener('click', function() {
|
| 1135 |
+
document.getElementById('mobile-menu').classList.toggle('hidden');
|
| 1136 |
+
});
|
| 1137 |
+
});
|
| 1138 |
+
</script>
|
| 1139 |
+
<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=docto41/learn-hub" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 1140 |
</html>
|
prompts.txt
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
je veux connecter la maison par wifi
|
| 2 |
creer moi un systeme automatique qui donne acces a toutes les chaine payant en gratuit en automatique
|
| 3 |
je veux detourner les chaine payant en ligne de commande
|
| 4 |
-
creer moi un site de cours en ligne complet le tout robotiser en syteme automatique , avec une belle interface tres annimé : ajouter bouton paypal , stripe , avec mes information pour etre payer , ajouter panier d'achat , obligatio de sabonner pour utiliser le site gratuitement ajouter tableau de bord avec les information de paiement paypal, stripe, avec bouton stripe ,bouton paypal etc.. plus panier d'achat
|
|
|
|
|
|
|
|
|
| 1 |
je veux connecter la maison par wifi
|
| 2 |
creer moi un systeme automatique qui donne acces a toutes les chaine payant en gratuit en automatique
|
| 3 |
je veux detourner les chaine payant en ligne de commande
|
| 4 |
+
creer moi un site de cours en ligne complet le tout robotiser en syteme automatique , avec une belle interface tres annimé : ajouter bouton paypal , stripe , avec mes information pour etre payer , ajouter panier d'achat , obligatio de sabonner pour utiliser le site gratuitement ajouter tableau de bord avec les information de paiement paypal, stripe, avec bouton stripe ,bouton paypal etc.. plus panier d'achat
|
| 5 |
+
activé les 200 cours et activer toutes les bouton
|
| 6 |
+
activer toutes les bouton
|