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

Plumbline Stats

A stats block extracted from the Plumbline template, available in Tailwind CSS.

0 8
Plumbline Stats preview

Download Codebase

Commercial License

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

plumbline.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>Plumbline Stats | Tailwind CSS UI Block</title>
  <meta name="description" content="A stats block extracted from the Plumbline template, available in Tailwind CSS.">
  <meta name="keywords" content="Plumbline, Tailwind CSS template, HTML website template, renovation company template, builder website, home improvement, kitchen fitter, bathroom fitter, painter and decorator, cost estimator, 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="Plumbline | Tailwind CSS Business Template">
  <meta property="og:description" content="A clean Tailwind CSS template for renovation companies and trades, with a project rail, a cost estimator, a before and after gallery and a quote request page.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Plumbline template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Plumbline | Tailwind CSS Business Template">
  <meta name="twitter:description" content="A clean Tailwind CSS template for renovation companies and trades, with a project rail, a cost estimator, a before and after gallery and a quote request page.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Plumbline 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=Manrope:wght@400;500;700;800&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ink: { DEFAULT: '#121212', soft: '#3d3d3a', mute: '#6f6e69' },
            fog: { DEFAULT: '#f3f2ee', line: '#e2e0d9' },
            marker: { DEFAULT: '#ffc21a', deep: '#e0a400' }
          },
          fontFamily: {
            sans: ['Manrope', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .rail { scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .tile img { transition: transform .6s ease; }
    .tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
    .ticker-track { animation: ticker 36s linear infinite; }
    .ticker:hover .ticker-track { animation-play-state: paused; }
    @keyframes ticker { to { transform: translateX(-50%); } }
    input[type=range] { accent-color: #121212; }
    .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 { animation: none; } .tile img { transition: none; } }
  </style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- block:start stats -->
    <section class="ticker overflow-hidden bg-ink py-5 text-white" aria-label="Plumbline in numbers">
      <div class="ticker-track flex w-max gap-12 whitespace-nowrap text-lg font-bold">
            <span class="flex items-center gap-3" ><span class="text-marker">640</span><span class="font-medium text-white/80">homes finished since 2011</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" ><span class="text-marker">94%</span><span class="font-medium text-white/80">handed over on the agreed date</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" ><span class="text-marker">£0</span><span class="font-medium text-white/80">extras without your signature</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" ><span class="text-marker">23</span><span class="font-medium text-white/80">tradespeople on our own payroll</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" ><span class="text-marker">10 yrs</span><span class="font-medium text-white/80">guarantee on workmanship</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" aria-hidden="true"><span class="text-marker">640</span><span class="font-medium text-white/80">homes finished since 2011</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" aria-hidden="true"><span class="text-marker">94%</span><span class="font-medium text-white/80">handed over on the agreed date</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" aria-hidden="true"><span class="text-marker">£0</span><span class="font-medium text-white/80">extras without your signature</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" aria-hidden="true"><span class="text-marker">23</span><span class="font-medium text-white/80">tradespeople on our own payroll</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
            <span class="flex items-center gap-3" aria-hidden="true"><span class="text-marker">10 yrs</span><span class="font-medium text-white/80">guarantee on workmanship</span><span class="ml-9 h-1.5 w-1.5 rounded-full bg-white/40"></span></span>
      </div>
    </section>
    <!-- block:end stats -->
<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;
      });
    })();

    // Project rail arrows
    (() => {
      const rail = document.querySelector("[data-rail]");
      if (!rail) return;
      const step = (direction) => {
        const tile = rail.querySelector("a");
        const end = rail.scrollLeft + rail.clientWidth >= rail.scrollWidth - 4;
        if (direction > 0 && end) return rail.scrollTo({ left: 0, behavior: "smooth" });
        if (direction < 0 && rail.scrollLeft <= 4) return rail.scrollTo({ left: rail.scrollWidth, behavior: "smooth" });
        rail.scrollBy({ left: direction * tile.offsetWidth, behavior: "smooth" });
      };
      document.querySelector("[data-rail-prev]").addEventListener("click", () => step(-1));
      document.querySelector("[data-rail-next]").addEventListener("click", () => step(1));
    })();

    // Services list swaps the photo
    (() => {
      const image = document.querySelector("[data-hover-image]");
      if (!image) return;
      document.querySelectorAll("[data-hover-item]").forEach((item) => {
        const show = () => {
          if (image.src === item.dataset.image) return;
          image.style.opacity = "0";
          setTimeout(() => {
            image.src = item.dataset.image;
            image.alt = item.dataset.alt;
            image.style.opacity = "1";
          }, 150);
        };
        item.addEventListener("mouseenter", show);
        item.addEventListener("focus", show);
      });
    })();

    // Cost estimator
    (() => {
      const form = document.querySelector("[data-estimator]");
      if (!form) return;
      const rooms = {
        kitchen: { label: "kitchen", rate: 1320, min: 8, max: 30, start: 14, weeks: [2.5, 0.18], split: [42, 36, 22] },
        bathroom: { label: "bathroom", rate: 1900, min: 3, max: 12, start: 5, weeks: [1.5, 0.3], split: [48, 30, 22] },
        loft: { label: "loft conversion", rate: 1650, min: 15, max: 45, start: 25, weeks: [5, 0.16], split: [50, 38, 12] },
        home: { label: "whole-home refit", rate: 860, min: 40, max: 160, start: 80, weeks: [5, 0.09], split: [52, 34, 14] }
      };
      const finishes = { "1": "solid", "1.3": "considered", "1.75": "bespoke" };
      const size = form.querySelector("[data-size]");
      const pounds = (value) => "£" + (Math.round(value / 500) * 500).toLocaleString("en-GB");
      const exact = (value) => "£" + (Math.round(value / 100) * 100).toLocaleString("en-GB");
      const set = (selector, text) => { document.querySelector(selector).textContent = text; };
      let room = "kitchen";

      const update = () => {
        const config = rooms[room];
        const area = Number(size.value);
        const finish = form.querySelector("input[name=finish]:checked").value;
        let total = config.rate * area * Number(finish);
        const extras = [...form.querySelectorAll("[data-extra]:checked")].map((box) => box.value);
        if (extras.includes("plumbing")) total += 1800;
        if (extras.includes("rewire")) total += room === "home" ? 6500 : 2400;
        if (extras.includes("ufh")) total += 95 * area;
        const weeks = Math.ceil(config.weeks[0] + config.weeks[1] * area + extras.length * 0.5);
        const shift = finish === "1.75" ? 8 : finish === "1" ? -6 : 0;
        const split = [config.split[0] - shift, config.split[1], config.split[2] + shift];

        set("[data-size-value]", area);
        set("[data-est-low]", pounds(total * 0.9));
        set("[data-est-high]", pounds(total * 1.1));
        set("[data-est-weeks]", weeks);
        set("[data-est-summary]", `A ${area} m² ${config.label} in a ${finishes[finish]} finish`);
        ["labour", "materials", "fittings"].forEach((part, index) => {
          document.querySelector(`[data-bar=${part}]`).style.width = split[index] + "%";
          set(`[data-part=${part}]`, exact(total * split[index] / 100));
        });
        try {
          sessionStorage.setItem("plumbline-estimate", JSON.stringify({ room, area, finish: finishes[finish], extras, low: pounds(total * 0.9), high: pounds(total * 1.1) }));
        } catch (error) { /* storage is optional */ }
      };

      form.querySelectorAll("[data-room]").forEach((button) => {
        button.addEventListener("click", () => {
          room = button.dataset.room;
          form.querySelectorAll("[data-room]").forEach((other) => other.setAttribute("aria-pressed", String(other === button)));
          const config = rooms[room];
          size.min = config.min;
          size.max = config.max;
          size.value = config.start;
          set("[data-size-min]", config.min + " m²");
          set("[data-size-max]", config.max + " m²");
          update();
        });
      });
      form.addEventListener("input", update);
      form.addEventListener("submit", (event) => event.preventDefault());
      update();
    })();

    // Process tabs
    (() => {
      document.querySelectorAll("[data-tabs]").forEach((group) => {
        const tabs = [...group.querySelectorAll("[role=tab]")];
        const select = (tab) => {
          tabs.forEach((other) => {
            const active = other === tab;
            other.setAttribute("aria-selected", String(active));
            other.tabIndex = active ? 0 : -1;
            document.getElementById(other.getAttribute("aria-controls")).hidden = !active;
          });
        };
        tabs.forEach((tab, index) => {
          tab.addEventListener("click", () => select(tab));
          tab.addEventListener("keydown", (event) => {
            if (event.key !== "ArrowRight" && event.key !== "ArrowLeft") return;
            const next = tabs[(index + (event.key === "ArrowRight" ? 1 : -1) + tabs.length) % tabs.length];
            next.focus();
            select(next);
          });
        });
      });
    })();

    // 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

Plumbline screenshot Premium

Business

Plumbline

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