keepyoursins's picture
Create a Quiz App, with a quiz section, and a history section.
0b82439 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QuizCraft Pro - Home</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
}
.vanta-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.glass-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-secondary {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
transition: all 0.3s ease;
}
.btn-secondary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
</style>
</head>
<body class="min-h-screen text-white overflow-x-hidden">
<div id="vanta-bg" class="vanta-bg"></div>
<!-- Navigation -->
<nav class="glass-card rounded-lg m-4 p-4">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="award" class="text-purple-400"></i>
<span class="text-xl font-bold">QuizCraft Pro</span>
</div>
<div class="flex space-x-6">
<a href="index.html" class="hover:text-purple-300 transition-colors">Home</a>
<a href="quiz.html" class="hover:text-purple-300 transition-colors">Quiz</a>
<a href="history.html" class="hover:text-purple-300 transition-colors">History</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="container mx-auto px-4 py-16 text-center">
<div class="max-w-4xl mx-auto">
<h1 class="text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-purple-400 to-pink-400 bg-clip-text text-transparent">
Challenge Your Mind
</h1>
<p class="text-xl md:text-2xl mb-8 text-gray-300">
Dive into endless knowledge, track your progress, and become the ultimate quiz master!
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center">
<a href="quiz.html" class="btn-primary px-8 py-4 rounded-full font-semibold text-lg">
<i data-feather="play" class="inline mr-2"></i>Start Quiz
</a>
<a href="history.html" class="btn-secondary px-8 py-4 rounded-full font-semibold text-lg">
<i data-feather="bar-chart-2" class="inline mr-2"></i>View History
</a>
</div>
</div>
</section>
<!-- Features Section -->
<section class="container mx-auto px-4 py-16">
<div class="grid md:grid-cols-3 gap-8">
<div class="glass-card p-6 rounded-xl text-center">
<i data-feather="zap" class="w-12 h-12 mx-auto mb-4 text-yellow-400"></i>
<h3 class="text-xl font-semibold mb-3">Lightning Fast</h3>
<p class="text-gray-300">Instant feedback and seamless transitions for the best quiz experience</p>
</div>
<div class="glass-card p-6 rounded-xl text-center">
<i data-feather="trending-up" class="w-12 h-12 mx-auto mb-4 text-green-400"></i>
<h3 class="text-xl font-semibold mb-3">Track Progress</h3>
<p class="text-gray-300">Monitor your improvement with detailed analytics and history</p>
</div>
<div class="glass-card p-6 rounded-xl text-center">
<i data-feather="database" class="w-12 h-12 mx-auto mb-4 text-blue-400"></i>
<h3 class="text-xl font-semibold mb-3">Vast Categories</h3>
<p class="text-gray-300">Thousands of questions across multiple topics and difficulty levels</p>
</div>
</div>
</section>
<script>
// Initialize Vanta.js globe
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x764ba2,
backgroundColor: 0x0
});
// Initialize feather icons
feather.replace();
// Add some entrance animations
document.addEventListener('DOMContentLoaded', function() {
anime({
targets: 'h1, p, .btn-primary, .btn-secondary',
translateY: [50, 0],
opacity: [0, 1],
duration: 1000,
delay: anime.stagger(200)
});
});
</script>
</body>
</html>