"Spooky action at a distance" โ Albert Einstein
An interactive educational website that teaches the fascinating world of quantum entanglement through immersive 3D visualizations, interactive quizzes, and hands-on simulations. Built for Hack4Impact IdeaCon 2026.
- What is Entanglement? - Introduction to quantum entanglement with the "magic coins" analogy
- EPR Paradox - Einstein's challenge to quantum mechanics and the Einstein-Bohr debate
- Bell's Theorem - The mathematical proof that changed physics forever
- Famous Experiments - From Aspect's 1982 breakthrough to the 2022 Nobel Prize
- Real Applications - Quantum cryptography, computing, and teleportation
- Entangled Particles - Watch particles correlate in real-time
- Bell Test Apparatus - Simulate the famous experiment with adjustable polarizers
- Aspect's Experiment - See fast-switching polarizers in action
- Quantum Computer - Visualize qubits, gates, and entanglement creation
- Quantum Teleportation - Step-by-step protocol animation
- Multiple Choice Quizzes - Test your understanding with instant feedback
- AI-Graded Short Answers - Get personalized feedback powered by Google Gemini
- Live Poll Results - See how other learners answered
- Progress Tracking - Track pages visited and quizzes completed
- Achievement System - Unlock 13 achievements as you learn
- ELI5 Mode - Toggle between Simple, Standard, and Advanced explanations
- Interactive Glossary - Quick access to quantum physics terminology
- Knowledge Gap Analysis - Identify areas that need review
- Quantum Escape Room - Test your knowledge with puzzle challenges
- Comment Sections - Discuss and ask questions on each page
- Share Progress - Share your learning achievements
- React 18 with TypeScript
- Vite for fast development and building
- React Three Fiber + Three.js for 3D visualizations
- Tailwind CSS for styling
- Framer Motion for animations
- React Router for navigation
- Node.js with Express
- PostgreSQL database
- Google Gemini AI for short answer grading
- Node.js 18+
- npm or yarn
- PostgreSQL database (for backend features)
# Navigate to frontend
cd frontend
# Install dependencies
npm install
# Start development server
npm run devThe frontend will be available at http://localhost:5173
# Navigate to backend
cd backend
# Install dependencies
npm install
# Create .env file
cp .env.example .env
# Add your environment variables:
# DATABASE_URL=your_postgres_connection_string
# GEMINI_API_KEY=your_google_gemini_api_key
# PORT=5001
# Start development server
npm run devThe backend API will be available at http://localhost:5001
DATABASE_URL=postgresql://user:password@host:5432/database
GEMINI_API_KEY=your_gemini_api_key
NODE_ENV=development
PORT=5001VITE_API_URL=http://localhost:5001โโโ frontend/
โ โโโ src/
โ โ โโโ components/
โ โ โ โโโ Achievements.tsx # Achievement system
โ โ โ โโโ AspectExperiment3D.tsx # Aspect experiment visualization
โ โ โ โโโ BellTestApparatus.tsx # Bell test simulation
โ โ โ โโโ CommentSection.tsx # Page comments
โ โ โ โโโ ELI5Mode.tsx # Explanation level toggle
โ โ โ โโโ EntangledParticles3D.tsx# Particle visualization
โ โ โ โโโ EscapeRoom.tsx # Puzzle game
โ โ โ โโโ Glossary.tsx # Interactive glossary
โ โ โ โโโ KnowledgeGaps.tsx # Learning analytics
โ โ โ โโโ MultipleChoiceQuiz.tsx # Quiz component
โ โ โ โโโ Navbar.tsx # Navigation
โ โ โ โโโ ProgressTracker.tsx # Learning progress
โ โ โ โโโ QuantumComputer3D.tsx # Quantum computer viz
โ โ โ โโโ QuantumTeleportation3D.tsx # Teleportation viz
โ โ โ โโโ QuizStats.tsx # Quiz statistics
โ โ โ โโโ ReadingProgress.tsx # Page reading tracker
โ โ โ โโโ ShortAnswerQuiz.tsx # AI-graded questions
โ โ โ โโโ ...
โ โ โโโ pages/
โ โ โ โโโ Home.tsx # Landing page
โ โ โ โโโ WhatIsEntanglement.tsx # Intro module
โ โ โ โโโ EPRParadox.tsx # EPR module
โ โ โ โโโ BellsTheorem.tsx # Bell's theorem module
โ โ โ โโโ FamousExperiments.tsx # Experiments module
โ โ โ โโโ Applications.tsx # Applications module
โ โ โ โโโ EscapeRoomPage.tsx # Escape room
โ โ โโโ utils/
โ โ โ โโโ api.ts # API client
โ โ โโโ App.tsx # Main app component
โ โ โโโ main.tsx # Entry point
โ โโโ package.json
โ โโโ tailwind.config.js
โ โโโ vite.config.ts
โ
โโโ backend/
โ โโโ server.js # Express server & routes
โ โโโ package.json
โ โโโ .env.example
โ
โโโ pr_template.md # PR submission template
โโโ README.md
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/health |
Health check & database status |
POST |
/api/quiz/submit |
Submit quiz answer |
GET |
/api/quiz/results/:questionId |
Get live poll results |
POST |
/api/grade-answer |
AI grade short answer (Gemini) |
POST |
/api/comments |
Add a comment |
GET |
/api/comments/:pageId |
Get comments for a page |
- Go to vercel.com and connect your GitHub repo
- Set Root Directory to
frontend - Framework will auto-detect as Vite
- Add environment variable:
VITE_API_URL=https://your-backend.up.railway.app - Deploy!
- Go to railway.app and connect your GitHub repo
- Set Root Directory to
backend - Add a PostgreSQL database (Railway auto-creates
DATABASE_URL) - Add environment variables:
GEMINI_API_KEY- Your Google Gemini API keyNODE_ENV-productionPORT-3000
- Generate a public domain under Settings โ Networking
- Deploy!
| Achievement | Description | Requirement |
|---|---|---|
| ๐ Quantum Curious | Begin your quantum journey | Visit your first page |
| ๐ Eager Learner | Explore half the content | Visit 3 topic pages |
| โญ Knowledge Seeker | Complete all topics | Visit all 5 topic pages |
| ๐ฏ First Steps | Start testing yourself | Complete your first quiz |
| ๐ฅ On Fire | Build a streak | Get 3 correct in a row |
| ๐ง Quiz Master | Become a quiz expert | Complete 10 quizzes |
| ๐ฏ Perfectionist | Achieve perfection | Get 5 perfect scores |
| โ๏ธ Deep Thinker | Show your understanding | Complete a short answer |
| ๐ฌ Conversation Starter | Join the discussion | Post your first comment |
| โฑ๏ธ Dedicated Student | Invest time in learning | Spend 10+ minutes |
| ๐ Bell Test Expert | Master the theorem | Complete Bell's theorem |
| ๐ Quantum Pioneer | Nearly there! | Unlock 10 achievements |
| ๐ Quantum Master | Ultimate achievement | Complete everything |
- Quantum Cyan:
#06b6d4- Primary accent - Entangled Purple:
#a855f7- Secondary accent - Success Green:
#10b981 - Warning Amber:
#f59e0b - Error Red:
#ef4444
- Display: Bold, gradient text for headings
- Body: Clean, readable sans-serif
- Code: Monospace for quantum notation (|ฯโฉ, |ฮฆโบโฉ)
- Light mode UI with gradient accents
- Dark 3D visualization backgrounds for contrast
- Rounded cards with subtle shadows
- Interactive hover states
The website is fully responsive:
- ๐ฑ Mobile (320px+) - Stacked layouts, touch-friendly
- ๐ป Desktop (1024px+) - Full layouts with sidebars
After completing this course, learners will understand:
- What quantum entanglement is and why Einstein called it "spooky"
- The EPR Paradox and the debate between Einstein and Bohr
- Bell's Theorem and why it rules out local hidden variables
- How experiments proved quantum mechanics correct
- Real-world applications in cryptography, computing, and teleportation
# Frontend
cd frontend
npm run test
# Build check
npm run buildThis project was created for Hack4Impact IdeaCon 2026.
Made with โค๏ธ and quantum superposition
The particles may be entangled, but learning should be fun!