Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Portada

Tappet Hero

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

0 7
Tappet Hero preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con 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 Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero 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 hero -->
    <section id="top" class="mx-auto max-w-[1400px] px-5 pb-14 pt-2 md:px-12 md:pb-20" data-hero>
      <div class="grid bg-slate text-white lg:grid-cols-12">
        <div class="cell relative overflow-hidden border-b lg:col-span-9 lg:border-r">
          <img src="https://images.unsplash.com/photo-1625047509168-a7026f36de04?auto=format&amp;fit=crop&amp;w=1400&amp;q=80" alt="Mechanic leaning under the open bonnet of a grey car in a bright workshop" class="photo-fade absolute inset-y-0 right-0 hidden h-full w-[62%] object-cover opacity-70 md:block" data-hero-image>
          <div class="absolute inset-0 hidden bg-gradient-to-t from-slate via-slate/20 to-slate/40 md:block"></div>
          <div class="relative px-6 pb-10 pt-8 md:px-12 md:pb-14 md:pt-12">
            <p class="text-sm font-semibold">Tappet Garage <span class="font-light text-white/60">· Kirkstall Road, Leeds</span></p>
            <p class="figure mt-8 text-[6.5rem] md:mt-10 md:text-[10rem] lg:text-[12.5rem]" aria-hidden="true">/<span data-hero-figure>60</span></p>
            <p class="mt-3 text-sm font-semibold">_<span data-hero-unit>minutes</span> · <span data-hero-caption>MOT test while you wait</span></p>
            <h1 class="mt-8 max-w-md text-2xl font-semibold leading-snug tracking-tight md:text-3xl">MOTs, servicing and repairs, priced before we lift the bonnet.</h1>
            <p class="mt-4 max-w-sm text-sm leading-relaxed text-white/70">An independent four-bay workshop. You get the price in writing first, the old parts back in a box, and a phone call before anything extra is done.</p>
            <a href="services.html" class="mt-7 inline-flex items-center gap-4 text-sm font-semibold">View all prices <span class="block h-px w-10 bg-white/70"></span></a>
          </div>
        </div>
        <div class="grid grid-cols-2 lg:col-span-3 lg:grid-cols-1">
          <a href="booking.html" class="cell group flex items-end justify-between gap-3 border-b border-r p-6 hover:bg-signal lg:border-r-0 lg:p-8">
            <span><span class="block text-sm font-semibold">Book</span><span class="mt-1 block text-xs text-white/60 group-hover:text-white">Pick a day and a time</span></span>
            <i class="fa-solid fa-arrow-right-long"></i>
          </a>
          <a href="tel:+441130000142" class="cell group flex items-end justify-between gap-3 border-b p-6 hover:bg-slate-soft lg:p-8">
            <span><span class="block text-sm font-semibold">Call</span><span class="mt-1 block text-xs text-white/60">0113 000 0142</span></span>
            <i class="fa-solid fa-phone text-sm"></i>
          </a>
          <div class="cell col-span-2 border-b p-6 lg:col-span-1 lg:p-8">
            <p class="flex items-center gap-3 text-sm font-semibold"><span class="pulse h-2.5 w-2.5 rounded-full bg-signal"></span>2 of 4 bays free today</p>
            <p class="mt-3 text-xs leading-relaxed text-white/60">Next MOT slot at 14:20. Drop the keys in from 7:30, or wait with a coffee and the Wi-Fi.</p>
            <p class="mt-5 inline-flex items-center gap-2 border border-white/30 px-3 py-1.5 text-[0.7rem] font-semibold tracking-wide">VTS-4X2190 <i class="fa-solid fa-check text-[0.6rem] text-signal"></i></p>
          </div>
        </div>
        <dl class="grid grid-cols-2 lg:col-span-12 lg:grid-cols-12">
          <div class="cell border-b border-r p-6 lg:col-span-3 lg:border-b-0 lg:p-8">
            <dt class="text-xs text-white/60">Fixed price</dt>
            <dd class="mt-1 text-xl font-semibold" data-hero-price>£45</dd>
          </div>
          <div class="cell border-b p-6 lg:col-span-3 lg:border-b-0 lg:border-r lg:p-8">
            <dt class="text-xs text-white/60">Time in the bay</dt>
            <dd class="mt-1 text-xl font-semibold" data-hero-time>60 min</dd>
          </div>
          <div class="cell border-r p-6 lg:col-span-3 lg:p-8">
            <dt class="text-xs text-white/60">Included</dt>
            <dd class="mt-1 text-sm font-semibold leading-snug" data-hero-note>Free retest within 10 working days</dd>
          </div>
          <div class="cell p-6 lg:col-span-3 lg:p-8">
            <dt class="text-xs text-white/60">Rated by drivers</dt>
            <dd class="mt-1 text-xl font-semibold">4.9 <span class="text-sm font-light text-white/60">/ 1,180 reviews</span></dd>
          </div>
        </dl>
      </div>
      <div class="mt-6 flex items-end justify-between">
        <p class="text-sm font-semibold leading-none" aria-live="polite"><span data-hero-count>01</span>/<br>04 <span class="sr-only">services shown</span></p>
        <div class="flex items-center gap-3">
          <button type="button" data-hero-prev aria-label="Previous service" class="flex h-11 w-11 items-center justify-center rounded-full border border-ink hover:bg-ink hover:text-white"><i class="fa-solid fa-arrow-left-long"></i></button>
          <button type="button" data-hero-next aria-label="Next service" class="flex h-11 w-11 items-center justify-center rounded-full border border-ink hover:bg-ink hover:text-white"><i class="fa-solid fa-arrow-right-long"></i></button>
        </div>
      </div>
    </section>
    <!-- block:end hero -->
<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>

De esta plantilla

Tappet screenshot Premium

Negocios

Tappet

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado