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

Nightjar Features

A features block extracted from the Nightjar template, available in Tailwind CSS.

0 9
Nightjar Features preview

Download Codebase

Commercial License

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

nightjar.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>Nightjar Features | Tailwind CSS UI Block</title>
  <meta name="description" content="A features block extracted from the Nightjar template, available in Tailwind CSS.">
  <meta name="keywords" content="Nightjar, Tailwind CSS template, HTML website template, emergency plumber template, locksmith website, electrician website, home services template, 24 hour repairs, tradesman website, callout pricing">
  <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="Nightjar | Tailwind CSS Emergency Home Repairs Template">
  <meta property="og:description" content="A bold black, white and red Tailwind CSS template for 24-hour plumbers, locksmiths and electricians, with an emergency triage tool, a coverage checker and fixed prices.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Nightjar template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Nightjar | Tailwind CSS Emergency Home Repairs Template">
  <meta name="twitter:description" content="A bold black, white and red Tailwind CSS template for 24-hour plumbers, locksmiths and electricians, with an emergency triage tool, a coverage checker and fixed prices.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Nightjar 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=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ink: { DEFAULT: '#0a0a0a', soft: '#161616', line: '#2c2c2c' },
            bone: { DEFAULT: '#f3f0ea', dim: '#a8a49c' },
            flare: { DEFAULT: '#ff3b2f', deep: '#d92a1f' }
          },
          fontFamily: {
            display: ['"Archivo Black"', 'sans-serif'],
            sans: ['Inter', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .ring-pulse { position: relative; }
    .ring-pulse::after { content: ""; position: absolute; inset: -6px; border: 2px solid #ff3b2f; border-radius: 9999px; animation: ring-pulse 1.8s ease-out infinite; }
    @keyframes ring-pulse { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.35); } }
    .marquee-track { animation: marquee 36s linear infinite; }
    @keyframes marquee { to { transform: translateX(-50%); } }
    .rail { scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: 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) { .marquee-track, .ring-pulse::after { animation: none; } }
  </style>
</head>
<body class="bg-ink font-sans text-bone antialiased">
<!-- block:start features -->
    <section id="trades" class="mx-auto max-w-[1500px] px-6 py-20 md:px-12 md:py-28">
      <div class="flex flex-wrap items-end justify-between gap-6" data-reveal>
        <h2 class="font-display text-4xl uppercase leading-none md:text-6xl">Four trades,<br>one number</h2>
        <a href="services.html" class="text-sm font-bold uppercase tracking-[0.14em] underline decoration-flare decoration-2 underline-offset-8 hover:text-flare">Every job we do</a>
      </div>
      <div class="mt-12 grid gap-8 lg:grid-cols-12" data-tabs>
        <div class="flex gap-2 overflow-x-auto lg:col-span-4 lg:flex-col lg:gap-0" role="tablist" aria-label="Trades">
            <button type="button" role="tab" id="trade-tab-plumbing" aria-controls="trade-panel-plumbing" aria-selected="true" data-tab="plumbing" class="group flex shrink-0 items-center justify-between gap-6 border border-ink-line px-5 py-4 text-left font-display text-xl uppercase text-bone/50 hover:text-white aria-selected:border-flare aria-selected:bg-flare aria-selected:text-white lg:border-x-0 lg:border-b-0 lg:px-2 lg:py-6 lg:text-4xl lg:last:border-b">
              <span>Plumbing</span>
              <i class="fa-solid fa-faucet-drip text-base lg:text-2xl" aria-hidden="true"></i>
            </button>
            <button type="button" role="tab" id="trade-tab-locks" aria-controls="trade-panel-locks" aria-selected="false" data-tab="locks" class="group flex shrink-0 items-center justify-between gap-6 border border-ink-line px-5 py-4 text-left font-display text-xl uppercase text-bone/50 hover:text-white aria-selected:border-flare aria-selected:bg-flare aria-selected:text-white lg:border-x-0 lg:border-b-0 lg:px-2 lg:py-6 lg:text-4xl lg:last:border-b">
              <span>Locks</span>
              <i class="fa-solid fa-key text-base lg:text-2xl" aria-hidden="true"></i>
            </button>
            <button type="button" role="tab" id="trade-tab-electrics" aria-controls="trade-panel-electrics" aria-selected="false" data-tab="electrics" class="group flex shrink-0 items-center justify-between gap-6 border border-ink-line px-5 py-4 text-left font-display text-xl uppercase text-bone/50 hover:text-white aria-selected:border-flare aria-selected:bg-flare aria-selected:text-white lg:border-x-0 lg:border-b-0 lg:px-2 lg:py-6 lg:text-4xl lg:last:border-b">
              <span>Electrics</span>
              <i class="fa-solid fa-bolt text-base lg:text-2xl" aria-hidden="true"></i>
            </button>
            <button type="button" role="tab" id="trade-tab-heating" aria-controls="trade-panel-heating" aria-selected="false" data-tab="heating" class="group flex shrink-0 items-center justify-between gap-6 border border-ink-line px-5 py-4 text-left font-display text-xl uppercase text-bone/50 hover:text-white aria-selected:border-flare aria-selected:bg-flare aria-selected:text-white lg:border-x-0 lg:border-b-0 lg:px-2 lg:py-6 lg:text-4xl lg:last:border-b">
              <span>Heating</span>
              <i class="fa-solid fa-fire-flame-simple text-base lg:text-2xl" aria-hidden="true"></i>
            </button>
        </div>
        <div class="lg:col-span-8">
            <div role="tabpanel" id="trade-panel-plumbing" aria-labelledby="trade-tab-plumbing" data-tab-panel="plumbing"  class="grid gap-8 md:grid-cols-2">
              <img src="https://images.unsplash.com/photo-1542013936693-884638332954?auto=format&fit=crop&w=1200&q=80" alt="Water splashing from a chrome kitchen tap into a steel sink" class="aspect-[4/5] w-full object-cover grayscale">
              <div class="flex flex-col">
                <p class="text-xl leading-snug text-white">Leaks stopped and water back on, usually in a single visit.</p>
                <ul class="mt-6 grid gap-3 text-bone/80">
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Burst and leaking pipes</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Blocked sinks, toilets and drains</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Tap, valve and cistern repairs</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Flood make-safe and pump-out</li>
                </ul>
                <div class="mt-auto flex items-end justify-between gap-4 pt-8">
                  <p class="text-sm uppercase tracking-[0.14em] text-bone/60">Callout from<br><span class="font-display text-5xl text-white">&pound;89</span></p>
                  <a href="tel:02079460138" class="rounded-full bg-flare px-6 py-3 text-sm font-bold uppercase tracking-[0.12em] text-white hover:bg-flare-deep">Call now</a>
                </div>
              </div>
            </div>
            <div role="tabpanel" id="trade-panel-locks" aria-labelledby="trade-tab-locks" data-tab-panel="locks" hidden class="grid gap-8 md:grid-cols-2">
              <img src="https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1200&q=80" alt="A hand holding a phone beside a modern lock on a white front door" class="aspect-[4/5] w-full object-cover grayscale">
              <div class="flex flex-col">
                <p class="text-xl leading-snug text-white">Back inside without a scratch on the door wherever we can.</p>
                <ul class="mt-6 grid gap-3 text-bone/80">
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Non-destructive entry</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Lock changes after a break-in</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Snapped keys and jammed cylinders</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>uPVC and multipoint mechanisms</li>
                </ul>
                <div class="mt-auto flex items-end justify-between gap-4 pt-8">
                  <p class="text-sm uppercase tracking-[0.14em] text-bone/60">Callout from<br><span class="font-display text-5xl text-white">&pound;79</span></p>
                  <a href="tel:02079460138" class="rounded-full bg-flare px-6 py-3 text-sm font-bold uppercase tracking-[0.12em] text-white hover:bg-flare-deep">Call now</a>
                </div>
              </div>
            </div>
            <div role="tabpanel" id="trade-panel-electrics" aria-labelledby="trade-tab-electrics" data-tab-panel="electrics" hidden class="grid gap-8 md:grid-cols-2">
              <img src="https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1200&q=80" alt="An electrician in a yellow hard hat testing a wall-mounted meter" class="aspect-[4/5] w-full object-cover grayscale">
              <div class="flex flex-col">
                <p class="text-xl leading-snug text-white">Power restored safely, with a written report on what we found.</p>
                <ul class="mt-6 grid gap-3 text-bone/80">
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Total or partial power loss</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Tripping fuse boards</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Burning smells and scorched sockets</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Emergency lighting and alarms</li>
                </ul>
                <div class="mt-auto flex items-end justify-between gap-4 pt-8">
                  <p class="text-sm uppercase tracking-[0.14em] text-bone/60">Callout from<br><span class="font-display text-5xl text-white">&pound;95</span></p>
                  <a href="tel:02079460138" class="rounded-full bg-flare px-6 py-3 text-sm font-bold uppercase tracking-[0.12em] text-white hover:bg-flare-deep">Call now</a>
                </div>
              </div>
            </div>
            <div role="tabpanel" id="trade-panel-heating" aria-labelledby="trade-tab-heating" data-tab-panel="heating" hidden class="grid gap-8 md:grid-cols-2">
              <img src="https://images.unsplash.com/photo-1607472586893-edb57bdc0e39?auto=format&fit=crop&w=1200&q=80" alt="Grey heating pipes, valves and a pump mounted on a red brick wall" class="aspect-[4/5] w-full object-cover grayscale">
              <div class="flex flex-col">
                <p class="text-xl leading-snug text-white">Heat and hot water back the same night, parts in the van.</p>
                <ul class="mt-6 grid gap-3 text-bone/80">
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Boiler breakdowns and lockouts</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>No hot water</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Leaking radiators and valves</li>
                    <li class="flex gap-3 border-b border-ink-line pb-3"><i class="fa-solid fa-check mt-1 text-flare" aria-hidden="true"></i>Frozen condensate pipes</li>
                </ul>
                <div class="mt-auto flex items-end justify-between gap-4 pt-8">
                  <p class="text-sm uppercase tracking-[0.14em] text-bone/60">Callout from<br><span class="font-display text-5xl text-white">&pound;99</span></p>
                  <a href="tel:02079460138" class="rounded-full bg-flare px-6 py-3 text-sm font-bold uppercase tracking-[0.12em] text-white hover:bg-flare-deep">Call now</a>
                </div>
              </div>
            </div>
        </div>
      </div>
    </section>
    <!-- block:end features -->
<script>
    document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
      const menu = document.getElementById(button.getAttribute("aria-controls"));
      if (!menu) return;
      button.addEventListener("click", () => {
        const open = button.getAttribute("aria-expanded") === "true";
        button.setAttribute("aria-expanded", String(!open));
        menu.classList.toggle("hidden", open);
      });
    });

    (() => {
      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));
    })();

    // Tabs: trades on the home page, price lists on the pricing page.
    document.querySelectorAll("[data-tabs]").forEach((root) => {
      const tabs = [...root.querySelectorAll("[data-tab]")];
      const select = (tab) => {
        tabs.forEach((item) => item.setAttribute("aria-selected", String(item === tab)));
        root.querySelectorAll("[data-tab-panel]").forEach((panel) => { panel.hidden = panel.dataset.tabPanel !== tab.dataset.tab; });
      };
      tabs.forEach((tab, index) => {
        tab.addEventListener("click", () => select(tab));
        tab.addEventListener("keydown", (event) => {
          if (!["ArrowRight", "ArrowDown", "ArrowLeft", "ArrowUp"].includes(event.key)) return;
          event.preventDefault();
          const step = ["ArrowRight", "ArrowDown"].includes(event.key) ? 1 : -1;
          const next = tabs[(index + step + tabs.length) % tabs.length];
          next.focus();
          select(next);
        });
      });
    });

    // Emergency triage: pick a problem, tick the safety steps.
    document.querySelectorAll("[data-triage]").forEach((root) => {
      const picks = root.querySelectorAll("[data-triage-pick]");
      picks.forEach((pick) => pick.addEventListener("click", () => {
        picks.forEach((item) => item.setAttribute("aria-selected", String(item === pick)));
        root.querySelectorAll("[data-triage-panel]").forEach((panel) => { panel.hidden = panel.dataset.triagePanel !== pick.dataset.triagePick; });
      }));
      root.querySelectorAll("[data-triage-panel]").forEach((panel) => {
        panel.addEventListener("change", () => {
          panel.querySelector("[data-triage-done]").textContent = panel.querySelectorAll("[data-triage-step]:checked").length;
        });
      });
    });

    // Scroll-snap rail with arrow buttons.
    document.querySelectorAll("[data-rail]").forEach((rail) => {
      const section = rail.closest("section");
      const move = (direction) => rail.scrollBy({ left: direction * (rail.firstElementChild.clientWidth + 20), behavior: "smooth" });
      section.querySelector("[data-rail-prev]")?.addEventListener("click", () => move(-1));
      section.querySelector("[data-rail-next]")?.addEventListener("click", () => move(1));
    });

    // Filter chips: reviews on the home page, jobs on the services page.
    document.querySelectorAll("[data-filter-group]").forEach((group) => {
      const items = group.parentElement.querySelectorAll("[data-filter-items] [data-category]");
      const empty = group.parentElement.querySelector("[data-filter-empty]");
      group.addEventListener("click", (event) => {
        const button = event.target.closest("[data-filter]");
        if (!button) return;
        const filter = button.dataset.filter;
        let shown = 0;
        group.querySelectorAll("[data-filter]").forEach((chip) => chip.setAttribute("aria-pressed", String(chip === button)));
        items.forEach((item) => {
          const match = filter === "all" || item.dataset.category.split(" ").includes(filter);
          item.hidden = !match;
          if (match) shown++;
        });
        if (empty) empty.hidden = shown > 0;
      });
    });

    // Postcode coverage checker.
    document.querySelectorAll("[data-coverage]").forEach((form) => {
      const areas = Object.fromEntries(form.dataset.areas.split(",").map((pair) => pair.split(":")));
      const input = form.querySelector("[data-coverage-input]");
      const result = form.parentElement.querySelector("[data-coverage-result]");
      const check = () => {
        const code = input.value.trim().toUpperCase().replace(/\s+/g, "");
        if (!code) return;
        const district = Object.keys(areas).sort((a, b) => b.length - a.length).find((area) => code === area || (code.startsWith(area) && /^\d[A-Z]{2}$/.test(code.slice(area.length))));
        result.textContent = district
          ? `Yes. We cover ${district}, and tonight an engineer is about ${areas[district]} minutes away.`
          : "Not on our regular patch yet. Call anyway: if an engineer is free we will still come, and we tell you the travel time first.";
        result.classList.toggle("text-flare-deep", !district);
      };
      form.addEventListener("submit", (event) => { event.preventDefault(); check(); });
      form.parentElement.querySelectorAll("[data-coverage-area]").forEach((button) => button.addEventListener("click", () => { input.value = button.dataset.coverageArea; check(); }));
    });

    // Callback and contact forms confirm in place.
    document.querySelectorAll("[data-callback]").forEach((form) => {
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        const status = form.querySelector("[data-callback-status]");
        const name = form.querySelector("input[type=text]")?.value.trim().split(" ")[0] || "there";
        status.textContent = `Thanks, ${name}. A dispatcher will ring you within five minutes.`;
        status.hidden = false;
        form.reset();
      });
    });

    // Mobile call bar appears after the first screen.
    (() => {
      const bar = document.querySelector("[data-call-bar]");
      if (!bar || navigator.webdriver) return;
      const toggle = () => { bar.hidden = scrollY < innerHeight * 0.8; };
      addEventListener("scroll", toggle, { passive: true });
      toggle();
    })();

    // Day and night rates on the pricing page.
    document.querySelectorAll("[data-rate-toggle]").forEach((toggle) => {
      toggle.addEventListener("click", () => {
        const night = toggle.getAttribute("aria-checked") !== "true";
        toggle.setAttribute("aria-checked", String(night));
        document.querySelectorAll("[data-price-day]").forEach((price) => { price.textContent = night ? price.dataset.priceNight : price.dataset.priceDay; });
        document.querySelectorAll("[data-rate-label]").forEach((label) => { label.textContent = night ? "Night rate, 8pm to 7am and Sundays" : "Day rate, 7am to 8pm"; });
      });
    });

    // Live search on the services page FAQ.
    document.querySelectorAll("[data-search-target]").forEach((input) => {
      const list = document.querySelector(input.dataset.searchTarget);
      const empty = list?.parentElement.querySelector("[data-search-empty]");
      input.addEventListener("input", () => {
        const query = input.value.trim().toLowerCase();
        let shown = 0;
        list.querySelectorAll("[data-search-item]").forEach((item) => {
          const match = !query || item.textContent.toLowerCase().includes(query);
          item.hidden = !match;
          if (match) shown++;
        });
        if (empty) empty.hidden = shown > 0;
      });
    });

    // Multi-step callout request on the contact page.
    document.querySelectorAll("[data-steps]").forEach((form) => {
      const steps = [...form.querySelectorAll("[data-step]")];
      const progress = form.querySelector("[data-step-progress]");
      const label = form.querySelector("[data-step-label]");
      const done = form.parentElement.querySelector("[data-steps-done]");
      let current = 0;
      const show = (index) => {
        current = index;
        steps.forEach((step, i) => { step.hidden = i !== index; });
        progress?.setAttribute("aria-valuenow", String(index + 1));
        progress?.style.setProperty("--progress", `${((index + 1) / steps.length) * 100}%`);
        if (label) label.textContent = `Step ${index + 1} of ${steps.length}`;
      };
      form.addEventListener("click", (event) => {
        if (event.target.closest("[data-step-next]")) {
          const fields = [...steps[current].querySelectorAll("input, select, textarea")];
          if (fields.every((field) => field.reportValidity())) show(Math.min(current + 1, steps.length - 1));
        }
        if (event.target.closest("[data-step-back]")) show(Math.max(current - 1, 0));
      });
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        if (!done) return;
        const problem = form.querySelector("input[name=problem]:checked")?.value || "your problem";
        const area = form.querySelector("[name=postcode]")?.value.trim().toUpperCase() || "your area";
        done.querySelector("[data-steps-summary]").textContent = `${problem} in ${area}. A dispatcher will call you back within five minutes.`;
        form.hidden = true;
        done.hidden = false;
      });
      show(0);
    });
  </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

Nightjar screenshot Premium

Business

Nightjar

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