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

Loamwell Hero

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

0 2
Loamwell Hero 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 Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero 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 hero -->
    <section id="top" class="px-4 py-8 md:px-6 md:py-14" data-hero>
      <div class="mx-auto flex max-w-[1480px] items-center gap-3 md:gap-8">
        <button type="button" data-hero-step="-1" aria-controls="hero-card" aria-label="Previous" class="step hidden shrink-0 sm:flex"><i class="fa-solid fa-chevron-left text-sm" aria-hidden="true"></i></button>
        <div id="hero-card" class="slab mx-auto flex min-h-[30rem] w-full max-w-[1080px] flex-col items-center justify-center px-6 py-16 text-center md:min-h-[38rem] md:px-16" data-tone="pine" aria-live="polite">
          <h1 class="soft text-6xl sm:text-7xl md:text-[8.5rem]" data-hero-title>lighter<br>by spring</h1>
          <p class="mx-auto mt-7 max-w-md text-xl font-light leading-snug md:text-2xl" data-hero-text>Plain advice that helps a small business use less and waste less.</p>
          <a href="contact.html" class="slab-button pill mt-9">Book a first call</a>
        </div>
        <button type="button" data-hero-step="1" aria-controls="hero-card" aria-label="Next" class="step hidden shrink-0 sm:flex"><i class="fa-solid fa-chevron-right text-sm" aria-hidden="true"></i></button>
      </div>
      <div class="mx-auto mt-5 flex max-w-[1080px] items-center justify-between gap-4 px-1 text-sm text-ink/60">
        <p><span class="font-semibold text-ink" data-hero-count>1</span> of 3</p>
        <div class="flex gap-2 sm:hidden">
          <button type="button" data-hero-step="-1" aria-controls="hero-card" aria-label="Previous" class="step !h-10"><i class="fa-solid fa-chevron-left text-sm" aria-hidden="true"></i></button>
          <button type="button" data-hero-step="1" aria-controls="hero-card" aria-label="Next" class="step !h-10"><i class="fa-solid fa-chevron-right text-sm" aria-hidden="true"></i></button>
        </div>
        <p class="hidden sm:block">Sustainability advice for firms of five to two hundred people</p>
      </div>
      <script type="application/json" data-slides>
        [
          { "title": "lighter<br>by spring", "text": "Plain advice that helps a small business use less and waste less.", "tone": "pine" },
          { "title": "lower bills<br>first", "text": "We start where saving carbon also saves money, and work outwards from there.", "tone": "sage" },
          { "title": "no green<br>gloss", "text": "Claims you can stand behind, with the numbers written down beside them.", "tone": "cream" }
        ]
      </script>
    </section>
    <!-- block:end hero -->
<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