File size: 39,302 Bytes
cbd0904 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 | <!DOCTYPE html>
<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> |