Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Menú de navegación

Everknit Navbar

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

0 5
Everknit Navbar 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 Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar 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 navbar -->
  <header id="top" class="relative z-40 bg-paper">
    <nav class="mx-auto max-w-[1920px] px-5 lg:px-[1.1vw]" aria-label="Main">
      <div class="flex items-center justify-between py-4 md:py-[1.3vw] text-lg lg:text-[1.46vw] leading-none">
        <a href="male.html" class="hidden md:block hover:text-ember transition-colors">Male</a>
        <a href="female.html" class="hidden md:block hover:text-ember transition-colors">Female</a>
        <a href="index.html" aria-current="page" class="text-2xl lg:text-[1.9vw] font-medium tracking-tight">Everknit</a>
        <a href="wishlist.html" class="hidden md:inline-flex items-center gap-2 hover:text-ember transition-colors">Wishlist <span data-wish-count class="text-[0.7em] text-ink/50">3</span></a>
        <div class="flex items-center gap-4">
          <a href="cart.html" class="inline-flex items-center gap-2 hover:text-ember transition-colors">My Cart <span data-cart-count class="inline-flex h-[1.5em] min-w-[1.5em] items-center justify-center rounded-full bg-ink px-1.5 text-[0.62em] text-white">2</span></a>
          <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="md:hidden inline-flex h-10 w-10 items-center justify-center rounded-full border border-ink/15" aria-label="Open menu">
            <i class="fa-solid fa-bars"></i>
          </button>
        </div>
      </div>
      <div id="mobile-menu" class="hidden md:hidden border-t border-ink/10 pb-6">
        <div class="flex flex-col pt-2 text-2xl">
          <a href="index.html" aria-current="page" class="border-b border-ink/10 py-3 font-medium">Home</a>
          <a href="shop.html" class="border-b border-ink/10 py-3 text-ink/70">Shop</a>
          <a href="male.html" class="border-b border-ink/10 py-3 text-ink/70">Male</a>
          <a href="female.html" class="border-b border-ink/10 py-3 text-ink/70">Female</a>
          <a href="wishlist.html" class="border-b border-ink/10 py-3 text-ink/70">Wishlist</a>
          <a href="contact.html" class="py-3 text-ink/70">Contact</a>
        </div>
      </div>
    </nav>
  </header>
  <!-- block:end navbar -->
<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