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

Loamwell Demo

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

0 2
Loamwell Demo preview
loamwell.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>Loamwell Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo block extracted from the Loamwell template, available in Tailwind CSS.">
  <meta name="keywords" content="Loamwell, Tailwind CSS template, HTML website template, consulting template, sustainability consultant website, advisory firm template, carbon footprint estimator, services and fees page, contact form">
  <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="Loamwell | Tailwind CSS Consulting Template">
  <meta property="og:description" content="A calm Tailwind CSS template for sustainability consultants, with a deep green card hero in soft serif type, a services scroll story, a footprint estimator, a first-year timeline and a contact form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Loamwell template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Loamwell | Tailwind CSS Consulting Template">
  <meta name="twitter:description" content="A calm Tailwind CSS template for sustainability consultants, with a deep green card hero in soft serif type, a services scroll story, a footprint estimator, a first-year timeline and a contact form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Loamwell 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=DM+Serif+Display&family=Outfit:wght@300;400;500;600&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            pine: { DEFAULT: '#14532f', deep: '#0d3a20' },
            sage: { DEFAULT: '#c5dbb0', soft: '#e3edd8' },
            cream: '#f5f2e9',
            ink: '#1c2a21',
            stone: '#b5b5b0'
          },
          fontFamily: {
            sans: ['Outfit', 'sans-serif'],
            serif: ['"DM Serif Display"', 'serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .wordmark { font-family: 'DM Serif Display', serif; font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; text-transform: lowercase; color: #14532f; }
    .soft { font-family: 'DM Serif Display', serif; font-weight: 400; text-transform: lowercase; letter-spacing: -.015em; line-height: .95; }
    .eyebrow { font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: #14532f; }
    .slab { transition: background-color .5s ease, color .5s ease; }
    .slab[data-tone="pine"] { background: #14532f; color: #c5dbb0; }
    .slab[data-tone="sage"] { background: #c5dbb0; color: #14532f; }
    .slab[data-tone="cream"] { background: #f5f2e9; color: #14532f; box-shadow: inset 0 0 0 2px #14532f; }
    .slab[data-tone="pine"] .slab-button { background: #c5dbb0; color: #0d3a20; }
    .slab:not([data-tone="pine"]) .slab-button { background: #14532f; color: #fff; }
    .step { display: flex; height: 3.5rem; width: 2.25rem; align-items: center; justify-content: center; border-radius: .2rem; background: #b5b5b0; color: #fff; transition: background-color .2s ease; }
    .step:hover { background: #14532f; }
    .pill { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 9999px; padding: .8rem 1.6rem; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
    .pill-pine { background: #14532f; color: #fff; }
    .pill-pine:hover { background: #0d3a20; }
    .pill-sage { background: #c5dbb0; color: #0d3a20; }
    .pill-sage:hover { background: #e3edd8; }
    .field { width: 100%; border: 1.5px solid #c9cfc4; border-radius: .5rem; background: #fff; padding: .8rem 1rem; color: #1c2a21; outline: none; }
    .field:focus { border-color: #14532f; box-shadow: 0 0 0 3px rgba(20, 83, 47, .15); }
    input[type="range"] { width: 100%; accent-color: #14532f; }
    .trail { position: absolute; left: 1.1rem; top: .5rem; bottom: .5rem; width: 2px; background: #c5dbb0; }
    .trail-fill { display: block; width: 100%; height: 100%; background: #14532f; transform-origin: top; }
    .stack.is-stacked { display: grid; }
    .stack.is-stacked > * { grid-area: 1 / 1; transition: transform .5s ease, opacity .5s ease; }
    .stack.is-stacked > [data-pos="0"] { z-index: 3; }
    .stack.is-stacked > [data-pos="1"] { z-index: 2; transform: translate(1.25rem, 1.25rem) rotate(2deg); }
    .stack.is-stacked > [data-pos="2"] { z-index: 1; transform: translate(2.5rem, 2.5rem) rotate(4deg); }
    .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) { .slab, .stack.is-stacked > * { transition: none; } }
  </style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- block:start demo -->
    <section id="estimate" class="px-6 py-16 md:px-10 md:py-24" data-estimate>
      <div class="mx-auto grid max-w-[1320px] items-center gap-12 lg:grid-cols-12">
        <div class="lg:col-span-6">
          <p class="eyebrow">Back of an envelope</p>
          <h2 class="soft mt-4 text-5xl text-pine md:text-7xl">a rough<br>first number</h2>
          <p class="mt-6 max-w-md text-lg font-light leading-relaxed text-ink/80">Move the three sliders for a rough idea of a year's footprint. The real figure takes a few weeks, and this one takes ten seconds.</p>
          <div class="mt-9 max-w-md space-y-7">
            <label class="block">
              <span class="flex justify-between font-medium"><span>People who work here</span><output data-estimate-out="people">25</output></span>
              <input type="range" name="people" min="5" max="200" step="5" value="25" class="mt-3" data-estimate-input="people">
            </label>
            <label class="block">
              <span class="flex justify-between font-medium"><span>Floor area, in square metres</span><output data-estimate-out="area">400</output></span>
              <input type="range" name="area" min="50" max="3000" step="50" value="400" class="mt-3" data-estimate-input="area">
            </label>
            <label class="block">
              <span class="flex justify-between font-medium"><span>Deliveries in and out, each week</span><output data-estimate-out="loads">12</output></span>
              <input type="range" name="loads" min="0" max="100" step="2" value="12" class="mt-3" data-estimate-input="loads">
            </label>
          </div>
        </div>
        <div class="lg:col-span-6">
          <div class="slab p-8 md:p-12" data-tone="pine">
            <p class="text-sm font-medium opacity-80">Roughly, each year</p>
            <p class="mt-3 flex items-baseline gap-3"><span class="soft text-7xl md:text-[7.5rem]" data-estimate-total>54</span><span class="text-xl font-light">tonnes of CO₂e</span></p>
            <div class="mt-8 flex h-4 overflow-hidden rounded-full bg-white/15" aria-hidden="true">
              <span class="bg-sage" data-estimate-bar="energy" style="width: 33%"></span>
              <span class="bg-white" data-estimate-bar="travel" style="width: 42%"></span>
              <span class="bg-sage/50" data-estimate-bar="goods" style="width: 25%"></span>
            </div>
            <dl class="mt-5 grid grid-cols-3 gap-4 text-sm">
              <div><dt class="flex items-center gap-2"><span class="h-2.5 w-2.5 rounded-full bg-sage"></span>Buildings</dt><dd class="mt-1 text-lg font-medium text-white"><span data-estimate-part="energy">18</span> t</dd></div>
              <div><dt class="flex items-center gap-2"><span class="h-2.5 w-2.5 rounded-full bg-white"></span>Travel</dt><dd class="mt-1 text-lg font-medium text-white"><span data-estimate-part="travel">23</span> t</dd></div>
              <div><dt class="flex items-center gap-2"><span class="h-2.5 w-2.5 rounded-full bg-sage/50"></span>Goods</dt><dd class="mt-1 text-lg font-medium text-white"><span data-estimate-part="goods">13</span> t</dd></div>
            </dl>
            <p class="mt-8 border-t border-white/20 pt-6 text-lg font-light">A first year with us usually trims about <strong class="font-medium text-white"><span data-estimate-saving>15</span> tonnes</strong> of that.</p>
            <a href="contact.html" data-estimate-link class="slab-button pill mt-7">Send this with my enquiry</a>
          </div>
        </div>
      </div>
    </section>
    <!-- block:end demo -->
<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));
    })();

    document.querySelectorAll("[data-hero]").forEach((root) => {
      const source = root.querySelector("[data-slides]");
      if (!source) return;
      const slides = JSON.parse(source.textContent);
      const card = root.querySelector(".slab");
      let current = 0;
      const show = (index) => {
        current = (index + slides.length) % slides.length;
        const slide = slides[current];
        card.dataset.tone = slide.tone;
        root.querySelector("[data-hero-title]").innerHTML = slide.title;
        root.querySelector("[data-hero-text]").textContent = slide.text;
        root.querySelector("[data-hero-count]").textContent = current + 1;
      };
      root.querySelectorAll("[data-hero-step]").forEach((button) => {
        button.addEventListener("click", () => show(current + Number(button.dataset.heroStep)));
      });
    });

    document.querySelectorAll("[data-estimate]").forEach((root) => {
      const inputs = [...root.querySelectorAll("[data-estimate-input]")];
      const link = root.querySelector("[data-estimate-link]");
      const set = (selector, value) => { const node = root.querySelector(selector); if (node) node.textContent = value; };
      const update = () => {
        const value = Object.fromEntries(inputs.map((input) => [input.dataset.estimateInput, Number(input.value)]));
        inputs.forEach((input) => set(`[data-estimate-out="${input.dataset.estimateInput}"]`, input.value));
        const parts = { energy: value.area * 0.045, travel: value.people * 0.92, goods: value.loads * 1.1 };
        const total = parts.energy + parts.travel + parts.goods;
        Object.entries(parts).forEach(([key, tonnes]) => {
          set(`[data-estimate-part="${key}"]`, Math.round(tonnes));
          root.querySelector(`[data-estimate-bar="${key}"]`).style.width = `${total ? (tonnes / total) * 100 : 0}%`;
        });
        set("[data-estimate-total]", Math.round(total));
        set("[data-estimate-saving]", Math.round(total * 0.27));
        if (link) link.href = link.getAttribute("href").split("?")[0] + `?footprint=${Math.round(total)}&people=${value.people}`;
      };
      inputs.forEach((input) => input.addEventListener("input", update));
      update();
    });

    document.querySelectorAll("[data-trail]").forEach((list) => {
      const fill = list.querySelector("[data-trail-fill]");
      if (!fill || navigator.webdriver || matchMedia("(prefers-reduced-motion: reduce)").matches) return;
      const update = () => {
        const box = list.getBoundingClientRect();
        const done = Math.min(1, Math.max(0, (innerHeight * 0.7 - box.top) / box.height));
        fill.style.transform = `scaleY(${done})`;
      };
      addEventListener("scroll", update, { passive: true });
      addEventListener("resize", update);
      update();
    });

    document.querySelectorAll("[data-stack]").forEach((stack) => {
      const cards = [...stack.children];
      const button = document.querySelector(`[data-stack-next][aria-controls="${stack.id}"]`);
      if (!button || cards.length < 2) return;
      stack.classList.add("is-stacked");
      stack.classList.remove("space-y-6");
      button.addEventListener("click", () => {
        cards.forEach((card) => { card.dataset.pos = (Number(card.dataset.pos) - 1 + cards.length) % cards.length; });
      });
    });

    document.querySelectorAll("[data-enquiry]").forEach((form) => {
      form.addEventListener("submit", (event) => {
        event.preventDefault();
        if (!form.reportValidity()) return;
        form.querySelector("[data-enquiry-done]").hidden = false;
      });
    });
  </script>
<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

Loamwell screenshot

Servicios profesionales

Loamwell

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