jeu / index.html
didico97115's picture
Add 2 files
dd22820 verified
<!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>