Download index.html from AdamYS19/quickmafs: direct link, hf CLI and curl.
- Browser
- Download file 39.3 kB
-
https://huggingface.co/spaces/AdamYS19/quickmafs/resolve/main/index.html
- Command line
-
hf download hf://spaces/AdamYS19/quickmafs/index.html
-
curl -L -o index.html https://huggingface.co/spaces/AdamYS19/quickmafs/resolve/main/index.html
39.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>QuickMaths GCSE | Fast, Effective Maths Tutoring</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> | |
| .hero-bg { | |
| background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%); | |
| } | |
| .editable { | |
| outline: 1px dashed rgba(59, 130, 246, 0.3); | |
| min-height: 20px; | |
| } | |
| .editable:focus { | |
| outline: 2px solid #3b82f6; | |
| background-color: rgba(59, 130, 246, 0.05); | |
| } | |
| .video-container { | |
| position: relative; | |
| padding-bottom: 56.25%; | |
| height: 0; | |
| overflow: hidden; | |
| } | |
| .video-container iframe { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body class="font-sans bg-gray-50"> | |
| <!-- Admin Bar (Visible when editMode=true) --> | |
| <div id="adminBar" class="bg-gray-800 text-white p-2 hidden"> | |
| <div class="container mx-auto flex justify-between items-center"> | |
| <span class="font-bold">Edit Mode</span> | |
| <div> | |
| <button id="saveBtn" class="bg-green-600 px-3 py-1 rounded mr-2"> | |
| <i class="fas fa-save mr-1"></i>Save Changes | |
| </button> | |
| <button id="editToggle" class="bg-blue-600 px-3 py-1 rounded"> | |
| <i class="fas fa-times mr-1"></i>Exit Edit Mode | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-sm sticky top-0 z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i class="fas fa-calculator text-blue-600 text-2xl mr-2"></i> | |
| <span class="text-xl font-bold text-gray-900 editable" data-id="site-title">QuickMaths GCSE</span> | |
| </div> | |
| </div> | |
| <div class="hidden md:flex items-center space-x-8"> | |
| <a href="#about" class="text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">About</a> | |
| <a href="#method" class="text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">Method</a> | |
| <a href="#topics" class="text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">Topics</a> | |
| <a href="#videos" class="text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">Videos</a> | |
| <a href="#contact" class="bg-blue-600 text-white px-4 py-2 rounded-md font-medium hover:bg-blue-700">Book Session</a> | |
| </div> | |
| <div class="md:hidden flex items-center"> | |
| <button id="mobileMenuBtn" class="text-gray-500 hover:text-gray-900 focus:outline-none"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile Menu --> | |
| <div id="mobileMenu" class="hidden md:hidden bg-white pb-3 px-4"> | |
| <a href="#about" class="block text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">About</a> | |
| <a href="#method" class="block text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">Method</a> | |
| <a href="#topics" class="block text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">Topics</a> | |
| <a href="#videos" class="block text-gray-700 hover:text-blue-600 px-3 py-2 font-medium">Videos</a> | |
| <a href="#contact" class="block bg-blue-600 text-white px-4 py-2 rounded-md font-medium hover:bg-blue-700 mt-2 text-center">Book Session</a> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <section class="hero-bg text-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 md:py-28"> | |
| <div class="md:flex items-center"> | |
| <div class="md:w-1/2 mb-10 md:mb-0"> | |
| <h1 class="text-4xl md:text-5xl font-bold mb-6 editable" data-id="hero-title">Master GCSE Maths Fast with Our Proven Method</h1> | |
| <p class="text-xl mb-8 opacity-90 editable" data-id="hero-subtitle"> | |
| Learn exactly what you need to know for your exams, with clear explanations and all possible question types covered. | |
| </p> | |
| <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <a href="#contact" class="bg-white text-blue-600 px-6 py-3 rounded-md font-bold text-center hover:bg-opacity-90">Start Learning Today</a> | |
| <a href="#videos" class="border-2 border-white text-white px-6 py-3 rounded-md font-bold text-center hover:bg-white hover:bg-opacity-10">Watch Free Videos</a> | |
| </div> | |
| </div> | |
| <div class="md:w-1/2 flex justify-center"> | |
| <div class="relative"> | |
| <div class="w-64 h-64 md:w-80 md:h-80 bg-white bg-opacity-20 rounded-full absolute -top-6 -left-6"></div> | |
| <div class="w-64 h-64 md:w-80 md:h-80 bg-white bg-opacity-10 rounded-full absolute -bottom-6 -right-6"></div> | |
| <img src="https://images.unsplash.com/photo-1544717305-2782549b5136?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80" | |
| alt="Tutor helping student" | |
| class="relative rounded-lg shadow-2xl w-full max-w-md border-4 border-white editable-img" | |
| data-id="hero-image"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- About Section --> | |
| <section id="about" class="py-16 bg-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-4 editable" data-id="about-title">Why Our Method Works</h2> | |
| <p class="text-xl text-gray-600 max-w-3xl mx-auto editable" data-id="about-subtitle"> | |
| We focus on teaching the most efficient methods to solve every type of GCSE Maths question. | |
| </p> | |
| </div> | |
| <div class="grid md:grid-cols-3 gap-8"> | |
| <div class="bg-gray-50 p-8 rounded-xl"> | |
| <div class="w-14 h-14 bg-blue-600 bg-opacity-10 rounded-full flex items-center justify-center mb-6"> | |
| <i class="fas fa-bolt text-blue-600 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="feature1-title">Quick Methods</h3> | |
| <p class="text-gray-600 editable" data-id="feature1-text"> | |
| Learn shortcuts and techniques that save time in exams without sacrificing accuracy. | |
| </p> | |
| </div> | |
| <div class="bg-gray-50 p-8 rounded-xl"> | |
| <div class="w-14 h-14 bg-green-600 bg-opacity-10 rounded-full flex items-center justify-center mb-6"> | |
| <i class="fas fa-check-double text-green-600 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="feature2-title">All Question Types</h3> | |
| <p class="text-gray-600 editable" data-id="feature2-text"> | |
| We cover every possible variation of each question type so nothing surprises you in the exam. | |
| </p> | |
| </div> | |
| <div class="bg-gray-50 p-8 rounded-xl"> | |
| <div class="w-14 h-14 bg-yellow-500 bg-opacity-10 rounded-full flex items-center justify-center mb-6"> | |
| <i class="fas fa-brain text-yellow-500 text-2xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="feature3-title">Understanding First</h3> | |
| <p class="text-gray-600 editable" data-id="feature3-text"> | |
| We explain the "why" behind methods so you can apply them to any question, not just memorized examples. | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Method Section --> | |
| <section id="method" class="py-16 bg-gray-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="md:flex items-center"> | |
| <div class="md:w-1/2 mb-10 md:mb-0"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-6 editable" data-id="method-title">Our Unique Teaching Approach</h2> | |
| <p class="text-lg text-gray-600 mb-6 editable" data-id="method-text1"> | |
| We break down each topic into its fundamental components, then build up to solving full exam questions. | |
| This ensures you understand both the concepts and their practical application. | |
| </p> | |
| <p class="text-lg text-gray-600 mb-6 editable" data-id="method-text2"> | |
| For every topic, we teach: | |
| </p> | |
| <ul class="space-y-3 mb-8"> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-600 mr-2"></i> | |
| <span class="editable" data-id="method-list1">The fastest solving methods</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-600 mr-2"></i> | |
| <span class="editable" data-id="method-list2">All possible question variations</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-600 mr-2"></i> | |
| <span class="editable" data-id="method-list3">Common mistakes to avoid</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-check-circle text-green-600 mr-2"></i> | |
| <span class="editable" data-id="method-list4">Exam-style practice questions</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="md:w-1/2 pl-12"> | |
| <div class="bg-white p-6 rounded-lg shadow-lg"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-4 editable" data-id="method-box-title">Example Topic Breakdown</h3> | |
| <div class="space-y-4"> | |
| <div> | |
| <h4 class="font-medium text-gray-900 editable" data-id="method-step1">1. Core Concept Explanation</h4> | |
| <p class="text-gray-600 text-sm editable" data-id="method-step1-desc">Understanding the fundamental principle</p> | |
| </div> | |
| <div> | |
| <h4 class="font-medium text-gray-900 editable" data-id="method-step2">2. Basic Application</h4> | |
| <p class="text-gray-600 text-sm editable" data-id="method-step2-desc">Simple questions to practice the concept</p> | |
| </div> | |
| <div> | |
| <h4 class="font-medium text-gray-900 editable" data-id="method-step3">3. Variations & Extensions</h4> | |
| <p class="text-gray-600 text-sm editable" data-id="method-step3-desc">All the ways this concept appears in exams</p> | |
| </div> | |
| <div> | |
| <h4 class="font-medium text-gray-900 editable" data-id="method-step4">4. Exam-Style Practice</h4> | |
| <p class="text-gray-600 text-sm editable" data-id="method-step4-desc">Full questions with mark scheme breakdown</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Topics Section --> | |
| <section id="topics" class="py-16 bg-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-4 editable" data-id="topics-title">GCSE Maths Topics Covered</h2> | |
| <p class="text-xl text-gray-600 max-w-3xl mx-auto editable" data-id="topics-subtitle"> | |
| We provide comprehensive coverage of all GCSE Maths topics across all exam boards. | |
| </p> | |
| </div> | |
| <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <div class="border border-gray-200 rounded-lg p-6"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="topic1-title">Number</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic1-item1">Fractions, decimals, percentages</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic1-item2">Ratio & proportion</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic1-item3">Indices & surds</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic1-item4">Standard form</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="border border-gray-200 rounded-lg p-6"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="topic2-title">Algebra</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic2-item1">Expressions & equations</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic2-item2">Sequences</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic2-item3">Graphs</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic2-item4">Quadratic equations</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="border border-gray-200 rounded-lg p-6"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="topic3-title">Geometry</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic3-item1">Area & volume</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic3-item2">Circle theorems</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic3-item3">Trigonometry</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic3-item4">Vectors</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="border border-gray-200 rounded-lg p-6"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="topic4-title">Probability & Statistics</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic4-item1">Probability basics</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic4-item2">Tree diagrams</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic4-item3">Data representation</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic4-item4">Statistical measures</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="border border-gray-200 rounded-lg p-6"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="topic5-title">Exam Techniques</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic5-item1">Time management</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic5-item2">Answer presentation</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic5-item3">Common pitfalls</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-600 mt-1 mr-2"></i> | |
| <span class="editable" data-id="topic5-item4">Mark scheme analysis</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="border border-gray-200 rounded-lg p-6 bg-blue-50"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-3 editable" data-id="topic6-title">Custom Topics</h3> | |
| <p class="text-gray-600 mb-4 editable" data-id="topic6-text"> | |
| Need help with something specific? We can create custom lessons for any area you're struggling with. | |
| </p> | |
| <a href="#contact" class="inline-block bg-blue-600 text-white px-4 py-2 rounded-md font-medium hover:bg-blue-700 editable" data-id="topic6-button">Request Custom Lesson</a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Videos Section --> | |
| <section id="videos" class="py-16 bg-gray-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-4 editable" data-id="videos-title">Free Video Lessons</h2> | |
| <p class="text-xl text-gray-600 max-w-3xl mx-auto editable" data-id="videos-subtitle"> | |
| Watch our YouTube channel for free tutorials covering key GCSE Maths topics. | |
| </p> | |
| </div> | |
| <div class="mb-12 text-center"> | |
| <div class="inline-block"> | |
| <a id="youtube-channel-link" href="https://youtube.com" target="_blank" class="bg-red-600 text-white px-6 py-3 rounded-md font-bold hover:bg-red-700 inline-flex items-center editable" data-id="youtube-button"> | |
| <i class="fab fa-youtube mr-2 text-xl"></i> Visit Our YouTube Channel | |
| </a> | |
| </div> | |
| </div> | |
| <div class="grid md:grid-cols-2 gap-8"> | |
| <!-- Video 1 --> | |
| <div class="bg-white p-4 rounded-lg shadow"> | |
| <div class="video-container"> | |
| <iframe id="video1" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| <div class="mt-4"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-2 editable" data-id="video1-title">Algebra Basics Explained</h3> | |
| <p class="text-gray-600 editable" data-id="video1-desc"> | |
| Learn the fundamentals of algebra with clear examples and practice questions. | |
| </p> | |
| </div> | |
| </div> | |
| <!-- Video 2 --> | |
| <div class="bg-white p-4 rounded-lg shadow"> | |
| <div class="video-container"> | |
| <iframe id="video2" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe> | |
| </div> | |
| <div class="mt-4"> | |
| <h3 class="text-xl font-bold text-gray-900 mb-2 editable" data-id="video2-title">Geometry Shortcuts</h3> | |
| <p class="text-gray-600 editable" data-id="video2-desc"> | |
| Time-saving techniques for solving geometry problems quickly and accurately. | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-12 text-center"> | |
| <a id="more-videos-link" href="https://youtube.com" target="_blank" class="text-blue-600 font-medium hover:underline editable" data-id="more-videos-text"> | |
| View all video lessons on our YouTube channel | |
| </a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Contact Section --> | |
| <section id="contact" class="py-16 bg-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="lg:grid lg:grid-cols-2 lg:gap-8"> | |
| <div class="mb-12 lg:mb-0"> | |
| <h2 class="text-3xl font-bold text-gray-900 mb-6 editable" data-id="contact-title">Book a Tutoring Session</h2> | |
| <p class="text-lg text-gray-600 mb-8 editable" data-id="contact-subtitle"> | |
| Ready to improve your GCSE Maths grade? Contact us to schedule a session or ask any questions. | |
| </p> | |
| <div class="space-y-6"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <i class="fas fa-envelope text-blue-600 text-xl"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-gray-900 font-medium editable" data-id="contact-email-label">Email</p> | |
| <p class="text-gray-600 editable" data-id="contact-email">contact@quickmathsgcse.com</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <i class="fas fa-phone-alt text-blue-600 text-xl"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-gray-900 font-medium editable" data-id="contact-phone-label">Phone</p> | |
| <p class="text-gray-600 editable" data-id="contact-phone">+44 1234 567890</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <i class="fas fa-clock text-blue-600 text-xl"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <p class="text-gray-900 font-medium editable" data-id="contact-hours-label">Availability</p> | |
| <p class="text-gray-600 editable" data-id="contact-hours"> | |
| Monday-Friday: 4pm-8pm<br> | |
| Saturday: 10am-4pm | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 rounded-lg p-8"> | |
| <form id="contactForm"> | |
| <div class="grid grid-cols-1 gap-6"> | |
| <div> | |
| <label for="name" class="block text-sm font-medium text-gray-700 editable" data-id="form-name-label">Your Name</label> | |
| <input type="text" id="name" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-600 focus:border-blue-600"> | |
| </div> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700 editable" data-id="form-email-label">Email Address</label> | |
| <input type="email" id="email" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-600 focus:border-blue-600"> | |
| </div> | |
| <div> | |
| <label for="service" class="block text-sm font-medium text-gray-700 editable" data-id="form-service-label">Service Interested In</label> | |
| <select id="service" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-600 focus:border-blue-600"> | |
| <option class="editable" data-id="form-option1">One-to-One Tutoring</option> | |
| <option class="editable" data-id="form-option2">Group Session</option> | |
| <option class="editable" data-id="form-option3">Exam Crash Course</option> | |
| <option class="editable" data-id="form-option4">Custom Topic Request</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="message" class="block text-sm font-medium text-gray-700 editable" data-id="form-message-label">Your Message</label> | |
| <textarea id="message" rows="4" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-600 focus:border-blue-600"></textarea> | |
| </div> | |
| <div> | |
| <button type="submit" class="w-full bg-blue-600 text-white py-3 px-4 rounded-md font-medium hover:bg-blue-700 editable" data-id="form-submit-button"> | |
| Send Message | |
| </button> | |
| </div> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 text-white py-12"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="grid md:grid-cols-3 gap-8"> | |
| <div> | |
| <h3 class="text-lg font-bold mb-4 editable" data-id="footer-title">QuickMaths GCSE</h3> | |
| <p class="text-gray-400 editable" data-id="footer-about"> | |
| Fast, effective GCSE Maths tutoring focused on exam success. | |
| </p> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-bold mb-4 editable" data-id="footer-links-title">Quick Links</h3> | |
| <ul class="space-y-2"> | |
| <li><a href="#about" class="text-gray-400 hover:text-white">About</a></li> | |
| <li><a href="#method" class="text-gray-400 hover:text-white">Method</a></li> | |
| <li><a href="#topics" class="text-gray-400 hover:text-white">Topics</a></li> | |
| <li><a href="#videos" class="text-gray-400 hover:text-white">Videos</a></li> | |
| <li><a href="#contact" class="text-gray-400 hover:text-white">Contact</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-bold mb-4 editable" data-id="footer-social-title">Connect With Us</h3> | |
| <div class="flex space-x-6"> | |
| <a id="footer-yt-link" href="https://youtube.com" class="text-gray-400 hover:text-white text-xl" target="_blank"> | |
| <i class="fab fa-youtube"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white text-xl"> | |
| <i class="fab fa-instagram"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white text-xl"> | |
| <i class="fab fa-twitter"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white text-xl"> | |
| <i class="fab fa-facebook"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-gray-400 editable" data-id="footer-copyright"> | |
| © 2023 QuickMaths GCSE. All rights reserved. | |
| </p> | |
| <div class="flex space-x-6 mt-4 md:mt-0"> | |
| <a href="#" class="text-gray-400 hover:text-white editable" data-id="footer-privacy">Privacy Policy</a> | |
| <a href="#" class="text-gray-400 hover:text-white editable" data-id="footer-terms">Terms of Service</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <!-- Edit Mode Toggle Button --> | |
| <button id="editModeBtn" class="fixed bottom-6 right-6 bg-blue-600 text-white p-3 rounded-full shadow-lg hover:bg-blue-700"> | |
| <i class="fas fa-edit text-xl"></i> | |
| </button> | |
| <script> | |
| // Edit Mode Functionality | |
| let editMode = false; | |
| const editModeBtn = document.getElementById('editModeBtn'); | |
| const editToggle = document.getElementById('editToggle'); | |
| const adminBar = document.getElementById('adminBar'); | |
| const saveBtn = document.getElementById('saveBtn'); | |
| // Toggle edit mode | |
| function toggleEditMode() { | |
| editMode = !editMode; | |
| document.querySelectorAll('.editable').forEach(el => { | |
| el.contentEditable = editMode; | |
| el.classList.toggle('editable-active', editMode); | |
| }); | |
| adminBar.classList.toggle('hidden', !editMode); | |
| if (editMode) { | |
| editModeBtn.innerHTML = '<i class="fas fa-check text-xl"></i>'; | |
| editModeBtn.classList.add('bg-green-600', 'hover:bg-green-700'); | |
| editModeBtn.classList.remove('bg-blue-600', 'hover:bg-blue-700'); | |
| } else { | |
| editModeBtn.innerHTML = '<i class="fas fa-edit text-xl"></i>'; | |
| editModeBtn.classList.add('bg-blue-600', 'hover:bg-blue-700'); | |
| editModeBtn.classList.remove('bg-green-600', 'hover:bg-green-700'); | |
| } | |
| } | |
| // Save content to localStorage | |
| function saveContent() { | |
| const contentData = {}; | |
| document.querySelectorAll('[data-id]').forEach(el => { | |
| contentData[el.dataset.id] = el.innerHTML; | |
| }); | |
| localStorage.setItem('quickmathsContent', JSON.stringify(contentData)); | |
| alert('Changes saved successfully!'); | |
| } | |
| // Load content from localStorage | |
| function loadContent() { | |
| const savedContent = localStorage.getItem('quickmathsContent'); | |
| if (savedContent) { | |
| const contentData = JSON.parse(savedContent); | |
| for (const [id, content] of Object.entries(contentData)) { | |
| const el = document.querySelector(`[data-id="${id}"]`); | |
| if (el) el.innerHTML = content; | |
| } | |
| } | |
| // Load YouTube channel link from localStorage or prompt for it | |
| let ytChannel = localStorage.getItem('youtubeChannel') || 'https://youtube.com'; | |
| document.getElementById('youtube-channel-link').href = ytChannel; | |
| document.getElementById('footer-yt-link').href = ytChannel; | |
| document.getElementById('more-videos-link').href = ytChannel; | |
| // Load video URLs from localStorage | |
| const video1Url = localStorage.getItem('video1Url') || 'https://www.youtube.com/embed/dQw4w9WgXcQ'; | |
| document.getElementById('video1').src = video1Url; | |
| const video2Url = localStorage.getItem('video2Url') || 'https://www.youtube.com/embed/dQw4w9WgXcQ'; | |
| document.getElementById('video2').src = video2Url; | |
| } | |
| // Set YouTube channel | |
| function setYouTubeChannel() { | |
| const channelUrl = prompt('Enter your YouTube channel URL:', localStorage.getItem('youtubeChannel') || 'https://youtube.com'); | |
| if (channelUrl) { | |
| localStorage.setItem('youtubeChannel', channelUrl); | |
| document.getElementById('youtube-channel-link').href = channelUrl; | |
| document.getElementById('footer-yt-link').href = channelUrl; | |
| document.getElementById('more-videos-link').href = channelUrl; | |
| } | |
| } | |
| // Set video URLs | |
| function setVideoUrl(videoNum) { | |
| const currentUrl = localStorage.getItem(`video${videoNum}Url`) || 'https://www.youtube.com/embed/dQw4w9WgXcQ'; | |
| const newUrl = prompt(`Enter YouTube video URL for Video ${videoNum}:`, currentUrl); | |
| if (newUrl) { | |
| // Convert regular YouTube URL to embed URL if needed | |
| let embedUrl = newUrl; | |
| if (newUrl.includes('youtube.com/watch?v=')) { | |
| const videoId = newUrl.split('v=')[1].split('&')[0]; | |
| embedUrl = `https://www.youtube.com/embed/${videoId}`; | |
| } | |
| localStorage.setItem(`video${videoNum}Url`, embedUrl); | |
| document.getElementById(`video${videoNum}`).src = embedUrl; | |
| } | |
| } | |
| // Event listeners | |
| editModeBtn.addEventListener('click', toggleEditMode); | |
| editToggle.addEventListener('click', toggleEditMode); | |
| saveBtn.addEventListener('click', saveContent); | |
| // YouTube channel button in edit mode | |
| adminBar.addEventListener('click', (e) => { | |
| if (e.target.id === 'youtube-channel-link' && editMode) { | |
| e.preventDefault(); | |
| setYouTubeChannel(); | |
| } | |
| }); | |
| // Video edit buttons in edit mode | |
| document.addEventListener('click', (e) => { | |
| if (editMode && e.target.closest('.video-container')) { | |
| e.preventDefault(); | |
| const videoNum = e.target.closest('[id^="video"]').id.replace('video', ''); | |
| setVideoUrl(videoNum); | |
| } | |
| }); | |
| // Mobile menu toggle | |
| document.getElementById('mobileMenuBtn').addEventListener('click', () => { | |
| document.getElementById('mobileMenu').classList.toggle('hidden'); | |
| }); | |
| // Form submission | |
| document.getElementById('contactForm').addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| alert('Thank you for your message! We will get back to you soon.'); | |
| e.target.reset(); | |
| }); | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function (e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| // Load saved content when page loads | |
| window.addEventListener('DOMContentLoaded', loadContent); | |
| </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=AdamYS19/quickmafs" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |