File size: 5,670 Bytes
be3690e |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GameQuest | QuantumCode</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="components/voice-track.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Space Grotesk', sans-serif;
background-color: #0f172a;
color: #e2e8f0;
}
.gradient-text {
background: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.glass-card {
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 1rem;
}
.game-card {
transition: all 0.3s ease;
border: 1px solid transparent;
}
.game-card:hover {
transform: translateY(-5px);
border-color: #7c3aed;
}
</style>
</head>
<body class="min-h-screen">
<nav class="px-6 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="cpu" class="text-indigo-500"></i>
<span class="text-xl font-bold gradient-text">QuantumCode</span>
</div>
<div class="flex items-center space-x-2">
<a href="i18n-setup.html" class="flex items-center text-sm hover:text-indigo-400 transition-colors">
<i data-feather="globe" class="w-4 h-4 mr-1"></i>
<span id="currentLang">EN</span>
</a>
</div>
<div class="hidden md:flex space-x-8">
<a href="index.html" class="hover:text-indigo-400 transition-colors">Home</a>
<a href="progress-report.html" class="hover:text-indigo-400 transition-colors">Progress</a>
<a href="gamequest.html" class="text-indigo-400">GameQuest</a>
</div>
</nav>
<main class="container mx-auto px-4 py-16">
<section class="max-w-6xl mx-auto">
<h1 class="text-4xl md:text-5xl font-bold mb-6">
<span class="gradient-text">GameQuest</span>
</h1>
<p class="text-xl text-slate-300 mb-10">
Practice real-world scenarios with our interactive mini-games.
</p>
<div class="grid md:grid-cols-2 gap-8 mb-12">
<a href="gamequest-coffee.html" class="game-card glass-card p-8 text-center">
<div class="w-16 h-16 rounded-full bg-indigo-900/50 flex items-center justify-center mx-auto mb-4">
<i data-feather="coffee" class="text-indigo-400"></i>
</div>
<h3 class="text-2xl font-bold mb-3">Order a Coffee</h3>
<p class="text-slate-300">Practice ordering at a café with voice recognition</p>
</a>
<a href="gamequest-airport.html" class="game-card glass-card p-8 text-center">
<div class="w-16 h-16 rounded-full bg-indigo-900/50 flex items-center justify-center mx-auto mb-4">
<i data-feather="plane" class="text-indigo-400"></i>
</div>
<h3 class="text-2xl font-bold mb-3">At the Airport</h3>
<p class="text-slate-300">Navigate airport check-in and security</p>
</a>
</div>
<div class="glass-card p-8">
<h2 class="text-2xl font-bold mb-6">Your GameQuest Stats</h2>
<div class="grid md:grid-cols-3 gap-6">
<div class="text-center">
<h3 class="text-xl font-bold mb-2">Games Played</h3>
<div class="text-4xl font-bold gradient-text" id="gamesPlayed">0</div>
</div>
<div class="text-center">
<h3 class="text-xl font-bold mb-2">Total Score</h3>
<div class="text-4xl font-bold gradient-text" id="totalScore">0</div>
</div>
<div class="text-center">
<h3 class="text-xl font-bold mb-2">Highest Score</h3>
<div class="text-4xl font-bold gradient-text" id="highScore">0</div>
</div>
</div>
</div>
</section>
</main>
<script>
// Load stats from localStorage
function loadStats() {
const stats = JSON.parse(localStorage.getItem('gamequestStats')) || {
gamesPlayed: 0,
totalScore: 0,
highScore: 0
};
document.getElementById('gamesPlayed').textContent = stats.gamesPlayed;
document.getElementById('totalScore').textContent = stats.totalScore;
document.getElementById('highScore').textContent = stats.highScore;
}
loadStats();
// Set initial language
document.getElementById('currentLang').textContent =
document.cookie.match('(^|;)\\s*NEXT_LOCALE\\s*=\\s*([^;]+)')?.pop() || 'EN';
feather.replace();
</script>
</body>
</html> |