Spaces:
Running
Running
Please make an app for inculcating curiosity of science for 7 grade students - Initial Deployment
66d6aee verified | <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Science Explorer - Grade 7</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @keyframes float { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-10px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| .floating { | |
| animation: float 3s ease-in-out infinite; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .experiment-video { | |
| width: 100%; | |
| aspect-ratio: 16 / 9; | |
| background: #000; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gradient-to-br from-blue-50 to-indigo-100 min-h-screen"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <!-- Header Section --> | |
| <header class="text-center mb-12"> | |
| <div class="flex justify-center mb-4"> | |
| <i class="fas fa-atom text-6xl text-indigo-600 floating"></i> | |
| </div> | |
| <h1 class="text-4xl md:text-5xl font-bold text-indigo-800 mb-3">Science Explorer</h1> | |
| <p class="text-xl text-gray-700 max-w-2xl mx-auto">Discover the fascinating world of science through interactive experiments, quizzes, and daily mysteries!</p> | |
| </header> | |
| <!-- Main Dashboard --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-12"> | |
| <!-- Daily Science Mystery --> | |
| <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 card-hover"> | |
| <div class="bg-indigo-600 p-4"> | |
| <h2 class="text-white text-xl font-bold"><i class="fas fa-question-circle mr-2"></i>Daily Mystery</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="bg-indigo-100 rounded-lg p-4 mb-4"> | |
| <p class="font-medium text-indigo-800">Why does ice float on water?</p> | |
| </div> | |
| <button onclick="revealAnswer()" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded-lg transition"> | |
| Reveal Answer | |
| </button> | |
| <div id="answer" class="mt-4 text-gray-700 hidden"> | |
| <p>Ice floats because it's less dense than liquid water. When water freezes, the molecules form a crystalline structure that takes up more space, making ice less dense than the liquid form.</p> | |
| <div class="mt-4 flex items-center"> | |
| <i class="fas fa-lightbulb text-yellow-500 text-2xl mr-2"></i> | |
| <span class="text-sm text-gray-600">Try it: Freeze water in a clear container and observe the expansion!</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Quick Experiments --> | |
| <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 card-hover"> | |
| <div class="bg-emerald-600 p-4"> | |
| <h2 class="text-white text-xl font-bold"><i class="fas fa-flask mr-2"></i>Quick Experiments</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="mb-4"> | |
| <h3 class="font-bold text-emerald-800 mb-2">Rainbow Milk</h3> | |
| <p class="text-gray-700 text-sm mb-3">See colors dance with this simple chemistry demo!</p> | |
| <button onclick="showExperiment('milk')" class="text-emerald-600 hover:text-emerald-800 text-sm font-medium flex items-center"> | |
| Show me how <i class="fas fa-chevron-right ml-1"></i> | |
| </button> | |
| </div> | |
| <div class="mb-4"> | |
| <h3 class="font-bold text-emerald-800 mb-2">Lemon Battery</h3> | |
| <p class="text-gray-700 text-sm mb-3">Power a clock with citrus power!</p> | |
| <button onclick="showExperiment('lemon')" class="text-emerald-600 hover:text-emerald-800 text-sm font-medium flex items-center"> | |
| Show me how <i class="fas fa-chevron-right ml-1"></i> | |
| </button> | |
| </div> | |
| <div> | |
| <h3 class="font-bold text-emerald-800 mb-2">Invisible Ink</h3> | |
| <p class="text-gray-700 text-sm mb-3">Write secret messages with science!</p> | |
| <button onclick="showExperiment('ink')" class="text-emerald-600 hover:text-emerald-800 text-sm font-medium flex items-center"> | |
| Show me how <i class="fas fa-chevron-right ml-1"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Progress Tracker --> | |
| <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 card-hover"> | |
| <div class="bg-amber-500 p-4"> | |
| <h2 class="text-white text-xl font-bold"><i class="fas fa-trophy mr-2"></i>My Science Journey</h2> | |
| </div> | |
| <div class="p-6"> | |
| <div class="mb-6"> | |
| <div class="flex justify-between mb-1"> | |
| <span class="text-sm font-medium text-amber-800">Curiosity Level</span> | |
| <span class="text-sm font-medium text-amber-800">45%</span> | |
| </div> | |
| <div class="w-full bg-amber-200 rounded-full h-2.5"> | |
| <div class="bg-amber-600 h-2.5 rounded-full" style="width: 45%"></div> | |
| </div> | |
| </div> | |
| <div class="space-y-4"> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-check text-indigo-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-gray-800">Completed: States of Matter</p> | |
| <p class="text-xs text-gray-500">2 days ago</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-emerald-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-flask text-emerald-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-gray-800">Up next: Chemical Reactions</p> | |
| <p class="text-xs text-gray-500">Coming soon</p> | |
| </div> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-question text-amber-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-gray-800">Questions asked: 12</p> | |
| <p class="text-xs text-gray-500">Great job!</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Featured Topics --> | |
| <div class="bg-white rounded-xl shadow-lg p-6 mb-12"> | |
| <h2 class="text-2xl font-bold text-indigo-800 mb-6 flex items-center"> | |
| <i class="fas fa-star mr-3 text-yellow-500"></i> Explore Science Topics | |
| </h2> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-4"> | |
| <div class="relative group rounded-xl overflow-hidden h-40 transition-all duration-300 transform hover:scale-105"> | |
| <div class="absolute inset-0 bg-gradient-to-br from-purple-500 to-blue-600 opacity-90"></div> | |
| <div class="relative p-4 h-full flex flex-col justify-end z-10"> | |
| <h3 class="text-white font-bold text-lg">Physics</h3> | |
| <p class="text-white text-sm opacity-0 group-hover:opacity-100 transition-opacity duration-300">Forces, Motion & Energy</p> | |
| </div> | |
| <i class="fas fa-atom absolute top-4 right-4 text-white text-3xl opacity-70"></i> | |
| </div> | |
| <div class="relative group rounded-xl overflow-hidden h-40 transition-all duration-300 transform hover:scale-105"> | |
| <div class="absolute inset-0 bg-gradient-to-br from-green-500 to-teal-600 opacity-90"></div> | |
| <div class="relative p-4 h-full flex flex-col justify-end z-10"> | |
| <h3 class="text-white font-bold text-lg">Biology</h3> | |
| <p class="text-white text-sm opacity-0 group-hover:opacity-100 transition-opacity duration-300">Cells, Organisms & Ecosystems</p> | |
| </div> | |
| <i class="fas fa-dna absolute top-4 right-4 text-white text-3xl opacity-70"></i> | |
| </div> | |
| <div class="relative group rounded-xl overflow-hidden h-40 transition-all duration-300 transform hover:scale-105"> | |
| <div class="absolute inset-0 bg-gradient-to-br from-red-500 to-pink-600 opacity-90"></div> | |
| <div class="relative p-4 h-full flex flex-col justify-end z-10"> | |
| <h3 class="text-white font-bold text-lg">Chemistry</h3> | |
| <p class="text-white text-sm opacity-0 group-hover:opacity-100 transition-opacity duration-300">Matter & Its Changes</p> | |
| </div> | |
| <i class="fas fa-flask absolute top-4 right-4 text-white text-3xl opacity-70"></i> | |
| </div> | |
| <div class="relative group rounded-xl overflow-hidden h-40 transition-all duration-300 transform hover:scale-105"> | |
| <div class="absolute inset-0 bg-gradient-to-br from-yellow-500 to-orange-600 opacity-90"></div> | |
| <div class="relative p-4 h-full flex flex-col justify-end z-10"> | |
| <h3 class="text-white font-bold text-lg">Earth Science</h3> | |
| <p class="text-white text-sm opacity-0 group-hover:opacity-100 transition-opacity duration-300">Our Changing Planet</p> | |
| </div> | |
| <i class="fas fa-globe-americas absolute top-4 right-4 text-white text-3xl opacity-70"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Interactive Quiz Section --> | |
| <div class="bg-indigo-700 rounded-xl shadow-lg p-6 mb-12"> | |
| <h2 class="text-2xl font-bold text-white mb-6 flex items-center"> | |
| <i class="fas fa-brain mr-3 text-yellow-300"></i> Test Your Knowledge | |
| </h2> | |
| <div id="quizContainer" class="bg-white rounded-lg p-6"> | |
| <div id="question1" class="quiz-question"> | |
| <h3 class="font-bold text-lg mb-4">1. What causes the phases of the Moon?</h3> | |
| <div class="space-y-3"> | |
| <label class="flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <input type="radio" name="moon" value="A" class="mr-3"> | |
| The Earth's shadow covering parts of the Moon | |
| </label> | |
| <label class="flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <input type="radio" name="moon" value="B" class="mr-3"> | |
| The Moon's own light dimming and brightening | |
| </label> | |
| <label class="flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <input type="radio" name="moon" value="C" class="mr-3"> | |
| How much of the sunlit side we can see from Earth | |
| </label> | |
| <label class="flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-indigo-50"> | |
| <input type="radio" name="moon" value="D" class="mr-3"> | |
| Clouds blocking parts of the Moon | |
| </label> | |
| </div> | |
| <button onclick="checkAnswer('question1', 'C')" class="mt-4 bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-4 rounded-lg transition"> | |
| Check Answer | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Video Experiment Section --> | |
| <div class="bg-white rounded-xl shadow-lg p-6 mb-12"> | |
| <h2 class="text-2xl font-bold text-indigo-800 mb-6 flex items-center"> | |
| <i class="fas fa-video mr-3 text-red-500"></i> Science in Action | |
| </h2> | |
| <div class="experiment-video rounded-lg overflow-hidden mb-4"> | |
| <!-- Placeholder for video, would be replaced with actual embedded video --> | |
| <div class="w-full h-full flex items-center justify-center bg-gradient-to-r from-purple-400 to-blue-500"> | |
| <div class="text-center"> | |
| <i class="fas fa-play-circle text-white text-5xl mb-3"></i> | |
| <p class="text-white font-bold">Mentos and Soda Eruption</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-indigo-50 rounded-lg p-4"> | |
| <h3 class="font-bold text-indigo-800 mb-2">What's happening here?</h3> | |
| <p class="text-gray-700 mb-3">When Mentos candies are dropped into soda, the rough surface of the candy provides countless sites for carbon dioxide bubbles to form rapidly. This causes a dramatic eruption as the gas leaves the liquid.</p> | |
| <button class="text-indigo-600 hover:text-indigo-800 font-medium flex items-center"> | |
| Try this experiment (with adult supervision) <i class="fas fa-arrow-right ml-2"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Science News Section --> | |
| <div class="bg-gradient-to-r from-blue-600 to-indigo-700 rounded-xl shadow-lg p-6 text-white"> | |
| <h2 class="text-2xl font-bold mb-6 flex items-center"> | |
| <i class="fas fa-newspaper mr-3 text-yellow-300"></i> Cool Science News | |
| </h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="bg-white bg-opacity-10 rounded-lg p-5 backdrop-filter backdrop-blur-sm"> | |
| <h3 class="font-bold text-lg mb-2">New Dinosaur Species Discovered</h3> | |
| <p class="text-sm opacity-90 mb-3">Paleontologists have found a previously unknown dinosaur in Argentina that had tiny arms like T. rex but hunted with powerful legs.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-xs opacity-75">July 12, 2023</span> | |
| <button class="text-xs bg-white bg-opacity-20 hover:bg-opacity-30 px-3 py-1 rounded-full transition"> | |
| Read More | |
| </button> | |
| </div> | |
| </div> | |
| <div class="bg-white bg-opacity-10 rounded-lg p-5 backdrop-filter backdrop-blur-sm"> | |
| <h3 class="font-bold text-lg mb-2">Secrets of Spider Silk Strength</h3> | |
| <p class="text-sm opacity-90 mb-3">Scientists have unlocked why spider silk is so strong relative to its weight, which could lead to new super-strong materials.</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-xs opacity-75">June 28, 2023</span> | |
| <button class="text-xs bg-white bg-opacity-20 hover:bg-opacity-30 px-3 py-1 rounded-full transition"> | |
| Read More | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Science Joke Section --> | |
| <div class="bg-white rounded-xl shadow-lg p-6 mt-12 text-center"> | |
| <i class="fas fa-microscope text-4xl text-indigo-600 mb-4"></i> | |
| <h3 class="text-xl font-bold text-indigo-800 mb-2">Science Joke of the Day</h3> | |
| <p class="text-gray-700 mb-4" id="scienceJoke">Why don't scientists trust atoms?</p> | |
| <button onclick="revealPunchline()" class="bg-indigo-100 text-indigo-700 hover:bg-indigo-200 font-medium py-2 px-4 rounded-lg transition"> | |
| Tell me! | |
| </button> | |
| <p class="text-gray-600 mt-4 hidden" id="punchline">Because they make up everything!</p> | |
| </div> | |
| </div> | |
| <!-- Experiment Modal --> | |
| <div id="experimentModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-xl max-w-md w-full mx-4 max-h-[90vh] overflow-y-auto"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 id="experimentTitle" class="text-xl font-bold text-emerald-800"></h3> | |
| <button onclick="closeModal()" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div id="experimentContent" class="text-gray-700"> | |
| <!-- Content will be loaded here --> | |
| </div> | |
| <div class="mt-6 pt-4 border-t border-gray-200"> | |
| <p class="text-sm text-gray-500 flex items-center"> | |
| <i class="fas fa-exclamation-triangle text-amber-500 mr-2"></i> | |
| Always perform experiments with adult supervision | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=AARIFSHABIR/7-grade" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |