ameliore le design
Browse filesFiles changed (6)
- components/footer.js+2-2
- components/navbar.js+2-2
- exercices.html+4-4
- index.html+5-5
- script.js+25-10
- style.css+72-22
56 unmodified lines575859606162636456 unmodified lines<p class="mt-4 text-primary-200">Abonne-toi à notre newsletter pour des astuces magiques !</p><div class="mt-2 flex"><input type="email" placeholder="Ton email" class="px-3 py-2 rounded-l-lg text-gray-800 w-full"><button class="bg-secondary-500 hover:bg-secondary-600 px-4 py-2 rounded-r-lg"><i data-feather="send" class="w-4 h-4"></i></button></div></div>56 unmodified lines575859606162636456 unmodified lines<p class="mt-4 text-primary-200">Abonne-toi à notre newsletter pour des astuces magiques !</p><div class="mt-2 flex"><input type="email" placeholder="Ton email" class="px-3 py-2 rounded-l-lg text-gray-800 w-full"><button class="btn-magic bg-secondary-500 hover:bg-secondary-600 px-4 py-2 rounded-r-lg sparkle"><i data-feather="send" class="w-4 h-4"></i></button></div></div>
36 unmodified lines3738394041424344454636 unmodified lines<a href="exercices.html" class="nav-link text-gray-700 hover:text-primary-600">Exercices</a><a href="progres.html" class="nav-link text-gray-700 hover:text-primary-600">Progrès</a><a href="recompenses.html" class="nav-link text-gray-700 hover:text-primary-600">Récompenses</a><a href="connexion.html" class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg transition-colors">Connexion</a></div><button class="md:hidden text-gray-700" id="mobile-menu-button"><i data-feather="menu" class="w-6 h-6"></i>36 unmodified lines3738394041424344454636 unmodified lines<a href="exercices.html" class="nav-link text-gray-700 hover:text-primary-600">Exercices</a><a href="progres.html" class="nav-link text-gray-700 hover:text-primary-600">Progrès</a><a href="recompenses.html" class="nav-link text-gray-700 hover:text-primary-600">Récompenses</a><a href="connexion.html" class="btn-magic bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg sparkle">Connexion</a></div><button class="md:hidden text-gray-700" id="mobile-menu-button"><i data-feather="menu" class="w-6 h-6"></i>
47 unmodified lines48495051525354554 unmodified lines606162636465666747 unmodified lines<!-- Exercise Cards --><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"><!-- Addition Card --><div class="exercise-card bg-white rounded-xl shadow-md overflow-hidden transition-all transform hover:-translate-y-1 hover:shadow-lg" data-difficulty="easy"><div class="bg-primary-100 p-4 flex items-center"><div class="bg-primary-600 text-white p-3 rounded-lg mr-4"><i data-feather="plus" class="w-6 h-6"></i></div>4 unmodified lines<p class="text-gray-600 mb-4">Apprends à additionner avec nos amis les licornes !</p><div class="flex justify-between items-center"><span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Facile</span><a href="exercice-details.html?type=addition" class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg transition-colors">Commencer</a></div></div>47 unmodified lines48495051525354554 unmodified lines606162636465666747 unmodified lines<!-- Exercise Cards --><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"><!-- Addition Card --><div class="exercise-card card bg-white rounded-xl shadow-md overflow-hidden sparkle" data-difficulty="easy"><div class="bg-primary-100 p-4 flex items-center"><div class="bg-primary-600 text-white p-3 rounded-lg mr-4"><i data-feather="plus" class="w-6 h-6"></i></div>4 unmodified lines<p class="text-gray-600 mb-4">Apprends à additionner avec nos amis les licornes !</p><div class="flex justify-between items-center"><span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Facile</span><a href="exercice-details.html?type=addition" class="btn-magic bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg">Commencer</a></div></div>
30 unmodified lines31323334353637383940416 unmodified lines484950515253545530 unmodified lines<h1 class="text-4xl md:text-5xl font-bold text-primary-800 mb-4">Les maths, c'est magique ! ✨</h1><p class="text-lg text-gray-700 mb-6">Découvre un monde enchanté où les chiffres deviennent des amis et les calculs des aventures !</p><div class="flex gap-4"><a href="exercices.html" class="bg-secondary-500 hover:bg-secondary-600 text-white font-bold py-3 px-6 rounded-full shadow-lg transition-all transform hover:scale-105">Commencer l'aventure</a><a href="#how-it-works" class="text-primary-600 hover:text-primary-800 font-medium py-3 px-6 rounded-full border-2 border-primary-400 transition-all">Comment ça marche ?</a></div></div>6 unmodified lines<section id="how-it-works" class="mb-16"><h2 class="text-3xl font-bold text-center text-primary-800 mb-12">Apprends en t'amusant</h2><div class="grid grid-cols-1 md:grid-cols-3 gap-8"><div class="bg-white p-6 rounded-xl shadow-lg hover:shadow-xl transition-shadow"><div class="bg-primary-100 w-16 h-16 rounded-full flex items-center justify-center mb-4"><i data-feather="award" class="text-primary-600 w-8 h-8"></i></div><h3 class="text-xl font-bold text-gray-800 mb-2">Défis amusants</h3>30 unmodified lines31323334353637383940416 unmodified lines484950515253545530 unmodified lines<h1 class="text-4xl md:text-5xl font-bold text-primary-800 mb-4">Les maths, c'est magique ! ✨</h1><p class="text-lg text-gray-700 mb-6">Découvre un monde enchanté où les chiffres deviennent des amis et les calculs des aventures !</p><div class="flex gap-4"><a href="exercices.html" class="btn-magic bg-secondary-500 hover:bg-secondary-600 text-white font-bold py-3 px-6 rounded-full shadow-lg sparkle">Commencer l'aventure</a><a href="#how-it-works" class="btn-magic text-primary-600 hover:text-primary-800 font-medium py-3 px-6 rounded-full border-2 border-primary-400">Comment ça marche ?</a></div></div>6 unmodified lines<section id="how-it-works" class="mb-16"><h2 class="text-3xl font-bold text-center text-primary-800 mb-12">Apprends en t'amusant</h2><div class="grid grid-cols-1 md:grid-cols-3 gap-8"><div class="card bg-white p-6 rounded-xl shadow-lg hover:shadow-xl"><div class="bg-primary-100 w-16 h-16 rounded-full flex items-center justify-center mb-4"><i data-feather="award" class="text-primary-600 w-8 h-8"></i></div><h3 class="text-xl font-bold text-gray-800 mb-2">Défis amusants</h3>
123456789101112131415161718// Initialize tooltipsdocument.addEventListener('DOMContentLoaded', function() {// Add any interactive elements here// Example: Add confetti to success buttonsconst successButtons = document.querySelectorAll('.btn-success');successButtons.forEach(button => {button.addEventListener('click', () => {// In a real app, we'd trigger confetti hereconsole.log("Bravo ! Tu as réussi !");});});// Age group selection animationconst ageGroups = document.querySelectorAll('[href*="exercices.html?age="]');ageGroups.forEach(group => {group.addEventListener('mouseenter', function() {this.querySelector('div').classList.add('animate-bounce');123456789101112131415161718192021222324252627282930313233// Initialize animations and effectsdocument.addEventListener('DOMContentLoaded', function() {// Add sparkle effects randomly to magic elementsconst magicElements = document.querySelectorAll('.sparkle, .btn-magic');magicElements.forEach(el => {el.addEventListener('mouseenter', () => {const sparkles = ['✨', '⭐', '🌟', '💫'];const randomSparkle = sparkles[Math.floor(Math.random() * sparkles.length)];const spark = document.createElement('span');spark.textContent = randomSparkle;spark.style.position = 'absolute';spark.style.animation = 'sparkle 1s ease-out';spark.style.pointerEvents = 'none';spark.style.left = `${Math.random() * 100}%`;spark.style.top = `${Math.random() * 100}%`;el.appendChild(spark);setTimeout(() => spark.remove(), 1000);});});// Add floating effect to hero imagesconst floatElements = document.querySelectorAll('.float-animation');floatElements.forEach(el => {el.style.animationDelay = `${Math.random() * 2}s`;el.style.animationDuration = `${3 + Math.random() * 2}s`;});// Age group selection animationconst ageGroups = document.querySelectorAll('[href*="exercices.html?age="]');ageGroups.forEach(group => {group.addEventListener('mouseenter', function() {this.querySelector('div').classList.add('animate-bounce');
12345678910111214 unmodified lines2728293031323334353637383940414243444546474849505152535455565758596061626364@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Fredoka+One&display=swap');body {font-family: 'Comic Neue', cursive;}h1, h2, h3, h4, h5, h6 {font-family: 'Fredoka One', cursive;letter-spacing: 0.5px;}/* Custom scrollbar */14 unmodified lines::-webkit-scrollbar-thumb:hover {background: #7C3AED;}/* Animation for magic elements */@keyframes float {0%, 100% {transform: translateY(0);}50% {transform: translateY(-10px);}}.float-animation {animation: float 3s ease-in-out infinite;}/* Button pulse effect */.btn-pulse:hover {animation: pulse 1.5s infinite;}@keyframes pulse {0% {box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);}70% {box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);}100% {box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);}}/* Responsive adjustments */@media (max-width: 640px) {.text-hero {1234567891011121314151617181920212223242514 unmodified lines404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Fredoka+One&display=swap');:root {--primary-500: #8B5CF6;--primary-600: #7C3AED;--primary-100: #EDE9FE;--secondary-500: #F59E0B;--secondary-600: #D97706;}body {font-family: 'Comic Neue', cursive;background: linear-gradient(to bottom, var(--primary-100) 0%, white 100%);min-height: 100vh;transition: background 0.5s ease;}h1, h2, h3, h4, h5, h6 {font-family: 'Fredoka One', cursive;letter-spacing: 0.5px;text-shadow: 1px 1px 3px rgba(0,0,0,0.1);}/* Custom scrollbar */14 unmodified lines::-webkit-scrollbar-thumb:hover {background: #7C3AED;}/* Magic animations */@keyframes float {0%, 100% { transform: translateY(0) rotate(-1deg); }50% { transform: translateY(-15px) rotate(1deg); }}@keyframes sparkle {0% { opacity: 0; transform: scale(0.5); }50% { opacity: 1; }100% { opacity: 0; transform: scale(1.5); }}.float-animation {animation: float 4s ease-in-out infinite;}.sparkle {position: relative;overflow: hidden;}.sparkle::after {content: "✨";position: absolute;pointer-events: none;animation: sparkle 1.5s ease-out infinite;opacity: 0;}/* Button effects */.btn-magic {position: relative;overflow: hidden;transition: all 0.3s ease;z-index: 1;}.btn-magic:hover {transform: translateY(-3px);box-shadow: 0 10px 20px rgba(0,0,0,0.1);}.btn-magic::before {content: '';position: absolute;top: 0;left: -100%;width: 100%;height: 100%;background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);transition: all 0.5s ease;z-index: -1;}.btn-magic:hover::before {left: 100%;}/* Card hover effects */.card {transition: all 0.3s ease;transform-style: preserve-3d;perspective: 1000px;}.card:hover {transform: translateY(-5px) rotateY(5deg);box-shadow: 0 15px 30px rgba(0,0,0,0.1);}/* Responsive adjustments */@media (max-width: 640px) {.text-hero {
components/footer.js+2-2
components/navbar.js+2-2
exercices.html+4-4
index.html+5-5
script.js+25-10
style.css+72-22