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

Plumbline Demo

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

0 5
Plumbline Demo preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con 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 Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo 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 demo -->
    <section id="estimator" class="bg-fog">
      <div class="mx-auto grid max-w-[1500px] gap-12 px-6 py-20 md:px-16 md:py-28 lg:grid-cols-12">
        <div class="lg:col-span-7">
          <p class="text-sm font-bold uppercase tracking-[0.18em] text-ink-mute">Rough cost in a minute</p>
          <h2 class="mt-4 max-w-xl text-3xl font-extrabold leading-tight tracking-tight md:text-5xl">What would yours cost?</h2>
          <p class="mt-5 max-w-xl text-lg text-ink-soft">Based on what our last 120 jobs really came to. It is a guide, not a quote: the fixed price comes after a free visit.</p>

          <form class="mt-10 grid gap-9" data-estimator>
            <fieldset>
              <legend class="text-sm font-bold">1. What are we working on?</legend>
              <div class="mt-3 flex flex-wrap gap-2">
                  <button type="button" data-room="kitchen" aria-pressed="true" class="rounded-full border-2 border-ink px-5 py-2.5 text-sm font-bold transition aria-pressed:bg-ink aria-pressed:text-white">Kitchen</button>
                  <button type="button" data-room="bathroom" aria-pressed="false" class="rounded-full border-2 border-ink px-5 py-2.5 text-sm font-bold transition aria-pressed:bg-ink aria-pressed:text-white">Bathroom</button>
                  <button type="button" data-room="loft" aria-pressed="false" class="rounded-full border-2 border-ink px-5 py-2.5 text-sm font-bold transition aria-pressed:bg-ink aria-pressed:text-white">Loft conversion</button>
                  <button type="button" data-room="home" aria-pressed="false" class="rounded-full border-2 border-ink px-5 py-2.5 text-sm font-bold transition aria-pressed:bg-ink aria-pressed:text-white">Whole home</button>
              </div>
            </fieldset>
            <div>
              <label for="est-size" class="flex items-baseline justify-between text-sm font-bold"><span>2. How big is it?</span><span class="text-2xl font-extrabold"><span data-size-value>14</span> m²</span></label>
              <input id="est-size" type="range" min="8" max="30" value="14" class="mt-4 w-full" data-size>
              <div class="mt-1 flex justify-between text-xs font-medium text-ink-mute"><span data-size-min>8 m²</span><span data-size-max>30 m²</span></div>
            </div>
            <fieldset>
              <legend class="text-sm font-bold">3. Which finish?</legend>
              <div class="mt-3 grid gap-3 sm:grid-cols-3">
                  <label class="cursor-pointer border-2 border-fog-line bg-white p-4 transition has-[:checked]:border-ink">
                    <input type="radio" name="finish" value="1" class="sr-only" >
                    <span class="block font-extrabold">Solid</span>
                    <span class="mt-1 block text-sm text-ink-soft">Good trade ranges, laminate tops, ceramic tile.</span>
                  </label>
                  <label class="cursor-pointer border-2 border-fog-line bg-white p-4 transition has-[:checked]:border-ink">
                    <input type="radio" name="finish" value="1.3" class="sr-only" checked>
                    <span class="block font-extrabold">Considered</span>
                    <span class="mt-1 block text-sm text-ink-soft">Painted units, quartz, porcelain, brassware.</span>
                  </label>
                  <label class="cursor-pointer border-2 border-fog-line bg-white p-4 transition has-[:checked]:border-ink">
                    <input type="radio" name="finish" value="1.75" class="sr-only" >
                    <span class="block font-extrabold">Bespoke</span>
                    <span class="mt-1 block text-sm text-ink-soft">Made joinery, stone, designer fittings.</span>
                  </label>
              </div>
            </fieldset>
            <fieldset>
              <legend class="text-sm font-bold">4. Anything extra?</legend>
              <div class="mt-3 grid gap-2 sm:grid-cols-3">
                  <label class="flex cursor-pointer items-center gap-3 text-sm font-medium"><input type="checkbox" value="plumbing" class="h-5 w-5 accent-[#121212]" data-extra>Move the plumbing</label>
                  <label class="flex cursor-pointer items-center gap-3 text-sm font-medium"><input type="checkbox" value="rewire" class="h-5 w-5 accent-[#121212]" data-extra>Rewire the room</label>
                  <label class="flex cursor-pointer items-center gap-3 text-sm font-medium"><input type="checkbox" value="ufh" class="h-5 w-5 accent-[#121212]" data-extra>Underfloor heating</label>
              </div>
            </fieldset>
          </form>
        </div>

        <aside class="lg:col-span-5" aria-live="polite">
          <div class="bg-ink p-8 text-white md:p-10 lg:sticky lg:top-10">
            <p class="text-sm font-bold uppercase tracking-[0.18em] text-white/60">Likely cost, VAT included</p>
            <p class="mt-4 text-4xl font-extrabold tracking-tight md:text-5xl"><span data-est-low>£21,500</span> <span class="text-white/50">to</span> <span data-est-high>£26,500</span></p>
            <p class="mt-3 text-white/70"><span data-est-summary>A 14 m² kitchen in a considered finish</span>, on site for about <strong class="text-white"><span data-est-weeks>5</span> weeks</strong>.</p>
            <div class="mt-8 flex h-3 overflow-hidden bg-white/10" role="img" aria-label="Where the money goes">
              <span class="bg-marker transition-all duration-500" style="width: 42%" data-bar="labour"></span>
              <span class="bg-white transition-all duration-500" style="width: 36%" data-bar="materials"></span>
              <span class="bg-white/40 transition-all duration-500" style="width: 22%" data-bar="fittings"></span>
            </div>
            <dl class="mt-4 grid grid-cols-3 gap-3 text-sm">
              <div><dt class="flex items-center gap-2 text-white/60"><span class="h-2 w-2 bg-marker"></span>Labour</dt><dd class="mt-1 font-bold" data-part="labour">£10,100</dd></div>
              <div><dt class="flex items-center gap-2 text-white/60"><span class="h-2 w-2 bg-white"></span>Materials</dt><dd class="mt-1 font-bold" data-part="materials">£8,600</dd></div>
              <div><dt class="flex items-center gap-2 text-white/60"><span class="h-2 w-2 bg-white/40"></span>Fittings</dt><dd class="mt-1 font-bold" data-part="fittings">£5,300</dd></div>
            </dl>
            <a href="contact.html" data-est-send class="mt-9 flex items-center justify-between gap-4 rounded-full bg-marker px-7 py-4 font-bold text-ink hover:bg-white">Turn this into a fixed quote <i class="fa-solid fa-arrow-right"></i></a>
            <p class="mt-4 text-xs text-white/50">We carry your answers over to the quote form, so you do not type them twice.</p>
          </div>
        </aside>
      </div>
    </section>
    <!-- block:end demo -->
<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>

De esta plantilla

Plumbline screenshot Premium

Negocios

Plumbline

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