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

Maravel Hero

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

0 8
Maravel Hero preview

Descargar el código

Licencia comercial

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

maravel.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>Maravel Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Maravel template, available in Tailwind CSS.">
  <meta name="keywords" content="Maravel, Tailwind CSS template, HTML website template, fashion ecommerce, clothing store, online boutique, apparel shop, responsive storefront 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="Maravel | Tailwind CSS Fashion Ecommerce Template">
  <meta property="og:description" content="An airy Tailwind CSS fashion ecommerce template for clothing boutiques, slow-fashion labels, and online apparel stores selling womenswear, menswear, and kidswear.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Maravel template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Maravel | Tailwind CSS Fashion Ecommerce Template">
  <meta name="twitter:description" content="An airy Tailwind CSS fashion ecommerce template for clothing boutiques, slow-fashion labels, and online apparel stores selling womenswear, menswear, and kidswear.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Maravel 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=DM+Sans:ital,opsz,wght@0,9..40,200..700;1,9..40,200..700&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ink: '#111111',
            graphite: '#1f1f1f',
            coal: '#151515',
            mist: '#f4f3f1',
            muted: '#6f6f6f'
          },
          fontFamily: {
            sans: ['"DM Sans"', 'ui-sans-serif', 'system-ui', 'sans-serif']
          },
          maxWidth: {
            shell: '1440px'
          }
        }
      }
    };
  </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; } }
    @media (prefers-reduced-motion: reduce) {
      ::view-transition-old(root),
      ::view-transition-new(root) { animation: none; }
    }
    .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; }
  </style>
</head>
<body class="bg-white font-sans text-ink antialiased overflow-x-hidden">
<!-- block:start hero -->
    <section id="hero" class="mx-auto max-w-shell px-4 sm:px-6 lg:px-[34px]">
      <div data-slider class="relative h-[560px] overflow-hidden rounded-md bg-mist sm:h-[600px] lg:h-[650px]" aria-roledescription="carousel" aria-label="Featured collections">
          <div data-slide class="absolute inset-0 transition-opacity duration-700 opacity-100" role="group" aria-roledescription="slide" aria-label="1 of 3" aria-hidden="false">
            <img src="https://images.unsplash.com/photo-1760084443004-e1bbf7fa0a87?auto=format&amp;fit=crop&amp;w=1800&amp;q=80" alt="Woman in a chunky red knit sweater resting in tall dune grass" class="absolute inset-0 h-full w-full object-cover" style="object-position: 70% center">
            <div class="absolute inset-0 bg-gradient-to-r from-black/55 via-black/20 to-transparent"></div>
            <div class="relative flex h-full max-w-[820px] flex-col justify-center px-6 pb-16 text-white sm:px-12 lg:px-[118px] lg:pb-6">
                <h1 class="text-[40px] leading-[1.05] tracking-[-0.01em] sm:text-5xl lg:text-[60px]">Slow Fashion,<br><span class="font-extralight italic">Lasting Impressions.</span></h1>
              <p class="mt-5 max-w-[560px] text-[15px] leading-relaxed text-white/90 lg:text-base">Thoughtfully made and endlessly wearable. Every piece is cut from premium fibres and built to stay in your wardrobe for years, not seasons.</p>
              <a href="collections.html" class="mt-9 inline-flex h-[52px] w-fit items-center rounded-full bg-white px-8 text-[16px] font-medium text-ink transition hover:bg-mist lg:h-[58px] lg:px-10 lg:text-[17px]" >Discover the Edit</a>
            </div>
          </div>
          <div data-slide class="absolute inset-0 transition-opacity duration-700 pointer-events-none opacity-0" role="group" aria-roledescription="slide" aria-label="2 of 3" aria-hidden="true">
            <img src="https://images.unsplash.com/photo-1502716119720-b23a93e5fe1b?auto=format&amp;fit=crop&amp;w=1800&amp;q=80" alt="Woman in a red polka dot midi dress walking through a golden meadow" class="absolute inset-0 h-full w-full object-cover" style="object-position: 65% center">
            <div class="absolute inset-0 bg-gradient-to-r from-black/55 via-black/20 to-transparent"></div>
            <div class="relative flex h-full max-w-[820px] flex-col justify-center px-6 pb-16 text-white sm:px-12 lg:px-[118px] lg:pb-6">
                <h2 class="text-[40px] leading-[1.05] tracking-[-0.01em] sm:text-5xl lg:text-[60px]">Sunlit Prints,<br><span class="font-extralight italic">Easy Summer Days.</span></h2>
              <p class="mt-5 max-w-[560px] text-[15px] leading-relaxed text-white/90 lg:text-base">Airy dresses and breathable cottons in warm, hand-picked prints that move with you from morning coffee to golden hour.</p>
              <a href="collections.html" class="mt-9 inline-flex h-[52px] w-fit items-center rounded-full bg-white px-8 text-[16px] font-medium text-ink transition hover:bg-mist lg:h-[58px] lg:px-10 lg:text-[17px]" tabindex=&quot;-1&quot;>Discover the Edit</a>
            </div>
          </div>
          <div data-slide class="absolute inset-0 transition-opacity duration-700 pointer-events-none opacity-0" role="group" aria-roledescription="slide" aria-label="3 of 3" aria-hidden="true">
            <img src="https://images.unsplash.com/photo-1475180098004-ca77a66827be?auto=format&amp;fit=crop&amp;w=1800&amp;q=80" alt="Close up of a patterned knit sweater worn by the water" class="absolute inset-0 h-full w-full object-cover" style="object-position: center 40%">
            <div class="absolute inset-0 bg-gradient-to-r from-black/55 via-black/20 to-transparent"></div>
            <div class="relative flex h-full max-w-[820px] flex-col justify-center px-6 pb-16 text-white sm:px-12 lg:px-[118px] lg:pb-6">
                <h2 class="text-[40px] leading-[1.05] tracking-[-0.01em] sm:text-5xl lg:text-[60px]">Soft Layers,<br><span class="font-extralight italic">Coastal Calm.</span></h2>
              <p class="mt-5 max-w-[560px] text-[15px] leading-relaxed text-white/90 lg:text-base">Textured knits and relaxed layers in natural tones, designed for breezy shorelines and slow weekends away.</p>
              <a href="collections.html" class="mt-9 inline-flex h-[52px] w-fit items-center rounded-full bg-white px-8 text-[16px] font-medium text-ink transition hover:bg-mist lg:h-[58px] lg:px-10 lg:text-[17px]" tabindex=&quot;-1&quot;>Discover the Edit</a>
            </div>
          </div>
        <div class="absolute bottom-5 right-5 z-10 flex items-center gap-2 lg:bottom-6 lg:right-6">
          <button type="button" data-slider-prev class="flex h-9 w-9 items-center justify-center rounded-full bg-white/45 text-sm text-ink/60 backdrop-blur transition hover:bg-white hover:text-ink" aria-label="Previous slide"><i class="fa-solid fa-arrow-left"></i></button>
          <button type="button" data-slider-next class="flex h-9 w-9 items-center justify-center rounded-full bg-white text-sm text-ink transition hover:bg-mist" aria-label="Next slide"><i class="fa-solid fa-arrow-right"></i></button>
        </div>
      </div>
    </section>
    <!-- block:end hero -->
<script>
    (() => {
      const store = {
        get(key, fallback) {
          try { const value = localStorage.getItem(key); return value === null ? fallback : JSON.parse(value); } catch (error) { return fallback; }
        },
        set(key, value) {
          try { localStorage.setItem(key, JSON.stringify(value)); } catch (error) {}
        }
      };

      const toastEl = document.getElementById("toast");
      let toastTimer;
      const toast = (message) => {
        if (!toastEl) return;
        toastEl.textContent = message;
        toastEl.classList.remove("opacity-0", "translate-y-4");
        clearTimeout(toastTimer);
        toastTimer = setTimeout(() => toastEl.classList.add("opacity-0", "translate-y-4"), 2200);
      };

      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));
          button.setAttribute("aria-label", open ? "Open menu" : "Close menu");
          menu.classList.toggle("hidden", open);
        });
      });

      const cartBadges = document.querySelectorAll("[data-cart-count]");
      let cartCount = store.get("maravel-cart-count", Number(cartBadges[0]?.textContent) || 0);
      const renderCart = () => cartBadges.forEach((badge) => { badge.textContent = cartCount; badge.classList.toggle("hidden", cartCount < 1); badge.classList.toggle("flex", cartCount > 0); });
      renderCart();
      document.querySelectorAll("[data-add-to-cart]").forEach((button) => {
        button.addEventListener("click", () => {
          cartCount += 1;
          store.set("maravel-cart-count", cartCount);
          renderCart();
          toast(`${button.dataset.addToCart} added to your bag`);
        });
      });

      const liked = new Set(store.get("maravel-wishlist", []));
      const wishBadges = document.querySelectorAll("[data-wishlist-count]");
      const renderWishlist = () => {
        wishBadges.forEach((badge) => { badge.textContent = liked.size; badge.classList.toggle("hidden", liked.size === 0); badge.classList.toggle("flex", liked.size > 0); });
        document.querySelectorAll("[data-wishlist]").forEach((button) => button.setAttribute("aria-pressed", String(liked.has(button.dataset.wishlist))));
      };
      document.querySelectorAll("[data-wishlist]").forEach((button) => {
        button.addEventListener("click", () => {
          const id = button.dataset.wishlist;
          const saved = !liked.has(id);
          saved ? liked.add(id) : liked.delete(id);
          store.set("maravel-wishlist", [...liked]);
          renderWishlist();
          toast(saved ? "Saved to your wishlist" : "Removed from your wishlist");
        });
      });
      renderWishlist();

      const calm = navigator.webdriver || matchMedia("(prefers-reduced-motion: reduce)").matches;
      document.querySelectorAll("[data-slider]").forEach((slider) => {
        const slides = [...slider.querySelectorAll("[data-slide]")];
        if (slides.length < 2) return;
        let index = 0;
        const show = (next) => {
          index = (next + slides.length) % slides.length;
          slides.forEach((slide, i) => {
            const active = i === index;
            slide.classList.toggle("opacity-0", !active);
            slide.classList.toggle("pointer-events-none", !active);
            slide.setAttribute("aria-hidden", String(!active));
            slide.querySelectorAll("a, button").forEach((el) => (active ? el.removeAttribute("tabindex") : el.setAttribute("tabindex", "-1")));
          });
        };
        slider.querySelector("[data-slider-prev]")?.addEventListener("click", () => show(index - 1));
        slider.querySelector("[data-slider-next]")?.addEventListener("click", () => show(index + 1));
        slider.addEventListener("keydown", (event) => {
          if (event.key === "ArrowLeft") show(index - 1);
          if (event.key === "ArrowRight") show(index + 1);
        });
      });

      document.querySelectorAll("[data-newsletter]").forEach((form) => {
        form.addEventListener("submit", (event) => {
          event.preventDefault();
          const message = form.closest("section")?.querySelector("[data-newsletter-message]");
          if (message) {
            message.textContent = "Thanks for joining. Your welcome note is on its way.";
            message.classList.remove("hidden");
          }
          form.reset();
        });
      });

      const items = document.querySelectorAll("[data-reveal]");
      const skip = calm || !("IntersectionObserver" in window);
      if (items.length && !skip) {
        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

Maravel screenshot Premium

Tienda online

Maravel

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