brainycalc-buddy / index.html
syncsphere23's picture
✅
4009be4 verified
Raw History Blame Contribute Delete
11.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Study Companion</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
dark: '#0E0E12',
primary: '#5C6CFF',
secondary: '#00D4A6',
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
}
}
}
</script>
<style>
body {
background-color: #0E0E12;
color: white;
}
.glass-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(8px);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
</style>
</head>
<body class="min-h-screen font-sans">
<div class="relative h-screen overflow-hidden">
<!-- Hero Section -->
<div class="absolute inset-0 z-10 flex flex-col items-center justify-center px-4 text-center">
<div class="relative max-w-4xl w-full space-y-8">
<!-- Sparkle particles -->
<div class="absolute -inset-4 overflow-hidden pointer-events-none">
<div class="absolute inset-0 bg-[radial-gradient(circle_at_center,#5C6CFF_0%,transparent_70%)] opacity-20 animate-pulse"></div>
<div class="absolute inset-0 bg-[radial-gradient(circle_at_30%_60%,#00D4A6_0%,transparent_70%)] opacity-15 animate-pulse delay-300">
</div>
<h1 class="text-5xl md:text-7xl font-bold transform transition-all hover:scale-105 duration-500">Your All-in-One Smart Study Companion</h1>
<p class="text-xl text-gray-300 transform transition-all hover:scale-102 duration-500">Boost your learning with AI-powered notes & tools</p>
<div class="flex flex-col sm:flex-row justify-center gap-6 pt-4">
<a href="calculator.html" class="border-2 border-white/30 text-white px-12 py-5 rounded-full text-xl font-bold hover:bg-white/10 hover:shadow-2xl hover:shadow-secondary/30 transition-all transform hover:-translate-y-2 duration-500 relative overflow-hidden group">
<span class="absolute inset-0 bg-[radial-gradient(circle_at_center,#5C6CFF_0%,transparent_70%)] opacity-0 group-hover:opacity-20 transition-opacity duration-500"></span>
<span class="relative z-10 flex items-center gap-2">
<span class="group-hover:rotate-12 transition-transform duration-300">🧮</span>
<span>Calculator</span>
<span class="group-hover:-rotate-12 transition-transform duration-300">✨</span>
</span>
</a>
<a href="study.html" class="bg-gradient-to-r from-primary to-secondary text-white px-12 py-5 rounded-full text-xl font-bold hover:shadow-2xl hover:shadow-primary/60 transition-all transform hover:-translate-y-2 duration-500 relative overflow-hidden group">
<span class="absolute inset-0 bg-[radial-gradient(circle_at_center,#ffffff_0%,transparent_70%)] opacity-0 group-hover:opacity-30 transition-opacity duration-500"></span>
<span class="relative z-10 flex items-center gap-2">
<span class="group-hover:rotate-12 transition-transform duration-300">📘</span>
<span>Study with AI</span>
<span class="group-hover:-rotate-12 transition-transform duration-300">✨</span>
</span>
</a>
<a href="tools.html" class="border-2 border-white/30 text-white px-12 py-5 rounded-full text-xl font-bold hover:bg-white/10 hover:shadow-2xl hover:shadow-secondary/30 transition-all transform hover:-translate-y-2 duration-500 relative overflow-hidden group">
<span class="absolute inset-0 bg-[radial-gradient(circle_at_center,#00D4A6_0%,transparent_70%)] opacity-0 group-hover:opacity-20 transition-opacity duration-500"></span>
<span class="relative z-10 flex items-center gap-2">
<span class="group-hover:rotate-12 transition-transform duration-300">🛠️</span>
<span>Student Tools</span>
<span class="group-hover:-rotate-12 transition-transform duration-300">⚡</span>
</span>
</a>
</div>
</div>
</div>
<!-- 3D Animation Canvas -->
<div class="absolute inset-0 overflow-hidden pointer-events-none">
<canvas id="particleCanvas" class="w-full h-full"></canvas>
</div>
<!-- Features Section -->
<section class="py-20 px-4 max-w-6xl mx-auto">
<div class="grid md:grid-cols-3 gap-8">
<div class="glass-card p-8 rounded-2xl hover:translate-y-[-8px] transition-transform hover:shadow-xl hover:shadow-primary/20 group relative overflow-hidden">
<div class="absolute inset-0 bg-[radial-gradient(circle_at_center,#5C6CFF_0%,transparent_70%)] opacity-0 group-hover:opacity-10 transition-opacity duration-300"></div>
<div class="text-4xl mb-4">⚡</div>
<h3 class="text-xl font-bold mb-2">Quick Notes & Summaries</h3>
<p class="text-gray-300">Instant AI-generated summaries from your study materials</p>
</div>
<div class="glass-card p-8 rounded-2xl hover:translate-y-[-8px] transition-transform hover:shadow-xl hover:shadow-secondary/20 group relative overflow-hidden">
<div class="absolute inset-0 bg-[radial-gradient(circle_at_center,#00D4A6_0%,transparent_70%)] opacity-0 group-hover:opacity-10 transition-opacity duration-300"></div>
<div class="text-4xl mb-4">📝</div>
<h3 class="text-xl font-bold mb-2">Auto-Generated Q&A Bank</h3>
<p class="text-gray-300">Create practice questions automatically from your content</p>
</div>
<div class="glass-card p-8 rounded-2xl hover:translate-y-[-8px] transition-transform hover:shadow-xl hover:shadow-primary/20 group relative overflow-hidden">
<div class="absolute inset-0 bg-[radial-gradient(circle_at_center,#5C6CFF_0%,transparent_70%)] opacity-0 group-hover:opacity-10 transition-opacity duration-300"></div>
<div class="text-4xl mb-4">🔧</div>
<h3 class="text-xl font-bold mb-2">All Essential Tools in One Place</h3>
<p class="text-gray-300">Everything students need for productivity and learning</p>
</div>
</div>
</section>
</div>
<script>
// 3D Particle Animation
const canvas = document.getElementById('particleCanvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const particles = [];
const particleCount = window.innerWidth < 768 ? 30 : 80;
class Particle {
constructor() {
this.x = Math.random() * canvas.width;
this.y = Math.random() * canvas.height;
this.size = Math.random() * 3 + 1;
this.speedX = Math.random() * 1 - 0.5;
this.speedY = Math.random() * 1 - 0.5;
this.color = Math.random() > 0.5 ? '#5C6CFF' : '#00D4A6';
this.opacity = Math.random() * 0.3 + 0.1;
this.angle = 0;
}
update() {
this.angle += 0.01;
this.x += this.speedX + Math.cos(this.angle) * 0.5;
this.y += this.speedY + Math.sin(this.angle) * 0.5;
if (this.x < 0 || this.x > canvas.width) this.speedX *= -1;
if (this.y < 0 || this.y > canvas.height) this.speedY *= -1;
}
draw() {
ctx.beginPath();
ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
ctx.fillStyle = this.color;
ctx.globalAlpha = this.opacity;
ctx.fill();
ctx.closePath();
// Glow effect
ctx.beginPath();
ctx.arc(this.x, this.y, this.size * 4, 0, Math.PI * 2);
const gradient = ctx.createRadialGradient(
this.x, this.y, 0,
this.x, this.y, this.size * 4
);
gradient.addColorStop(0, this.color);
gradient.addColorStop(1, 'transparent');
ctx.fillStyle = gradient;
ctx.fill();
ctx.closePath();
}
}
function init() {
for (let i = 0; i < particleCount; i++) {
particles.push(new Particle());
}
}
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
for (let i = 0; i < particles.length; i++) {
particles[i].update();
particles[i].draw();
}
requestAnimationFrame(animate);
}
init();
animate();
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
// Add sparkle effect to buttons on hover
document.querySelectorAll('a').forEach(button => {
button.addEventListener('mouseenter', () => {
const sparkles = document.createElement('div');
sparkles.className = 'absolute inset-0 overflow-hidden pointer-events-none';
button.appendChild(sparkles);
for (let i = 0; i < 8; i++) {
const sparkle = document.createElement('div');
sparkle.className = 'absolute w-1 h-1 bg-white rounded-full animate-sparkle';
sparkle.style.left = `${Math.random() * 100}%`;
sparkle.style.top = `${Math.random() * 100}%`;
sparkle.style.animationDelay = `${Math.random() * 0.5}s`;
sparkles.appendChild(sparkle);
}
setTimeout(() => {
sparkles.remove();
}, 1000);
});
});
</script>
<style>
@keyframes sparkle {
0% { transform: scale(0); opacity: 0; }
50% { transform: scale(1); opacity: 1; }
100% { transform: scale(0); opacity: 0; }
}
.animate-sparkle {
animation: sparkle 1s ease-out forwards;
box-shadow: 0 0 8px 2px white;
}
</style>
<script src="script.js"></script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>