index.html

14.95 KB
14/11/2025 14:00
HTML
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>TechDeals - Best Electronics Deals & Reviews</title>
  <meta name="description" content="Find the best deals on electronics, gadgets, and tech accessories. Compare prices, read reviews, and save money with our curated affiliate links.">
  <link rel="canonical" href="https://techdeals.example.com/">
  <meta name="robots" content="index, follow">

  <!-- Open Graph -->
  <meta property="og:title" content="TechDeals - Best Electronics Deals & Reviews">
  <meta property="og:description" content="Find the best deals on electronics, gadgets, and tech accessories. Compare prices, read reviews, and save money with our curated affiliate links.">
  <meta property="og:image" content="https://techdeals.example.com/assets/images/hero-image.jpg">
  <meta property="og:url" content="https://techdeals.example.com/">
  <meta property="og:type" content="website">

  <!-- Twitter Cards -->
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:title" content="TechDeals - Best Electronics Deals & Reviews">
  <meta name="twitter:description" content="Find the best deals on electronics, gadgets, and tech accessories. Compare prices, read reviews, and save money with our curated affiliate links.">
  <meta name="twitter:image" content="https://techdeals.example.com/assets/images/hero-image.jpg">

  <!-- Favicon -->
  <link rel="icon" type="image/svg+xml" href="assets/images/logo.png">

  <!-- CSS -->
  <link rel="stylesheet" href="assets/css/styles.css">

  <!-- JSON-LD Structured Data -->
  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "WebSite",
        "name": "TechDeals",
        "url": "https://techdeals.example.com/",
        "description": "Find the best deals on electronics, gadgets, and tech accessories.",
        "potentialAction": {
            "@type": "SearchAction",
            "target": "https://techdeals.example.com/search?q={search_term_string}",
            "query-input": "required name=search_term_string"
        }
    }
    </script>

  <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "ItemList",
        "name": "Featured Products",
        "description": "Our top picks for the best electronics deals",
        "numberOfItems": 6,
        "itemListElement": [
            {
                "@type": "Product",
                "position": 1,
                "name": "Wireless Noise-Canceling Headphones",
                "image": "https://techdeals.example.com/assets/images/product-1.jpg",
                "description": "Premium noise-canceling headphones with 30-hour battery life",
                "offers": {
                    "@type": "Offer",
                    "price": "199.99",
                    "priceCurrency": "USD",
                    "availability": "https://schema.org/InStock"
                }
            },
            {
                "@type": "Product",
                "position": 2,
                "name": "Smart Home Security Camera",
                "image": "https://techdeals.example.com/assets/images/product-2.jpg",
                "description": "HD security camera with night vision and motion detection",
                "offers": {
                    "@type": "Offer",
                    "price": "79.99",
                    "priceCurrency": "USD",
                    "availability": "https://schema.org/InStock"
                }
            },
            {
                "@type": "Product",
                "position": 3,
                "name": "4K Webcam for Streaming",
                "image": "https://techdeals.example.com/assets/images/product-3.jpg",
                "description": "Professional 4K webcam with auto-focus and noise reduction",
                "offers": {
                    "@type": "Offer",
                    "price": "129.99",
                    "priceCurrency": "USD",
                    "availability": "https://schema.org/InStock"
                }
            },
            {
                "@type": "Product",
                "position": 4,
                "name": "Portable Power Bank 20000mAh",
                "image": "https://techdeals.example.com/assets/images/product-4.jpg",
                "description": "High-capacity power bank with fast charging technology",
                "offers": {
                    "@type": "Offer",
                    "price": "49.99",
                    "priceCurrency": "USD",
                    "availability": "https://schema.org/InStock"
                }
            },
            {
                "@type": "Product",
                "position": 5,
                "name": "Bluetooth Mechanical Keyboard",
                "image": "https://techdeals.example.com/assets/images/product-5.jpg",
                "description": "Wireless mechanical keyboard with RGB backlighting",
                "offers": {
                    "@type": "Offer",
                    "price": "89.99",
                    "priceCurrency": "USD",
                    "availability": "https://schema.org/InStock"
                }
            },
            {
                "@type": "Product",
                "position": 6,
                "name": "Smart Fitness Tracker",
                "image": "https://techdeals.example.com/assets/images/product-6.jpg",
                "description": "Waterproof fitness tracker with heart rate monitoring",
                "offers": {
                    "@type": "Offer",
                    "price": "69.99",
                    "priceCurrency": "USD",
                    "availability": "https://schema.org/InStock"
                }
            }
        ]
    }
    </script>
</head>

<body>
  <header class="header">
    <div class="container">
      <div class="header-content">
        <div class="logo">
          <a href="index.html">
            <img src="assets/images/logo.png" alt="TechDeals Logo">
          </a>
        </div>
        <nav class="main-nav" id="main-nav">
          <ul>
            <li><a href="index.html" class="active">Home</a></li>
            <li><a href="category.html">Categories</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="contact.html">Contact</a></li>
          </ul>
        </nav>
        <div class="search">
          <form action="search" method="get">
            <input type="search" name="q" placeholder="Search products..." aria-label="Search">
            <button type="submit" aria-label="Submit search">Search</button>
          </form>
        </div>
        <button class="mobile-menu-toggle" id="mobile-menu-toggle" aria-label="Toggle menu">
          <span></span>
          <span></span>
          <span></span>
        </button>
      </div>
    </div>
  </header>

  <main>
    <section class="hero">
      <div class="container">
        <div class="hero-content">
          <h1>Find the Best Tech Deals</h1>
          <p>Compare prices, read reviews, and save money on the latest electronics and gadgets</p>
          <a href="category.html" class="btn btn-primary">Browse Products</a>
        </div>
        <div class="hero-image">
          <img src="assets/images/hero-image.jpg" alt="Featured electronics" width="600" height="400">
        </div>
      </div>
    </section>

    <section class="categories">
      <div class="container">
        <h2>Shop by Category</h2>
        <div class="category-grid">
          <a href="category.html?cat=audio" class="category-card">
            <div class="category-icon">🎧</div>
            <h3>Audio</h3>
            <p>Headphones, speakers, and more</p>
          </a>
          <a href="category.html?cat=smart-home" class="category-card">
            <div class="category-icon">🏠</div>
            <h3>Smart Home</h3>
            <p>Security, automation, and comfort</p>
          </a>
          <a href="category.html?cat=computer" class="category-card">
            <div class="category-icon">💻</div>
            <h3>Computers</h3>
            <p>Laptops, desktops, and accessories</p>
          </a>
          <a href="category.html?cat=mobile" class="category-card">
            <div class="category-icon">📱</div>
            <h3>Mobile</h3>
            <p>Phones, tablets, and accessories</p>
          </a>
          <a href="category.html?cat=gaming" class="category-card">
            <div class="category-icon">🎮</div>
            <h3>Gaming</h3>
            <p>Consoles, games, and gear</p>
          </a>
          <a href="category.html?cat=wearables" class="category-card">
            <div class="category-icon">⌚</div>
            <h3>Wearables</h3>
            <p>Smartwatches and fitness trackers</p>
          </a>
        </div>
      </div>
    </section>

    <section class="featured-products">
      <div class="container">
        <h2>Featured Products</h2>
        <div class="product-grid">
          <article class="product-card">
            <div class="product-image">
              <img src="assets/images/product-1.jpg" alt="Wireless Noise-Canceling Headphones" width="300" height="300" loading="lazy">
            </div>
            <div class="product-info">
              <h3><a href="product.html?id=1">Wireless Noise-Canceling Headphones</a></h3>
              <p class="product-price">$199.99</p>
              <p class="product-description">Premium noise-canceling headphones with 30-hour battery life</p>
              <a href="product.html?id=1" class="btn btn-secondary">View Details</a>
            </div>
          </article>

          <article class="product-card">
            <div class="product-image">
              <img src="assets/images/product-2.jpg" alt="Smart Home Security Camera" width="300" height="300" loading="lazy">
            </div>
            <div class="product-info">
              <h3><a href="product.html?id=2">Smart Home Security Camera</a></h3>
              <p class="product-price">$79.99</p>
              <p class="product-description">HD security camera with night vision and motion detection</p>
              <a href="product.html?id=2" class="btn btn-secondary">View Details</a>
            </div>
          </article>

          <article class="product-card">
            <div class="product-image">
              <img src="assets/images/product-3.jpg" alt="4K Webcam for Streaming" width="300" height="300" loading="lazy">
            </div>
            <div class="product-info">
              <h3><a href="product.html?id=3">4K Webcam for Streaming</a></h3>
              <p class="product-price">$129.99</p>
              <p class="product-description">Professional 4K webcam with auto-focus and noise reduction</p>
              <a href="product.html?id=3" class="btn btn-secondary">View Details</a>
            </div>
          </article>

          <article class="product-card">
            <div class="product-image">
              <img src="assets/images/product-4.jpg" alt="Portable Power Bank 20000mAh" width="300" height="300" loading="lazy">
            </div>
            <div class="product-info">
              <h3><a href="product.html?id=4">Portable Power Bank 20000mAh</a></h3>
              <p class="product-price">$49.99</p>
              <p class="product-description">High-capacity power bank with fast charging technology</p>
              <a href="product.html?id=4" class="btn btn-secondary">View Details</a>
            </div>
          </article>

          <article class="product-card">
            <div class="product-image">
              <img src="assets/images/product-5.jpg" alt="Bluetooth Mechanical Keyboard" width="300" height="300" loading="lazy">
            </div>
            <div class="product-info">
              <h3><a href="product.html?id=5">Bluetooth Mechanical Keyboard</a></h3>
              <p class="product-price">$89.99</p>
              <p class="product-description">Wireless mechanical keyboard with RGB backlighting</p>
              <a href="product.html?id=5" class="btn btn-secondary">View Details</a>
            </div>
          </article>

          <article class="product-card">
            <div class="product-image">
              <img src="assets/images/product-6.jpg" alt="Smart Fitness Tracker" width="300" height="300" loading="lazy">
            </div>
            <div class="product-info">
              <h3><a href="product.html?id=6">Smart Fitness Tracker</a></h3>
              <p class="product-price">$69.99</p>
              <p class="product-description">Waterproof fitness tracker with heart rate monitoring</p>
              <a href="product.html?id=6" class="btn btn-secondary">View Details</a>
            </div>
          </article>
        </div>
        <div class="text-center">
          <a href="category.html" class="btn btn-primary">View All Products</a>
        </div>
      </div>
    </section>

    <section class="newsletter">
      <div class="container">
        <div class="newsletter-content">
          <h2>Get the Best Deals Directly to Your Inbox</h2>
          <p>Subscribe to our newsletter and never miss a great deal on tech products</p>
          <form action="subscribe" method="post">
            <input type="email" name="email" placeholder="Your email address" required>
            <button type="submit" class="btn btn-primary">Subscribe</button>
          </form>
        </div>
      </div>
    </section>
  </main>

  <footer class="footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h3>TechDeals</h3>
          <p>Your trusted source for the best deals on electronics and tech gadgets.</p>
          <div class="social-links">
            <a href="#" aria-label="Facebook">Facebook</a>
            <a href="#" aria-label="Twitter">Twitter</a>
            <a href="#" aria-label="Instagram">Instagram</a>
          </div>
        </div>
        <div class="footer-section">
          <h3>Quick Links</h3>
          <ul>
            <li><a href="index.html">Home</a></li>
            <li><a href="category.html">Categories</a></li>
            <li><a href="about.html">About Us</a></li>
            <li><a href="contact.html">Contact</a></li>
          </ul>
        </div>
        <div class="footer-section">
          <h3>Categories</h3>
          <ul>
            <li><a href="category.html?cat=audio">Audio</a></li>
            <li><a href="category.html?cat=smart-home">Smart Home</a></li>
            <li><a href="category.html?cat=computer">Computers</a></li>
            <li><a href="category.html?cat=mobile">Mobile</a></li>
          </ul>
        </div>
        <div class="footer-section">
          <h3>Legal</h3>
          <ul>
            <li><a href="privacy-policy">Privacy Policy</a></li>
            <li><a href="terms-of-service">Terms of Service</a></li>
            <li><a href="affiliate-disclosure">Affiliate Disclosure</a></li>
          </ul>
        </div>
      </div>
      <div class="footer-bottom">
        <p>&copy; 2023 TechDeals. All rights reserved.</p>
      </div>
    </div>
  </footer>

  <script src="assets/js/app.js"></script>
</body>

</html>