|
|
<!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> |
|
|
|
|
|
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(); |
|
|
|
|
|
|
|
|
document.getElementById('currentLang').textContent = |
|
|
document.cookie.match('(^|;)\\s*NEXT_LOCALE\\s*=\\s*([^;]+)')?.pop() || 'EN'; |
|
|
|
|
|
feather.replace(); |
|
|
</script> |
|
|
</body> |
|
|
</html> |