Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Navbar

Tappet Navbar

A navbar block extracted from the Tappet template, available in Tailwind CSS.

0 10
Tappet Navbar preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

tappet.html
<!DOCTYPE html>
<html lang="en">
<head>
  <script>
    window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Tappet Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar block extracted from the Tappet template, available in Tailwind CSS.">
  <meta name="keywords" content="Tappet, Tailwind CSS template, HTML website template, car garage template, auto repair website, MOT centre, car service booking, mechanic website, tyre fitter, workshop booking form, premium template">
  <meta name="author" content="Let's templates">
  <link rel="canonical" href="">

  <meta property="og:type" content="product">
  <meta property="og:site_name" content="Let's templates">
  <meta property="og:locale" content="en_US">
  <meta property="og:url" content="">
  <meta property="og:title" content="Tappet | Tailwind CSS Business Template">
  <meta property="og:description" content="A slate and signal-red Tailwind CSS template for car garages and auto repair workshops, with a car diagram that prices the job, a servicing table and online booking.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Tappet template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Tappet | Tailwind CSS Business Template">
  <meta name="twitter:description" content="A slate and signal-red Tailwind CSS template for car garages and auto repair workshops, with a car diagram that prices the job, a servicing table and online booking.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Tappet template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            fog: { DEFAULT: '#f1f1f0', line: '#dcdcda' },
            slate: { DEFAULT: '#2f333a', deep: '#24272d', soft: '#3b4048' },
            ink: { DEFAULT: '#16181c', soft: '#4a4e55', mute: '#7b7f86' },
            signal: { DEFAULT: '#e5322d', deep: '#c3231f' }
          },
          fontFamily: {
            sans: ['Sora', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .cell { position: relative; border-color: rgba(255, 255, 255, .09); }
    .cell::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
    .figure { font-weight: 300; letter-spacing: -.04em; line-height: .9; font-variant-numeric: tabular-nums; }
    .photo-fade { -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); }
    .ticker-track { animation: ticker 40s linear infinite; }
    .ticker:hover .ticker-track { animation-play-state: paused; }
    @keyframes ticker { to { transform: translateX(-50%); } }
    .pulse { animation: pulse 1.8s ease-out infinite; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 50, 45, .55); } 100% { box-shadow: 0 0 0 14px rgba(229, 50, 45, 0); } }
    .stack > * { grid-area: 1 / 1; transition: transform .45s ease, opacity .45s ease; }
    .stack > :nth-child(1) { z-index: 3; }
    .stack > :nth-child(2) { z-index: 2; transform: translate(14px, 14px) rotate(1.2deg); opacity: .75; }
    .stack > :nth-child(3) { z-index: 1; transform: translate(28px, 28px) rotate(2.4deg); opacity: .45; }
    .stack > :nth-child(n+4) { z-index: 0; transform: translate(28px, 28px) rotate(2.4deg); opacity: 0; pointer-events: none; }
    .reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
    .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) { .ticker-track, .pulse { animation: none; } .stack > * { transition: none; } }
  </style>
</head>
<body class="bg-fog font-sans text-ink antialiased">
<!-- block:start navbar -->
  <header class="relative z-40 bg-fog">
    <div class="mx-auto flex max-w-[1400px] items-center justify-between px-5 py-6 md:px-12">
      <a href="index.html" class="text-[0.95rem] font-semibold leading-[1.05] tracking-tight" aria-label="Tappet home">Tappet<br><span class="font-light text-ink-soft">Garage</span></a>
      <nav class="hidden items-center gap-9 text-sm lg:flex" aria-label="Main">
        <a href="index.html" aria-current="page" class="border-b border-ink pb-1 font-semibold">Home</a>
          <a href="services.html" class="border-b border-transparent pb-1 text-ink-soft hover:border-ink hover:text-ink">Services &amp; prices</a>
          <a href="booking.html" class="border-b border-transparent pb-1 text-ink-soft hover:border-ink hover:text-ink">Book online</a>
          <a href="about.html" class="border-b border-transparent pb-1 text-ink-soft hover:border-ink hover:text-ink">About</a>
          <a href="contact.html" class="border-b border-transparent pb-1 text-ink-soft hover:border-ink hover:text-ink">Find us</a>
      </nav>
      <div class="hidden items-center gap-6 lg:flex">
        <a href="tel:+441130000142" class="text-sm font-semibold"><i class="fa-solid fa-phone mr-2 text-xs text-signal"></i>0113 000 0142</a>
        <a href="booking.html" class="rounded-full bg-ink px-6 py-3 text-sm font-semibold text-white hover:bg-signal">Book a slot</a>
      </div>
      <button type="button" class="flex h-11 w-11 items-center justify-center rounded-full border border-ink lg:hidden" data-menu-toggle aria-expanded="false" aria-controls="mobile-menu" aria-label="Open menu">
        <i class="fa-solid fa-bars text-sm"></i>
      </button>
    </div>
    <div id="mobile-menu" class="border-t border-fog-line bg-fog px-5 pb-8 pt-4 lg:hidden" hidden>
      <nav class="grid gap-1 text-2xl font-semibold tracking-tight" aria-label="Mobile">
        <a href="index.html" aria-current="page" class="py-2">Home</a>
          <a href="services.html" class="py-2 text-ink-mute hover:text-ink">Services &amp; prices</a>
          <a href="booking.html" class="py-2 text-ink-mute hover:text-ink">Book online</a>
          <a href="about.html" class="py-2 text-ink-mute hover:text-ink">About</a>
          <a href="contact.html" class="py-2 text-ink-mute hover:text-ink">Find us</a>
      </nav>
      <div class="mt-6 flex flex-wrap items-center gap-4">
        <a href="booking.html" class="rounded-full bg-ink px-6 py-3 text-sm font-semibold text-white">Book a slot</a>
        <a href="tel:+441130000142" class="text-sm font-semibold"><i class="fa-solid fa-phone mr-2 text-xs text-signal"></i>0113 000 0142</a>
      </div>
    </div>
  </header>
  <!-- block:end navbar -->
<script>
    // Mobile menu
    (() => {
      const toggle = document.querySelector("[data-menu-toggle]");
      const menu = document.getElementById("mobile-menu");
      if (!toggle || !menu) return;
      toggle.addEventListener("click", () => {
        const open = toggle.getAttribute("aria-expanded") === "true";
        toggle.setAttribute("aria-expanded", String(!open));
        toggle.setAttribute("aria-label", open ? "Open menu" : "Close menu");
        menu.hidden = open;
      });
    })();

    // Remember the job a visitor picked, so the booking page can preselect it
    const rememberJob = (job) => {
      try { sessionStorage.setItem("tappet-job", job); } catch (error) { /* storage is optional */ }
    };

    // Hero service switcher
    (() => {
      const hero = document.querySelector("[data-hero]");
      if (!hero) return;
      const photo = (id) => `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=1400&q=80`;
      const slides = [
        { figure: "60", unit: "minutes", caption: "MOT test while you wait", price: "£45", time: "60 min", note: "Free retest within 10 working days", image: "1625047509168-a7026f36de04", alt: "Mechanic leaning under the open bonnet of a grey car in a bright workshop" },
        { figure: "179", unit: "pounds", caption: "Full service for a 1.5 to 2.0 litre car", price: "£179", time: "3 hrs", note: "Oil, three filters and a 64-point report", image: "1487754180451-c456f719a1fc", alt: "Mechanic pouring fresh oil into an engine" },
        { figure: "30", unit: "minutes", caption: "Two tyres fitted and balanced", price: "from £62", time: "30 min", note: "New valves, balancing and disposal", image: "1578844251758-2f71da64c96f", alt: "Stacks of new car tyres in a tyre bay" },
        { figure: "39", unit: "pounds", caption: "Warning light read and explained", price: "£39", time: "40 min", note: "Taken off the bill if we do the repair", image: "1486262715619-67b85e0b08d3", alt: "Close view of the belts and pulleys of a car engine" }
      ];
      const set = (name, text) => { hero.querySelector(`[data-hero-${name}]`).textContent = text; };
      const image = hero.querySelector("[data-hero-image]");
      let index = 0;
      const show = (next) => {
        index = (next + slides.length) % slides.length;
        const slide = slides[index];
        ["figure", "unit", "caption", "price", "time", "note"].forEach((name) => set(name, slide[name]));
        set("count", String(index + 1).padStart(2, "0"));
        image.src = photo(slide.image);
        image.alt = slide.alt;
      };
      hero.querySelector("[data-hero-prev]").addEventListener("click", () => show(index - 1));
      hero.querySelector("[data-hero-next]").addEventListener("click", () => show(index + 1));
    })();

    // Point at the problem
    (() => {
      const root = document.querySelector("[data-diagram]");
      if (!root) return;
      const jobs = {
        engine: { title: "A sensor or a coil pack", text: "Nine times in ten the light is a sensor, a coil pack or a loose fuel cap, not the engine itself. We plug in, read the codes and test the part before replacing it.", price: "£39–£160", time: "40 min", note: "The £39 diagnostic fee comes off the repair." },
        aircon: { title: "Low refrigerant", text: "Air con loses about a tenth of its gas every year. A regas with a leak test and fresh oil brings the cold back, and we tell you if a seal needs doing.", price: "£59–£89", time: "45 min", note: "No cold air afterwards, no charge." },
        brakes: { title: "Worn front pads and discs", text: "A squeal means the pads are near the wear marker. A judder through the pedal usually means the discs have gone too. We measure both and show you before fitting anything.", price: "£89–£210", time: "1.5 hrs", note: "Free brake check first. No charge if they pass." },
        clutch: { title: "A worn clutch plate", text: "If the revs rise and the car does not, the friction plate is worn. We fit a full kit with a new release bearing, and check the flywheel while the gearbox is out.", price: "£420–£690", time: "5 hrs", note: "Courtesy car included for the day." },
        tyres: { title: "Tread below 3 mm, or the tracking is out", text: "Uneven wear on one edge points to alignment. We measure the tread on all four, set the tracking on the laser rig and only replace what is worn.", price: "£62–£140", time: "30 min", note: "Per tyre, fitted and balanced. Tracking is £45." },
        exhaust: { title: "A blown back box or a split flexi", text: "A sudden roar is usually the rear silencer or the flexible joint. Blue or black smoke is a different story, and we will tell you which it is on the ramp.", price: "£95–£260", time: "1 hr", note: "Free look on the ramp, any weekday before 10:00." }
      };
      const set = (name, text) => { root.querySelector(`[data-job-${name}]`).textContent = text; };
      let current = "brakes";
      root.addEventListener("click", (event) => {
        const button = event.target.closest("button[data-job]");
        if (!button) return;
        current = button.dataset.job;
        root.querySelectorAll("button[data-job]").forEach((other) => other.setAttribute("aria-pressed", String(other.dataset.job === current)));
        ["title", "text", "price", "time", "note"].forEach((name) => set(name, jobs[current][name]));
      });
      root.querySelector("[data-job-book]").addEventListener("click", () => rememberJob(current));
    })();

    // Servicing table by engine size
    (() => {
      const root = document.querySelector("[data-plans]");
      if (!root) return;
      const engines = {
        small: { prices: [89, 149, 229], note: "Prices for petrol and diesel engines up to 1.4 litres, with up to 4 litres of 5W-30 oil." },
        mid: { prices: [119, 179, 269], note: "Prices for petrol and diesel engines from 1.5 to 2.0 litres, with up to 5 litres of 5W-30 oil." },
        large: { prices: [149, 219, 329], note: "Prices for engines of 2.1 litres and over, with up to 7 litres of oil. Specialist oils are quoted first." },
        hybrid: { prices: [99, 159, 239], note: "Hybrid and electric cars: battery health report, coolant and brake checks by an IMI Level 3 technician." }
      };
      root.querySelectorAll("[data-engine]").forEach((button) => {
        button.addEventListener("click", () => {
          const engine = engines[button.dataset.engine];
          root.querySelectorAll("[data-engine]").forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
          ["interim", "full", "major"].forEach((plan, index) => {
            root.querySelector(`[data-plan-price=${plan}]`).textContent = "£" + engine.prices[index];
          });
          root.querySelector("[data-plan-note]").textContent = engine.note;
        });
      });
    })();

    // Job card stack
    (() => {
      document.querySelectorAll("[data-stack]").forEach((stack) => {
        const cards = stack.querySelector("[data-stack-cards]");
        stack.querySelector("[data-stack-next]").addEventListener("click", () => cards.append(cards.firstElementChild));
      });
    })();

    // Scroll reveal
    (() => {
      const items = document.querySelectorAll("[data-reveal]");
      const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
      if (!items.length || skip) return;
      document.documentElement.classList.add("reveal-ready");
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add("is-visible");
          observer.unobserve(entry.target);
        });
      }, { rootMargin: "0px 0px -10% 0px" });
      items.forEach((item) => observer.observe(item));
    })();
  </script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>

From this template

Tappet screenshot Premium

Business

Tappet

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access