Spaces:
Running
Running
File size: 10,081 Bytes
dd22820 |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jé: Dekouvèt Gwadloup</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Crete+Round&family=Roboto:wght@400;500;700&display=swap');
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(135deg, #0055A4 0%, #EF4135 50%, #F9A01B 100%);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.gwada-font {
font-family: 'Crete Round', serif;
}
.gwada-bg {
background: linear-gradient(135deg, #0055A4 0%, #EF4135 50%, #F9A01B 100%);
}
.btn-gwada {
transition: all 0.3s ease;
transform: translateY(0);
}
.btn-gwada:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-gwada:active {
transform: translateY(1px);
}
.palm-tree {
position: absolute;
opacity: 0.2;
z-index: 0;
filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}
.card-glow {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.quiz-card {
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(5px);
position: relative;
z-index: 1;
}
.wave-decoration {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100px;
background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
background-size: cover;
z-index: 0;
}
</style>
</head>
<body class="min-h-screen">
<!-- Decorative elements -->
<div class="palm-tree top-10 left-10 text-6xl">🌴</div>
<div class="palm-tree top-20 right-20 text-8xl">🌴</div>
<div class="palm-tree bottom-20 left-1/4 text-7xl">🌴</div>
<div class="palm-tree bottom-10 right-10 text-9xl">🌴</div>
<div class="wave-decoration"></div>
<div class="container mx-auto px-4 py-8 max-w-2xl relative z-10">
<div class="text-center mb-8">
<h1 class="text-4xl font-bold gwada-font text-white mb-2">Jé: Dekouvèt Gwadloup</h1>
<p class="text-white opacity-80">Testé konésans-w asou kilti, listwa é lèspas Gwadloup</p>
</div>
<div id="quiz-container" class="quiz-card rounded-xl shadow-md overflow-hidden card-glow transition-all duration-300">
<div class="p-6">
<div id="question-container" class="space-y-6">
<!-- Question content will be inserted here by JavaScript -->
</div>
</div>
</div>
<div class="mt-8 text-center text-sm text-white opacity-70">
<p>Fè on ti tou an Gwadloup san boujé kò-w!</p>
</div>
</div>
<script>
const questionsByLevel = [
{
niveau: "1",
titre: "Zistwè Gwadloup",
question: "Ki lanné Gwadloup vin dèpatman fwansé?",
repons: ["1946", "1962", "1802"],
bonRepons: "1946",
explication: "Gwadloup vin dèpatman fwansé an 1946."
},
{
niveau: "2",
titre: "Lèspas natirel",
question: "Ki koté ou pé jwenn Chòd-Soufliè?",
repons: ["Bastè", "Gosiyé", "Sen Klòd"],
bonRepons: "Sen Klòd",
explication: "Chòd-Soufliè sé an vòlkan ki an Sen Klòd, an Basse-Terre."
},
{
niveau: "3",
titre: "Kont é Légann",
question: "Ki moun ki ka pasé anlè chimen la asou on kabwèt di fè, é ki ka kriyé?",
repons: ["Soucougnan", "Mèt-minwi", "Lajablès"],
bonRepons: "Mèt-minwi",
explication: "Mèt-minwi sé on lespri ki ka pasé a minwi anlè kabwèt di fè."
}
];
let currentLevel = 0;
let answerShown = false;
let isCorrect = false;
function renderQuestion() {
const currentQuestion = questionsByLevel[currentLevel];
const questionContainer = document.getElementById('question-container');
let buttonsHTML = currentQuestion.repons.map((answer, index) => `
<button onclick="checkAnswer('${answer}')"
class="w-full btn-gwada py-3 px-6 rounded-lg text-left ${answerShown ? 'opacity-70 cursor-not-allowed' : 'hover:bg-blue-50'}
${answerShown && answer === currentQuestion.bonRepons ? 'bg-green-100 border-2 border-green-500' : ''}
${answerShown && !isCorrect && answer !== currentQuestion.bonRepons ? 'bg-gray-100' : ''}"
${answerShown ? 'disabled' : ''}>
${answer}
</button>
`).join('');
let feedbackHTML = '';
if (answerShown) {
feedbackHTML = `
<div class="mt-6 p-4 rounded-lg ${isCorrect ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800'}">
<div class="font-bold mb-2">${isCorrect ? 'Bon repons! 👏' : 'Mawché! 😕'}</div>
<div>${currentQuestion.explication}</div>
</div>
`;
if (currentLevel < questionsByLevel.length - 1) {
feedbackHTML += `
<button onclick="nextQuestion()" class="w-full mt-4 btn-gwada gwada-bg text-white py-3 px-6 rounded-lg font-bold hover:opacity-90 transition">
Kontinyé →
</button>
`;
} else {
feedbackHTML += `
<div class="mt-6 p-4 bg-blue-100 text-blue-800 rounded-lg text-center font-bold">
Ou fini jé a! Mèsi pou dékouvè Gwadloup é kilti a-y! 🎉
</div>
<button onclick="restartQuiz()" class="w-full mt-4 btn-gwada gwada-bg text-white py-3 px-6 rounded-lg font-bold hover:opacity-90 transition">
Fè on lòt jé
</button>
`;
}
}
questionContainer.innerHTML = `
<div>
<div class="flex items-center mb-4">
<span class="bg-blue-100 text-blue-800 text-sm font-semibold px-3 py-1 rounded-full">Nivo ${currentQuestion.niveau}</span>
<span class="ml-2 text-lg font-semibold text-gray-700">${currentQuestion.titre}</span>
</div>
<p class="text-xl font-medium mb-6">${currentQuestion.question}</p>
<div class="space-y-3">
${buttonsHTML}
</div>
${feedbackHTML}
</div>
`;
}
function checkAnswer(answer) {
const currentQuestion = questionsByLevel[currentLevel];
isCorrect = answer === currentQuestion.bonRepons;
answerShown = true;
renderQuestion();
}
function nextQuestion() {
currentLevel++;
answerShown = false;
isCorrect = false;
renderQuestion();
}
function restartQuiz() {
currentLevel = 0;
answerShown = false;
isCorrect = false;
renderQuestion();
}
// Initialize the quiz
document.addEventListener('DOMContentLoaded', renderQuestion);
</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=didico97115/jeu" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |