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

Everknit Hero

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

0 6
Everknit Hero preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access

everknit.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>Everknit Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Everknit template, available in Tailwind CSS.">
  <meta name="keywords" content="Everknit, Tailwind CSS template, HTML website template, ecommerce template, apparel store, clothing shop, streetwear brand, product filters, responsive fashion design">
  <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="Everknit | Tailwind CSS Apparel Ecommerce Template">
  <meta property="og:description" content="A bold Swiss-style Tailwind CSS ecommerce template for apparel basics brands, streetwear labels, and online clothing stores with filters, lookbooks, and a full cart flow.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Everknit template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Everknit | Tailwind CSS Apparel Ecommerce Template">
  <meta name="twitter:description" content="A bold Swiss-style Tailwind CSS ecommerce template for apparel basics brands, streetwear labels, and online clothing stores with filters, lookbooks, and a full cart flow.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Everknit template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&amp;display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ink: '#0d0d0d',
            paper: '#fafafa',
            mist: '#f1f1f1',
            ember: '#f59e2e',
            apricot: '#fcc58f',
            iris: '#8b5cf6',
            citron: '#c5e03a'
          },
          fontFamily: {
            sans: ['"Inter Tight"', 'ui-sans-serif', 'system-ui', 'sans-serif']
          }
        }
      }
    };
  </script>
  <style>
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
    ::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
    @keyframes page-fade-out { to { opacity: 0; } }
    @keyframes page-fade-in { from { opacity: 0; } }
    html { scroll-behavior: smooth; }
    body { font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif; }
    .no-scrollbar { scrollbar-width: none; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .wordmark-track { animation: wordmark-slide 38s linear infinite; }
    @keyframes wordmark-slide { to { transform: translateX(-50%); } }
    .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; }
    [data-look-tile] { transition: opacity .4s ease, filter .4s ease, transform .4s ease; }
    [data-look-tile].is-dimmed { opacity: .28; filter: grayscale(1); }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .wordmark-track { animation: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-paper text-ink antialiased overflow-x-hidden">
<!-- block:start hero -->
    <section id="hero" class="mx-auto max-w-[1920px] px-5 lg:px-[1.1vw]">
      <h1 class="whitespace-nowrap text-center text-[14.6vw] md:text-[15.8vw] lg:text-[16.4vw] font-medium leading-[0.9] tracking-[-0.055em] pt-2 md:pt-[0.6vw]">Uncomplicated</h1>
      <div class="mt-6 md:mt-[2.4vw] flex flex-col gap-4 md:flex-row md:items-end md:justify-between text-base md:text-lg lg:text-[1.46vw] leading-snug">
        <p class="max-w-[30ch]">Layer up with confidence — basics built to feel right from the first wear</p>
        <span class="hidden md:block flex-1 mx-[3vw] mb-[0.2vw] h-px bg-ink/10"></span>
        <p class="max-w-[30ch] md:text-right">Quiet essentials for busy days, cut to make getting dressed easy</p>
      </div>

      <div class="relative mt-5 md:mt-[1.4vw] overflow-hidden rounded-2xl lg:rounded-[1vw] bg-apricot aspect-[4/5] sm:aspect-[16/9] lg:aspect-[10/3]">
        <img src="https://images.unsplash.com/photo-1563418512451-5c587bbd6e08?auto=format&fit=crop&w=2000&q=80" alt="Folds of warm orange satin fabric catching soft light" class="absolute inset-0 h-full w-full object-cover" style="filter: hue-rotate(14deg) saturate(1.35) brightness(1.08)">
        <div class="absolute inset-0 bg-gradient-to-l from-apricot/50 via-transparent to-ember/10"></div>
        <a href="shop.html" class="absolute right-4 top-4 sm:top-auto sm:bottom-[46%] lg:bottom-auto lg:top-[37%] lg:right-[1.1vw] inline-flex items-center gap-3 lg:gap-[1vw] rounded-full bg-ink py-1.5 pl-5 pr-1.5 lg:py-[0.35vw] lg:pl-[1.4vw] lg:pr-[0.35vw] text-sm lg:text-[1.2vw] text-white transition hover:bg-black/80">
          Buy Now
          <span class="inline-flex h-9 w-9 lg:h-[3.2vw] lg:w-[3.2vw] items-center justify-center rounded-full bg-white text-ink"><i class="fa-solid fa-arrow-up rotate-45"></i></span>
        </a>
        <div class="absolute inset-x-3 bottom-3 grid grid-cols-3 gap-2 sm:left-auto sm:w-[60%] lg:inset-x-auto lg:right-[1vw] lg:bottom-[1vw] lg:w-[34.5vw] lg:gap-[1.2vw]">
            <div data-swatch-card class="relative aspect-square rounded-lg lg:rounded-[0.5vw] bg-white p-2 lg:p-[0.8vw] shadow-sm">
              <a href="boxy-cotton-tee.html" class="text-xs sm:text-sm lg:text-[1.15vw] leading-none">Tees</a>
              <div class="absolute left-2 bottom-2 lg:left-[0.9vw] lg:bottom-[1vw] flex flex-col gap-1 lg:gap-[0.45vw]" role="group" aria-label="Tees colours">
                  <button type="button" data-swatch="#f59e2e" aria-pressed="true" aria-label="Ember" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #f59e2e"></button>
                  <button type="button" data-swatch="#8b5cf6" aria-pressed="false" aria-label="Iris" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #8b5cf6"></button>
                  <button type="button" data-swatch="#c5e03a" aria-pressed="false" aria-label="Citron" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #c5e03a"></button>
              </div>
              <svg data-swatch-target viewBox="0 0 400 400" class="absolute right-1 bottom-1 h-[72%] w-[72%] lg:right-[0.4vw] lg:bottom-[0.3vw]" style="color: #f59e2e" aria-hidden="true">
                  <path d="M146 34 C166 50 234 50 254 34 L322 56 C340 64 352 76 360 92 L392 160 L334 186 L320 162 L320 376 L80 376 L80 162 L66 186 L8 160 L40 92 C48 76 60 64 78 56 Z" fill="currentColor"/>
                  <path d="M146 34 C170 62 230 62 254 34 C236 26 164 26 146 34 Z" fill="#000" fill-opacity=".22"/>
                  <path d="M80 162 L100 62 M320 162 L300 62" stroke="#000" stroke-opacity=".1" stroke-width="3" fill="none"/>
              </svg>
            </div>
            <div data-swatch-card class="relative aspect-square rounded-lg lg:rounded-[0.5vw] bg-white p-2 lg:p-[0.8vw] shadow-sm">
              <a href="loopback-hoodie.html" class="text-xs sm:text-sm lg:text-[1.15vw] leading-none">Hoodie</a>
              <div class="absolute left-2 bottom-2 lg:left-[0.9vw] lg:bottom-[1vw] flex flex-col gap-1 lg:gap-[0.45vw]" role="group" aria-label="Hoodie colours">
                  <button type="button" data-swatch="#f59e2e" aria-pressed="true" aria-label="Ember" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #f59e2e"></button>
                  <button type="button" data-swatch="#8b5cf6" aria-pressed="false" aria-label="Iris" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #8b5cf6"></button>
                  <button type="button" data-swatch="#c5e03a" aria-pressed="false" aria-label="Citron" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #c5e03a"></button>
              </div>
              <svg data-swatch-target viewBox="0 0 400 400" class="absolute right-1 bottom-1 h-[72%] w-[72%] lg:right-[0.4vw] lg:bottom-[0.3vw]" style="color: #f59e2e" aria-hidden="true">
                  <path d="M148 62 C146 18 254 18 252 62 L310 78 C336 86 350 102 356 126 L386 332 L338 340 L318 176 L318 374 L82 374 L82 176 L62 340 L14 332 L44 126 C50 102 64 86 90 78 Z" fill="currentColor"/>
                  <path d="M162 66 C160 36 240 36 238 66 C230 100 170 100 162 66 Z" fill="#000" fill-opacity=".22"/>
                  <path d="M132 276 L268 276 L284 336 L116 336 Z M186 96 L182 166 M214 96 L218 166" stroke="#000" stroke-opacity=".16" stroke-width="4" fill="none"/>
              </svg>
            </div>
            <div data-swatch-card class="relative aspect-square rounded-lg lg:rounded-[0.5vw] bg-white p-2 lg:p-[0.8vw] shadow-sm">
              <a href="shop.html" class="text-xs sm:text-sm lg:text-[1.15vw] leading-none">Pants</a>
              <div class="absolute left-2 bottom-2 lg:left-[0.9vw] lg:bottom-[1vw] flex flex-col gap-1 lg:gap-[0.45vw]" role="group" aria-label="Pants colours">
                  <button type="button" data-swatch="#f59e2e" aria-pressed="true" aria-label="Ember" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #f59e2e"></button>
                  <button type="button" data-swatch="#8b5cf6" aria-pressed="false" aria-label="Iris" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #8b5cf6"></button>
                  <button type="button" data-swatch="#c5e03a" aria-pressed="false" aria-label="Citron" class="h-2.5 w-2.5 lg:h-[0.95vw] lg:w-[0.95vw] rounded-full ring-offset-1 aria-pressed:ring-1 aria-pressed:ring-ink/40" style="background: #c5e03a"></button>
              </div>
              <svg data-swatch-target viewBox="0 0 400 400" class="absolute right-1 bottom-1 h-[72%] w-[72%] lg:right-[0.4vw] lg:bottom-[0.3vw]" style="color: #f59e2e" aria-hidden="true">
                  <path d="M118 26 L282 26 L296 382 L224 382 L200 132 L176 382 L104 382 Z" fill="currentColor"/>
                  <path d="M118 26 L282 26 L283 54 L117 54 Z" fill="#000" fill-opacity=".16"/>
                  <path d="M200 54 L200 132 M150 60 L140 120 M250 60 L260 120" stroke="#000" stroke-opacity=".14" stroke-width="3" fill="none"/>
              </svg>
            </div>
        </div>
      </div>
    </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 read = (key, fallback) => { try { return Number(localStorage.getItem(key) ?? fallback); } catch (e) { return fallback; } };
      const write = (key, value) => { try { localStorage.setItem(key, String(value)); } catch (e) {} };
      const paint = () => {
        document.querySelectorAll("[data-cart-count]").forEach((el) => { el.textContent = read("everknit-cart", 2); });
        document.querySelectorAll("[data-wish-count]").forEach((el) => { el.textContent = read("everknit-wish", 3); });
      };
      window.everknitStore = { read, write, paint };
      paint();
      document.addEventListener("click", (event) => {
        const add = event.target.closest("[data-add-cart]");
        if (add) {
          write("everknit-cart", read("everknit-cart", 2) + 1);
          paint();
          add.classList.add("bg-ink", "text-white");
          setTimeout(() => add.classList.remove("bg-ink", "text-white"), 600);
        }
        const wish = event.target.closest("[data-wish]");
        if (wish) {
          const saved = wish.getAttribute("aria-pressed") !== "true";
          wish.setAttribute("aria-pressed", String(saved));
          const icon = wish.querySelector("[data-wish-icon]");
          if (icon) { icon.classList.toggle("fa-solid", saved); icon.classList.toggle("fa-regular", !saved); }
          write("everknit-wish", Math.max(0, read("everknit-wish", 3) + (saved ? 1 : -1)));
          paint();
        }
      });
    })();

    document.querySelectorAll("[data-swatch-card]").forEach((card) => {
      const target = card.querySelector("[data-swatch-target]");
      card.querySelectorAll("[data-swatch]").forEach((swatch) => {
        swatch.addEventListener("click", () => {
          card.querySelectorAll("[data-swatch]").forEach((other) => other.setAttribute("aria-pressed", String(other === swatch)));
          if (target) target.style.color = swatch.dataset.swatch;
        });
      });
    });

    document.querySelectorAll("[data-shop-filter]").forEach((form) => {
      const section = form.closest("section");
      const items = [...section.querySelectorAll("[data-filter-items] [data-product]")];
      const empty = section.querySelector("[data-filter-empty]");
      const count = section.querySelector("[data-filter-count]");
      const dot = form.querySelector("[data-color-dot]");
      const dotColors = { orange: "#f59e2e", yellow: "#f5c81e", all: "conic-gradient(#f59e2e 0 50%, #f5c81e 50% 100%)" };
      const inRange = (price, range) => range === "all" || (range === "under-100" && price < 100) || (range === "100-150" && price >= 100 && price <= 150) || (range === "over-150" && price > 150);
      const apply = () => {
        const data = new FormData(form);
        const q = String(data.get("q") || "").trim().toLowerCase();
        let shown = 0;
        items.forEach((item) => {
          const match = (data.get("category") === "all" || item.dataset.category === data.get("category"))
            && (data.get("size") === "all" || item.dataset.sizes.split(" ").includes(data.get("size")))
            && (data.get("color") === "all" || item.dataset.color === data.get("color"))
            && inRange(Number(item.dataset.price), data.get("price"))
            && (!q || item.dataset.name.includes(q) || item.dataset.category.includes(q));
          item.hidden = !match;
          if (match) shown += 1;
        });
        if (empty) empty.hidden = shown > 0;
        if (count) count.textContent = `${shown} ${shown === 1 ? "piece" : "pieces"}`;
        if (dot) dot.style.background = dotColors[data.get("color")] || dotColors.all;
      };
      form.addEventListener("input", apply);
      form.addEventListener("change", apply);
      section.querySelectorAll("[data-filter-clear]").forEach((button) => button.addEventListener("click", () => {
        form.reset();
        apply();
      }));
      apply();
    });

    document.querySelectorAll("[data-look-filter]").forEach((group) => {
      const tiles = group.closest("section").querySelectorAll("[data-look-tile]");
      group.addEventListener("click", (event) => {
        const button = event.target.closest("[data-look]");
        if (!button) return;
        const filter = button.dataset.look;
        group.querySelectorAll("[data-look]").forEach((chip) => chip.setAttribute("aria-pressed", String(chip === button)));
        tiles.forEach((tile) => tile.classList.toggle("is-dimmed", filter !== "all" && !tile.dataset.tags.split(" ").includes(filter)));
      });
    });

    document.querySelectorAll("[data-tee-slider]").forEach((slider) => {
      const track = slider.querySelector("[data-tee-track]");
      const step = () => (track.querySelector("[data-tee]")?.offsetWidth || track.clientWidth);
      const move = (direction) => {
        const max = track.scrollWidth - track.clientWidth - 4;
        if (direction > 0 && track.scrollLeft >= max) return track.scrollTo({ left: 0 });
        if (direction < 0 && track.scrollLeft <= 4) return track.scrollTo({ left: track.scrollWidth });
        track.scrollBy({ left: direction * step() });
      };
      slider.querySelector("[data-tee-prev]")?.addEventListener("click", () => move(-1));
      slider.querySelector("[data-tee-next]")?.addEventListener("click", () => move(1));
    });

    document.querySelectorAll("[data-copy-code]").forEach((button) => {
      button.addEventListener("click", () => {
        const code = button.dataset.copyCode;
        navigator.clipboard?.writeText(code).catch(() => {});
        button.textContent = "Copied";
        setTimeout(() => { button.textContent = code; }, 1400);
      });
    });

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

Everknit screenshot Premium

Tienda online

Everknit

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