Spaces:
Running
Running
Add 2 files
Browse files- README.md +6 -4
- index.html +216 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: purple
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: jeu
|
| 3 |
+
emoji: 🐳
|
| 4 |
colorFrom: purple
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,216 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Jé: Dekouvèt Gwadloup</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<style>
|
| 9 |
+
@import url('https://fonts.googleapis.com/css2?family=Crete+Round&family=Roboto:wght@400;500;700&display=swap');
|
| 10 |
+
|
| 11 |
+
body {
|
| 12 |
+
font-family: 'Roboto', sans-serif;
|
| 13 |
+
background: linear-gradient(135deg, #0055A4 0%, #EF4135 50%, #F9A01B 100%);
|
| 14 |
+
background-size: 400% 400%;
|
| 15 |
+
animation: gradient 15s ease infinite;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
@keyframes gradient {
|
| 19 |
+
0% { background-position: 0% 50%; }
|
| 20 |
+
50% { background-position: 100% 50%; }
|
| 21 |
+
100% { background-position: 0% 50%; }
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.gwada-font {
|
| 25 |
+
font-family: 'Crete Round', serif;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.gwada-bg {
|
| 29 |
+
background: linear-gradient(135deg, #0055A4 0%, #EF4135 50%, #F9A01B 100%);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.btn-gwada {
|
| 33 |
+
transition: all 0.3s ease;
|
| 34 |
+
transform: translateY(0);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.btn-gwada:hover {
|
| 38 |
+
transform: translateY(-2px);
|
| 39 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.btn-gwada:active {
|
| 43 |
+
transform: translateY(1px);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.palm-tree {
|
| 47 |
+
position: absolute;
|
| 48 |
+
opacity: 0.2;
|
| 49 |
+
z-index: 0;
|
| 50 |
+
filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.card-glow {
|
| 54 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.quiz-card {
|
| 58 |
+
background-color: rgba(255, 255, 255, 0.9);
|
| 59 |
+
backdrop-filter: blur(5px);
|
| 60 |
+
position: relative;
|
| 61 |
+
z-index: 1;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.wave-decoration {
|
| 65 |
+
position: absolute;
|
| 66 |
+
bottom: 0;
|
| 67 |
+
left: 0;
|
| 68 |
+
width: 100%;
|
| 69 |
+
height: 100px;
|
| 70 |
+
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>');
|
| 71 |
+
background-size: cover;
|
| 72 |
+
z-index: 0;
|
| 73 |
+
}
|
| 74 |
+
</style>
|
| 75 |
+
</head>
|
| 76 |
+
<body class="min-h-screen">
|
| 77 |
+
<!-- Decorative elements -->
|
| 78 |
+
<div class="palm-tree top-10 left-10 text-6xl">🌴</div>
|
| 79 |
+
<div class="palm-tree top-20 right-20 text-8xl">🌴</div>
|
| 80 |
+
<div class="palm-tree bottom-20 left-1/4 text-7xl">🌴</div>
|
| 81 |
+
<div class="palm-tree bottom-10 right-10 text-9xl">🌴</div>
|
| 82 |
+
<div class="wave-decoration"></div>
|
| 83 |
+
|
| 84 |
+
<div class="container mx-auto px-4 py-8 max-w-2xl relative z-10">
|
| 85 |
+
<div class="text-center mb-8">
|
| 86 |
+
<h1 class="text-4xl font-bold gwada-font text-white mb-2">Jé: Dekouvèt Gwadloup</h1>
|
| 87 |
+
<p class="text-white opacity-80">Testé konésans-w asou kilti, listwa é lèspas Gwadloup</p>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
<div id="quiz-container" class="quiz-card rounded-xl shadow-md overflow-hidden card-glow transition-all duration-300">
|
| 91 |
+
<div class="p-6">
|
| 92 |
+
<div id="question-container" class="space-y-6">
|
| 93 |
+
<!-- Question content will be inserted here by JavaScript -->
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<div class="mt-8 text-center text-sm text-white opacity-70">
|
| 99 |
+
<p>Fè on ti tou an Gwadloup san boujé kò-w!</p>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
|
| 103 |
+
<script>
|
| 104 |
+
const questionsByLevel = [
|
| 105 |
+
{
|
| 106 |
+
niveau: "1",
|
| 107 |
+
titre: "Zistwè Gwadloup",
|
| 108 |
+
question: "Ki lanné Gwadloup vin dèpatman fwansé?",
|
| 109 |
+
repons: ["1946", "1962", "1802"],
|
| 110 |
+
bonRepons: "1946",
|
| 111 |
+
explication: "Gwadloup vin dèpatman fwansé an 1946."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
niveau: "2",
|
| 115 |
+
titre: "Lèspas natirel",
|
| 116 |
+
question: "Ki koté ou pé jwenn Chòd-Soufliè?",
|
| 117 |
+
repons: ["Bastè", "Gosiyé", "Sen Klòd"],
|
| 118 |
+
bonRepons: "Sen Klòd",
|
| 119 |
+
explication: "Chòd-Soufliè sé an vòlkan ki an Sen Klòd, an Basse-Terre."
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
niveau: "3",
|
| 123 |
+
titre: "Kont é Légann",
|
| 124 |
+
question: "Ki moun ki ka pasé anlè chimen la asou on kabwèt di fè, é ki ka kriyé?",
|
| 125 |
+
repons: ["Soucougnan", "Mèt-minwi", "Lajablès"],
|
| 126 |
+
bonRepons: "Mèt-minwi",
|
| 127 |
+
explication: "Mèt-minwi sé on lespri ki ka pasé a minwi anlè kabwèt di fè."
|
| 128 |
+
}
|
| 129 |
+
];
|
| 130 |
+
|
| 131 |
+
let currentLevel = 0;
|
| 132 |
+
let answerShown = false;
|
| 133 |
+
let isCorrect = false;
|
| 134 |
+
|
| 135 |
+
function renderQuestion() {
|
| 136 |
+
const currentQuestion = questionsByLevel[currentLevel];
|
| 137 |
+
const questionContainer = document.getElementById('question-container');
|
| 138 |
+
|
| 139 |
+
let buttonsHTML = currentQuestion.repons.map((answer, index) => `
|
| 140 |
+
<button onclick="checkAnswer('${answer}')"
|
| 141 |
+
class="w-full btn-gwada py-3 px-6 rounded-lg text-left ${answerShown ? 'opacity-70 cursor-not-allowed' : 'hover:bg-blue-50'}
|
| 142 |
+
${answerShown && answer === currentQuestion.bonRepons ? 'bg-green-100 border-2 border-green-500' : ''}
|
| 143 |
+
${answerShown && !isCorrect && answer !== currentQuestion.bonRepons ? 'bg-gray-100' : ''}"
|
| 144 |
+
${answerShown ? 'disabled' : ''}>
|
| 145 |
+
${answer}
|
| 146 |
+
</button>
|
| 147 |
+
`).join('');
|
| 148 |
+
|
| 149 |
+
let feedbackHTML = '';
|
| 150 |
+
if (answerShown) {
|
| 151 |
+
feedbackHTML = `
|
| 152 |
+
<div class="mt-6 p-4 rounded-lg ${isCorrect ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800'}">
|
| 153 |
+
<div class="font-bold mb-2">${isCorrect ? 'Bon repons! 👏' : 'Mawché! 😕'}</div>
|
| 154 |
+
<div>${currentQuestion.explication}</div>
|
| 155 |
+
</div>
|
| 156 |
+
`;
|
| 157 |
+
|
| 158 |
+
if (currentLevel < questionsByLevel.length - 1) {
|
| 159 |
+
feedbackHTML += `
|
| 160 |
+
<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">
|
| 161 |
+
Kontinyé →
|
| 162 |
+
</button>
|
| 163 |
+
`;
|
| 164 |
+
} else {
|
| 165 |
+
feedbackHTML += `
|
| 166 |
+
<div class="mt-6 p-4 bg-blue-100 text-blue-800 rounded-lg text-center font-bold">
|
| 167 |
+
Ou fini jé a! Mèsi pou dékouvè Gwadloup é kilti a-y! 🎉
|
| 168 |
+
</div>
|
| 169 |
+
<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">
|
| 170 |
+
Fè on lòt jé
|
| 171 |
+
</button>
|
| 172 |
+
`;
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
questionContainer.innerHTML = `
|
| 177 |
+
<div>
|
| 178 |
+
<div class="flex items-center mb-4">
|
| 179 |
+
<span class="bg-blue-100 text-blue-800 text-sm font-semibold px-3 py-1 rounded-full">Nivo ${currentQuestion.niveau}</span>
|
| 180 |
+
<span class="ml-2 text-lg font-semibold text-gray-700">${currentQuestion.titre}</span>
|
| 181 |
+
</div>
|
| 182 |
+
<p class="text-xl font-medium mb-6">${currentQuestion.question}</p>
|
| 183 |
+
<div class="space-y-3">
|
| 184 |
+
${buttonsHTML}
|
| 185 |
+
</div>
|
| 186 |
+
${feedbackHTML}
|
| 187 |
+
</div>
|
| 188 |
+
`;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
function checkAnswer(answer) {
|
| 192 |
+
const currentQuestion = questionsByLevel[currentLevel];
|
| 193 |
+
isCorrect = answer === currentQuestion.bonRepons;
|
| 194 |
+
answerShown = true;
|
| 195 |
+
renderQuestion();
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
function nextQuestion() {
|
| 199 |
+
currentLevel++;
|
| 200 |
+
answerShown = false;
|
| 201 |
+
isCorrect = false;
|
| 202 |
+
renderQuestion();
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
function restartQuiz() {
|
| 206 |
+
currentLevel = 0;
|
| 207 |
+
answerShown = false;
|
| 208 |
+
isCorrect = false;
|
| 209 |
+
renderQuestion();
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
// Initialize the quiz
|
| 213 |
+
document.addEventListener('DOMContentLoaded', renderQuestion);
|
| 214 |
+
</script>
|
| 215 |
+
<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>
|
| 216 |
+
</html>
|