Back home
Lägg till ny affiliatesajt
Domain name
Google measurement id
Html template
<!DOCTYPE html> <html lang="sv"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="[PAGEDESC]"> <meta name="keywords" content="hund, katt, djurförsäkring, hundfoder, kattfoder, husdjur, djurtillbehör, klösträd, djurhälsa"> <meta name="author" content="HundochKattguiden.se"> <title>[PAGETITLE]</title> <link rel="icon" type="image/x-icon" href="/img/favicon.ico"> <link rel="canonical" href="[CANONICAL]" /> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <nav class="navbar"> <div class="logo">🐾 HundochKattguiden</div> <button class="menu-toggle" aria-label="Öppna meny">☰</button> <ul class="nav-links"> <li><a class="navlink" href="index.html">Hem</a></li> <li><a class="navlink" href="foder.html">Foder</a></li> <li><a class="navlink" href="tillbehor.html">Tillbehör</a></li> <li><a class="navlink" href="forsakring.html">Försäkring</a></li> <li><a class="navlink" href="vard.html">Pälsvård & Hälsa</a></li> </ul> </nav> </header> [PAGECONTENT] <footer> <div class="footer-content"> <p>© [YEAR] HundochKattguiden.se – Alla rättigheter förbehållna.</p> <p><small>Denna sida innehåller affiliatelänkar. Vi kan få en liten provision om du handlar, utan extra kostnad för dig.</small></p> </div> </footer> <script defer src="scripts.js"></script> </body> </html>
[PAGECONTENT] [PAGETITLE] [PAGEDESC] [CANONICAL] [YEAR] [MONTH]
Product list html
<table class="table table-hover align-middle"> <thead> <tr> <th scope="col">Produkt</th> <th scope="col">Typ</th> <th scope="col">Pris</th> <th scope="col"></th> </tr> </thead> <tbody> [LIST] </tbody> </table>
[LIST]
Product list row html
<tr> <td>[NAME]</td> <td>Tablett</td> <td class="price">[PRICE]</td> <td scope="row"><a href="[LINK]" target="_blank" class="btn btn-block btn-success btn-sm">Köp</a></td> </tr>
[NAME] [PRICE] [LINK]
Css code
/* styles.css */ /* Grundläggande Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; background-color: #fff; color: #333; } main section { padding: 0 1rem } header { background-color: #f8f9fa; border-bottom: 1px solid #ddd; padding: 1rem; } .navbar { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } .logo { font-size: 1.5rem; font-weight: bold; color: #2b2b2b; } .menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; } .nav-links { list-style: none; display: flex; gap: 1rem; } .nav-links a { text-decoration: none; color: #2b2b2b; font-weight: 500; } /* Hero Section */ .hero { background-color: #eef5f9; text-align: center; padding: 4rem 1rem; } .hero h1 { font-size: 2rem; margin-bottom: 1rem; } .hero p { font-size: 1.2rem; margin-bottom: 1.5rem; } .cta-button { background-color: #0077cc; color: #fff; padding: 0.75rem 1.5rem; text-decoration: none; border-radius: 5px; font-weight: bold; } /* Features Section */ .features { display: grid; gap: 2rem; margin: 2rem 0; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } .feature { background-color: #f9f9f9; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); } .feature h2 { font-size: 1.6rem; margin-bottom: 1rem; } .feature p { font-size: 1.1rem; margin-bottom: 1rem; } main ul { list-style: disc; margin-bottom: 1.5rem; } main li { margin-bottom: 0.5rem; line-height: 1.6; list-style-position: inside; list-style-type: none; } .feature ul { list-style-type: none; margin-bottom: 1rem; } .feature ul li { margin: 5px 0; } .feature .cta-button { margin-top: 1rem; } /* Extra Info Section */ .extra-info { background-color: #ffffff; padding: 1rem 1rem; text-align: center; margin-bottom: 40px; } .extra-info h2 { font-size: 2rem; margin-bottom: 1.5rem; } .extra-info p { font-size: 1.1rem; margin-bottom: 1.5rem; } /* Footer */ footer { background-color: #f1f1f1; text-align: center; padding: 1rem 0; margin-top: 2rem; } footer .footer-content { max-width: 1200px; margin: 0 auto; } .footer-nav a { text-decoration: none; color: #666; margin: 0 0.5rem; } @media (max-width: 768px) { .menu-toggle { display: block; } .nav-links { flex-direction: column; width: 100%; display: none; } .nav-links.active { display: flex; } .nav-links li { text-align: center; padding: 0.5rem 0; } } #loppor-och-fastingar { padding: 20px; background-color: #f9f9f9; margin-top: 30px; border-radius: 8px; } #loppor-och-fastingar h2 { font-size: 24px; color: #333; margin-bottom: 20px; } #loppor-och-fastingar p { font-size: 16px; color: #666; line-height: 1.6; margin-bottom: 20px; } .product-list { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; } .product-item { flex: 1 1 250px; /* Gör att varje produktkort kan växa upp till 250px bredd */ background-color: #ffffff; padding: 15px; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; } .product-item:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } .product-item img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 15px; } .product-item h3 { font-size: 18px; color: #333; margin-bottom: 10px; } .product-item p { font-size: 14px; color: #666; margin-bottom: 15px; } .product-item a { display: inline-block; text-decoration: none; margin-top: auto; /* Se till att knappen hamnar längst ned */ } .product-item button { background-color: #4CAF50; color: #fff; border: none; padding: 10px 20px; font-size: 16px; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; width: 100%; } .product-item button:hover { background-color: #45a049; } @media (max-width: 768px) { #loppor-och-fastingar { padding: 15px; } .product-list { justify-content: center; /* Centrerar produkterna på små skärmar */ } .product-item { flex: 1 1 100%; /* Gör att varje produkt tar upp hela bredden på mobilen */ } } /* Grundläggande tabellstil */ .comparison-table { overflow-x: auto; margin: 2rem 0; } .comparison-table table { width: 100%; border-collapse: collapse; background-color: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); } .comparison-table thead { background-color: #f5f7fa; } .comparison-table th, .comparison-table td { padding: 1rem; text-align: left; font-size: 0.95rem; border-bottom: 1px solid #e3e6ec; } .comparison-table th { font-weight: 600; color: #333; } .comparison-table td { color: #444; } .comparison-table tr:hover { background-color: #f9fafc; } /* Responsivitet */ @media (max-width: 768px) { .comparison-table table { font-size: 0.85rem; } .comparison-table th, .comparison-table td { padding: 0.75rem; } } .product-box { padding: 2rem; background-color: #fff; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .product-box h3 { font-size: 1.7rem; color: #333; margin-bottom: 2rem; border-left: 5px solid #70b77e; padding-left: 1rem; } .product-box .product { background-color: #f9f9f9; border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 2px 6px rgba(0,0,0,0.04); text-align: center; } .product-box .product img { width: 160px; height: auto; margin-bottom: 1rem; border-radius: 12px; } .product-box .product strong { font-size: 1.2rem; display: block; margin: 0.5rem 0; color: #222; } .product-box .product p { font-size: 1rem; color: #555; line-height: 1.5; margin-bottom: 1rem; } .product-box .product a { display: inline-block; margin-top: 0.5rem; padding: 0.6rem 1.2rem; background-color: #70b77e; color: white; border-radius: 8px; text-decoration: none; transition: background-color 0.3s ease; } .product-box .product a:hover { background-color: #5aa866; } .d-block { display: block; } .txt-center { text-align: center; } .firstvet-promo { background-color: #f0f9f6; padding: 3rem 2rem; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .firstvet-promo h2 { font-size: 1.8rem; margin-bottom: 1rem; color: #207a6a; } .firstvet-promo p { font-size: 1.1rem; margin-bottom: 1rem; color: #333; } .firstvet-promo ul { margin-bottom: 1.5rem; padding-left: 1.5rem; list-style-type: none; } .firstvet-promo ul li { margin-bottom: 0.6rem; font-size: 1rem; position: relative; padding-left: 1.2rem; } .firstvet-promo ul li::before { content: "✔"; color: #70b77e; position: absolute; left: 0; } .firstvet-promo .cta-button { background-color: #70b77e; color: #fff; padding: 0.8rem 1.6rem; border-radius: 8px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; } .firstvet-promo .cta-button:hover { background-color: #5aa866; } .foderboxen-promo { background-color: #fff7ec; padding: 3rem 2rem; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .foderboxen-promo h2 { font-size: 1.8rem; margin-bottom: 1rem; color: #d18c40; } .foderboxen-promo p { font-size: 1.1rem; margin-bottom: 1rem; color: #333; } .foderboxen-promo ul { margin-bottom: 1.5rem; padding-left: 1.5rem; list-style-type: none; } .foderboxen-promo ul li { margin-bottom: 0.6rem; font-size: 1rem; position: relative; padding-left: 1.2rem; } .foderboxen-promo ul li::before { content: "✔"; color: #d18c40; position: absolute; left: 0; } .foderboxen-promo .cta-button { background-color: #d18c40; color: #fff; padding: 0.8rem 1.6rem; border-radius: 8px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; } .foderboxen-promo .cta-button:hover { background-color: #ba7832; }
Javascript code
/*! * Start Bootstrap - Heroic Features v5.0.6 (https://startbootstrap.com/template/heroic-features) * Copyright 2013-2023 Start Bootstrap * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-heroic-features/blob/master/LICENSE) */ // This file is intentionally blank // Use this file to add JavaScript to your project currentLinks = document.querySelectorAll('a.navlink'); currentLinks.forEach(link => { if (link.href == document.URL) { link.classList.add('active'); } }); document.addEventListener("click", e => { if (e.target.matches('.al') || e.target.closest('.al')) { let link = (e.target.matches('.al') ? e.target : e.target.closest('.al')); clickOnLead(link.getAttribute('data-price')); } }); document.addEventListener("DOMContentLoaded", function () { const toggleButton = document.querySelector(".menu-toggle"); const navLinks = document.querySelector(".nav-links"); toggleButton.addEventListener("click", () => { navLinks.classList.toggle("active"); }); }); function clickOnLead(price) { gtag("event", "generate_lead", { currency: "SEK", value: price, lead_source: "Trade show" }); }
Htaccess
redirect 301 /gr20-koriska-frankrike.html /gr20-korsika-frankrike.html redirect 301 /gr20-koriska-frankrike.html /gr20-korsika-frankrike.html
Spara