Spaces:
Running
Running
Please make a website for learning Japanese that is interactive with lots of animations that make it easy and not boring quickly using HTML, CSS, JS code.
9e01f6f verified Download index.html from RefreshBytes/nihongo-ninja-dojo: direct link, hf CLI and curl.
- Browser
- Download file 7.6 kB
-
https://huggingface.co/spaces/RefreshBytes/nihongo-ninja-dojo/resolve/main/index.html
- Command line
-
hf download hf://spaces/RefreshBytes/nihongo-ninja-dojo/index.html
-
curl -L -o index.html https://huggingface.co/spaces/RefreshBytes/nihongo-ninja-dojo/resolve/main/index.html
7.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Nihongo Ninja Dojo - Master Japanese with Fun!</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <link rel="stylesheet" href="style.css"> | |
| <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> | |
| </head> | |
| <body class="min-h-screen flex flex-col"> | |
| <custom-navbar></custom-navbar> | |
| <main class="flex-grow"> | |
| <!-- Hero Section with Vanta.js Animation --> | |
| <section id="hero" class="relative h-screen flex items-center justify-center overflow-hidden"> | |
| <div class="absolute inset-0 z-0" id="vanta-bg"></div> | |
| <div class="relative z-10 text-center text-white px-4"> | |
| <h1 class="text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-fuchsia-400 to-fuchsia-600 bg-clip-text text-transparent"> | |
| 日本語忍者道場 | |
| </h1> | |
| <p class="text-xl md:text-2xl mb-8 max-w-2xl mx-auto"> | |
| Master Japanese like a ninja! Interactive lessons, games, and animations make learning addictive. | |
| </p> | |
| <div class="flex flex-col sm:flex-row gap-4 justify-center"> | |
| <a href="/lessons.html" class="bg-fuchsia-500 hover:bg-fuchsia-600 text-white px-8 py-4 rounded-full font-bold text-lg transition-all duration-300 transform hover:scale-105 shadow-lg"> | |
| <i data-feather="play" class="inline mr-2"></i>Start Learning | |
| </a> | |
| <a href="/quiz.html" class="border-2 border-white hover:bg-white hover:text-fuchsia-500 text-white px-8 py-4 rounded-full font-bold text-lg transition-all duration-300 transform hover:scale-105"> | |
| <i data-feather="award" class="inline mr-2"></i>Take Quiz | |
| </a> | |
| </div> | |
| </div> | |
| <div class="absolute bottom-10 left-1/2 transform -translate-x-1/2 animate-bounce"> | |
| <i data-feather="chevron-down" class="text-white text-2xl"></i> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section class="py-20 bg-gray-50"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-4xl font-bold text-center mb-16 text-gray-800">Why Learn with Ninja Dojo?</h2> | |
| <div class="grid md:grid-cols-3 gap-8"> | |
| <div class="feature-card text-center p-8 bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-500 transform hover:-translate-y-2"> | |
| <div class="w-20 h-20 mx-auto mb-6 bg-fuchsia-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="zap" class="text-fuchsia-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-2xl font-bold mb-4 text-gray-800">Lightning Fast</h3> | |
| <p class="text-gray-600">Learn vocabulary and grammar through rapid-fire interactive exercises.</p> | |
| </div> | |
| <div class="feature-card text-center p-8 bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-500 transform hover:-translate-y-2"> | |
| <div class="w-20 h-20 mx-auto mb-6 bg-fuchsia-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="gamepad" class="text-fuchsia-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-2xl font-bold mb-4 text-gray-800">Game-Based Learning</h3> | |
| <p class="text-gray-600">Earn points, unlock levels, and compete with other ninjas!</p> | |
| </div> | |
| <div class="feature-card text-center p-8 bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-500 transform hover:-translate-y-2"> | |
| <div class="w-20 h-20 mx-auto mb-6 bg-fuchsia-100 rounded-full flex items-center justify-center"> | |
| <i data-feather="trending-up" class="text-fuchsia-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-2xl font-bold mb-4 text-gray-800">Progress Tracking</h3> | |
| <p class="text-gray-600">Watch your skills grow with detailed analytics and achievement badges.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Quick Stats --> | |
| <section class="py-16 bg-gradient-to-r from-fuchsia-500 to-purple-600 text-white"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-8"> | |
| <div class="stat-item"> | |
| <div class="text-4xl font-bold mb-2" id="users-count">0</div> | |
| <div class="text-fuchsia-100">Active Ninjas</div> | |
| </div> | |
| <div class="stat-item"> | |
| <div class="text-4xl font-bold mb-2" id="lessons-count">0</div> | |
| <div class="text-fuchsia-100">Lessons</div> | |
| </div> | |
| <div class="stat-item"> | |
| <div class="text-4xl font-bold mb-2" id="words-count">0</div> | |
| <div class="text-fuchsia-100">Vocabulary Words</div> | |
| </div> | |
| <div class="stat-item"> | |
| <div class="text-4xl font-bold mb-2" id="streak-count">0</div> | |
| <div class="text-fuchsia-100">Day Streak</div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| // Initialize Vanta.js background | |
| VANTA.GLOBE({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0xff00ff, | |
| backgroundColor: 0x0, | |
| size: 1.00 | |
| }); | |
| feather.replace(); | |
| // Animate stats counters | |
| document.addEventListener('DOMContentLoaded', function() { | |
| animateCounter('users-count', 12457, 2000); | |
| animateCounter('lessons-count', 342, 1500); | |
| animateCounter('words-count', 5289, 2500); | |
| animateCounter('streak-count', 89, 1800); | |
| }); | |
| function animateCounter(elementId, target, duration) { | |
| const element = document.getElementById(elementId); | |
| let start = 0; | |
| const increment = target / (duration / 16); | |
| function updateCounter() { | |
| start += increment; | |
| if (start < target) { | |
| element.textContent = Math.floor(start); | |
| requestAnimationFrame(updateCounter); | |
| } else { | |
| element.textContent = target; | |
| } | |
| } | |
| updateCounter(); | |
| } | |
| </script> | |
| <script src="https://deepsite.hf.co/deepsite-badge.js"></script> | |
| </body> | |
| </html> |