index.html

19.06 KB
12/11/2025 13:08
HTML
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>LeafBox Technologies - Holiday Greetings</title>
  <meta name="description" content="LeafBox Technologies wishes you a Merry Christmas with our innovative IT solutions.">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  <style>
    :root {
      --primary-color: #2a7f62;
      --secondary-color: #f8f9fa;
      --accent-color: #d4af37;
      --text-color: #333;
      --light-text: #fff;
      --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      --transition: all 0.3s ease;
    }

    [data-theme="dark"] {
      --primary-color: #3ca57f;
      --secondary-color: #1a1a1a;
      --accent-color: #e5c352;
      --text-color: #f0f0f0;
      --light-text: #333;
      --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background-color: var(--secondary-color);
      color: var(--text-color);
      line-height: 1.6;
      overflow-x: hidden;
      transition: var(--transition);
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Header Styles */
    header {
      position: relative;
      padding: 20px 0;
      z-index: 100;
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      display: flex;
      align-items: center;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
      text-decoration: none;
      transition: var(--transition);
    }

    .logo:hover {
      transform: scale(1.05);
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      margin-right: 10px;
      position: relative;
    }

    .logo-icon::before {
      content: "📦";
      font-size: 2rem;
    }

    .logo-icon::after {
      content: "🎅";
      position: absolute;
      top: -15px;
      right: -10px;
      font-size: 1.2rem;
      transform: rotate(15deg);
    }

    .theme-toggle {
      background: none;
      border: none;
      color: var(--primary-color);
      font-size: 1.5rem;
      cursor: pointer;
      transition: var(--transition);
    }

    .theme-toggle:hover {
      transform: rotate(180deg);
    }

    /* Hero Section */
    .hero {
      padding: 80px 0;
      text-align: center;
      position: relative;
    }

    .hero h1 {
      font-size: 3rem;
      margin-bottom: 20px;
      color: var(--primary-color);
      animation: fadeIn 1s ease-in-out;
    }

    .hero p {
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto 30px;
      animation: fadeIn 1.5s ease-in-out;
    }

    .countdown {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin: 40px 0;
      flex-wrap: wrap;
    }

    .countdown-item {
      background-color: var(--primary-color);
      color: var(--light-text);
      padding: 20px;
      border-radius: 10px;
      min-width: 100px;
      box-shadow: var(--card-shadow);
      transition: var(--transition);
    }

    .countdown-item:hover {
      transform: translateY(-5px);
    }

    .countdown-number {
      font-size: 2.5rem;
      font-weight: 700;
      display: block;
    }

    .countdown-label {
      font-size: 0.9rem;
      text-transform: uppercase;
    }

    /* About Section */
    .about {
      padding: 80px 0;
      background-color: rgba(42, 127, 98, 0.05);
      position: relative;
    }

    .about::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    }

    .section-title {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 20px;
      color: var(--primary-color);
      position: relative;
      display: inline-block;
      width: 100%;
    }

    .section-title::after {
      content: "❄️";
      position: absolute;
      right: calc(50% + 120px);
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.5rem;
    }

    .section-title::before {
      content: "❄️";
      position: absolute;
      left: calc(50% + 120px);
      top: 50%;
      transform: translateY(-50%);
      font-size: 1.5rem;
    }

    .about-content {
      display: flex;
      align-items: center;
      gap: 40px;
      flex-wrap: wrap;
    }

    .about-text {
      flex: 1;
      min-width: 300px;
    }

    .about-icon {
      flex: 1;
      min-width: 300px;
      text-align: center;
      font-size: 8rem;
      opacity: 0.8;
    }

    /* Services Section */
    .services {
      padding: 80px 0;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 50px;
    }

    .service-card {
      background-color: var(--light-text);
      border-radius: 15px;
      padding: 30px;
      box-shadow: var(--card-shadow);
      transition: var(--transition);
      position: relative;
      overflow: hidden;
    }

    .service-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    }

    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .service-icon {
      font-size: 3rem;
      margin-bottom: 20px;
      display: block;
    }

    .service-title {
      font-size: 1.5rem;
      margin-bottom: 15px;
      color: var(--primary-color);
    }

    .service-description {
      margin-bottom: 20px;
    }

    .service-link {
      color: var(--primary-color);
      text-decoration: none;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      transition: var(--transition);
    }

    .service-link:hover {
      transform: translateX(5px);
    }

    .service-link::after {
      content: "→";
      margin-left: 5px;
      transition: var(--transition);
    }

    /* Contact Section */
    .contact {
      padding: 80px 0;
      background-color: rgba(42, 127, 98, 0.05);
      text-align: center;
    }

    .contact-message {
      font-size: 1.5rem;
      margin-bottom: 30px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    .contact-form {
      max-width: 600px;
      margin: 0 auto;
    }

    .form-group {
      margin-bottom: 20px;
      text-align: left;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-family: inherit;
      font-size: 1rem;
      background-color: var(--light-text);
      color: var(--text-color);
      transition: var(--transition);
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 3px rgba(42, 127, 98, 0.2);
    }

    .btn {
      display: inline-block;
      background-color: var(--primary-color);
      color: var(--light-text);
      padding: 12px 30px;
      border: none;
      border-radius: 50px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
      text-decoration: none;
    }

    .btn:hover {
      background-color: var(--accent-color);
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    /* Footer */
    footer {
      padding: 40px 0;
      background-color: var(--primary-color);
      color: var(--light-text);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .footer-content {
      position: relative;
      z-index: 2;
    }

    .social-links {
      margin: 20px 0;
    }

    .social-links a {
      color: var(--light-text);
      font-size: 1.5rem;
      margin: 0 10px;
      transition: var(--transition);
    }

    .social-links a:hover {
      color: var(--accent-color);
      transform: translateY(-5px);
    }

    /* Snow Animation */
    #snow-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
      opacity: 0.8;
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 2rem;
      }

      .section-title {
        font-size: 2rem;
      }

      .section-title::before,
      .section-title::after {
        display: none;
      }

      .countdown-item {
        min-width: 80px;
        padding: 15px;
      }

      .countdown-number {
        font-size: 2rem;
      }
    }
  </style>
</head>

<body>
  <canvas id="snow-canvas"></canvas>

  <header>
    <div class="container">
      <div class="header-content">
        <a href="#" class="logo">
          <div class="logo-icon"></div>
          LeafBox Technologies
        </a>
        <button class="theme-toggle" id="theme-toggle">🌙</button>
      </div>
    </div>
  </header>

  <main>
    <section class="hero">
      <div class="container">
        <h1>Merry Christmas from LeafBox Technologies</h1>
        <p>Celebrating innovation, technology, and the spirit of the holidays. May your season be filled with joy, peace, and cutting-edge solutions.</p>

        <div class="countdown" id="countdown">
          <div class="countdown-item">
            <span class="countdown-number" id="days">00</span>
            <span class="countdown-label">Days</span>
          </div>
          <div class="countdown-item">
            <span class="countdown-number" id="hours">00</span>
            <span class="countdown-label">Hours</span>
          </div>
          <div class="countdown-item">
            <span class="countdown-number" id="minutes">00</span>
            <span class="countdown-label">Minutes</span>
          </div>
          <div class="countdown-item">
            <span class="countdown-number" id="seconds">00</span>
            <span class="countdown-label">Seconds</span>
          </div>
        </div>
      </div>
    </section>

    <section class="about">
      <div class="container">
        <h2 class="section-title">About LeafBox Technologies</h2>
        <div class="about-content">
          <div class="about-text">
            <p>LeafBox Technologies is a forward-thinking IT company dedicated to crafting innovative digital solutions that empower businesses to thrive in the modern landscape. Our team of experts combines technical excellence with creative problem-solving to deliver tailored services that drive growth and efficiency.</p>
            <p>This holiday season, we're grateful for our partners, clients, and team members who make our journey meaningful. We remain committed to pushing boundaries and creating technology that makes a difference.</p>
          </div>
          <div class="about-icon">🌲</div>
        </div>
      </div>
    </section>

    <section class="services">
      <div class="container">
        <h2 class="section-title">Our Services</h2>
        <div class="services-grid">
          <div class="service-card">
            <span class="service-icon">🎁</span>
            <h3 class="service-title">Custom Software Development</h3>
            <p class="service-description">Tailored software solutions designed to meet your unique business needs and drive digital transformation.</p>
            <a href="#" class="service-link">Learn More</a>
          </div>
          <div class="service-card">
            <span class="service-icon">⭐</span>
            <h3 class="service-title">Cloud Solutions</h3>
            <p class="service-description">Scalable and secure cloud infrastructure that enables your business to adapt and grow with confidence.</p>
            <a href="#" class="service-link">Learn More</a>
          </div>
          <div class="service-card">
            <span class="service-icon">❄️</span>
            <h3 class="service-title">Cybersecurity</h3>
            <p class="service-description">Comprehensive security measures to protect your digital assets and ensure peace of mind.</p>
            <a href="#" class="service-link">Learn More</a>
          </div>
        </div>
      </div>
    </section>

    <section class="contact">
      <div class="container">
        <h2 class="section-title">Holiday Greetings</h2>
        <p class="contact-message">Wishing you innovation and joy this holiday season! Let's connect in the new year to explore how LeafBox Technologies can elevate your business.</p>
        <form class="contact-form" id="contact-form">
          <div class="form-group">
            <label for="name">Your Name</label>
            <input type="text" id="name" name="name" required>
          </div>
          <div class="form-group">
            <label for="email">Your Email</label>
            <input type="email" id="email" name="email" required>
          </div>
          <div class="form-group">
            <label for="message">Message</label>
            <textarea id="message" name="message" rows="5" required></textarea>
          </div>
          <button type="submit" class="btn">Send Holiday Wishes</button>
        </form>
      </div>
    </section>
  </main>

  <footer>
    <div class="footer-content">
      <div class="container">
        <div class="social-links">
          <a href="#">📧</a>
          <a href="#">💼</a>
          <a href="#">🐦</a>
          <a href="#">📷</a>
        </div>
        <p>&copy; 2023 LeafBox Technologies. All rights reserved. Merry Christmas and Happy New Year!</p>
      </div>
    </div>
  </footer>

  <script>
    // Snow Animation
    const canvas = document.getElementById('snow-canvas');
    const ctx = canvas.getContext('2d');

    canvas.width = window.innerWidth;
    canvas.height = window.innerHeight;

    const snowflakes = [];
    const maxSnowflakes = 100;

    class Snowflake {
      constructor() {
        this.x = Math.random() * canvas.width;
        this.y = Math.random() * canvas.height;
        this.radius = Math.random() * 3 + 1;
        this.speed = Math.random() * 1 + 0.5;
        this.wind = Math.random() * 0.5 - 0.25;
        this.opacity = Math.random() * 0.5 + 0.3;
      }

      update() {
        this.y += this.speed;
        this.x += this.wind;

        if (this.y > canvas.height) {
          this.y = 0;
          this.x = Math.random() * canvas.width;
        }

        if (this.x > canvas.width) {
          this.x = 0;
        } else if (this.x < 0) {
          this.x = canvas.width;
        }
      }

      draw() {
        ctx.beginPath();
        ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
        ctx.fillStyle = `rgba(255, 255, 255, ${this.opacity})`;
        ctx.fill();
        ctx.closePath();
      }
    }

    function initSnowflakes() {
      for (let i = 0; i < maxSnowflakes; i++) {
        snowflakes.push(new Snowflake());
      }
    }

    function animateSnow() {
      ctx.clearRect(0, 0, canvas.width, canvas.height);

      snowflakes.forEach(snowflake => {
        snowflake.update();
        snowflake.draw();
      });

      requestAnimationFrame(animateSnow);
    }

    initSnowflakes();
    animateSnow();

    window.addEventListener('resize', () => {
      canvas.width = window.innerWidth;
      canvas.height = window.innerHeight;
    });

    // Countdown Timer
    function updateCountdown() {
      const christmas = new Date('December 25, 2023 00:00:00').getTime();
      const now = new Date().getTime();
      const timeLeft = christmas - now;

      const days = Math.floor(timeLeft / (1000 * 60 * 60 * 24));
      const hours = Math.floor((timeLeft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
      const minutes = Math.floor((timeLeft % (1000 * 60 * 60)) / (1000 * 60));
      const seconds = Math.floor((timeLeft % (1000 * 60)) / 1000);

      document.getElementById('days').textContent = days.toString().padStart(2, '0');
      document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
      document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
      document.getElementById('seconds').textContent = seconds.toString().padStart(2, '0');

      if (timeLeft < 0) {
        document.getElementById('countdown').innerHTML = "<div class='countdown-item'><span class='countdown-number'>🎄</span><span class='countdown-label'>Merry Christmas!</span></div>";
      }
    }

    setInterval(updateCountdown, 1000);
    updateCountdown();

    // Theme Toggle
    const themeToggle = document.getElementById('theme-toggle');
    const body = document.body;

    // Check for saved theme preference
    const currentTheme = localStorage.getItem('theme') || 'light';
    if (currentTheme === 'dark') {
      body.setAttribute('data-theme', 'dark');
      themeToggle.textContent = '☀️';
    }

    themeToggle.addEventListener('click', () => {
      const theme = body.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
      body.setAttribute('data-theme', theme);
      themeToggle.textContent = theme === 'dark' ? '☀️' : '🌙';
      localStorage.setItem('theme', theme);
    });

    // Contact Form
    const contactForm = document.getElementById('contact-form');

    contactForm.addEventListener('submit', (e) => {
      e.preventDefault();

      // Get form values
      const name = document.getElementById('name').value;
      const email = document.getElementById('email').value;
      const message = document.getElementById('message').value;

      // Create success message
      const successMessage = document.createElement('div');
      successMessage.style.padding = '20px';
      successMessage.style.marginTop = '20px';
      successMessage.style.backgroundColor = 'var(--primary-color)';
      successMessage.style.color = 'var(--light-text)';
      successMessage.style.borderRadius = '8px';
      successMessage.style.textAlign = 'center';
      successMessage.textContent = `Thank you, ${name}! Your holiday wishes have been received. We'll get back to you soon.`;

      // Replace form with success message
      contactForm.parentNode.replaceChild(successMessage, contactForm);

      // Log form data (in a real application, this would be sent to a server)
      console.log('Form submitted:', {name, email, message});
    });

    // Add hover effect to service cards
    const serviceCards = document.querySelectorAll('.service-card');

    serviceCards.forEach(card => {
      card.addEventListener('mouseenter', () => {
        card.style.transform = 'translateY(-10px) scale(1.02)';
      });

      card.addEventListener('mouseleave', () => {
        card.style.transform = 'translateY(0) scale(1)';
      });
    });
  </script>
</body>

</html>