Gratis
Llamada a la acción
Maravel Call to action
A call to action block extracted from the Maravel template, available in Tailwind CSS.
0
9
A call to action block extracted from the Maravel template, available in Tailwind CSS.
Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access
<!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 Call to action | Tailwind CSS UI Block</title>
<meta name="description" content="A call to action 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 cta -->
<section id="lookbook" class="mx-auto max-w-shell px-4 pt-16 sm:px-6 lg:px-[34px] lg:pt-[80px]">
<div data-slider class="relative h-[560px] overflow-hidden rounded-md bg-mist lg:h-[650px]" aria-roledescription="carousel" aria-label="Lookbook">
<div data-slide class="absolute inset-0 transition-opacity duration-700 opacity-100" role="group" aria-roledescription="slide" aria-label="1 of 2" aria-hidden="false">
<img src="https://images.unsplash.com/photo-1578422211501-43f5ed39fda3?auto=format&fit=crop&w=1800&q=80" alt="Woman in a flowing white dress with a red scarf on pale sand dunes" class="h-full w-full object-cover" style="object-position: center 35%">
<div class="absolute inset-0 bg-black/25"></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 2" aria-hidden="true">
<img src="https://images.unsplash.com/photo-1633811976915-60dd17725223?auto=format&fit=crop&w=1800&q=80" alt="Woman in a beige trench coat watching waves roll onto the beach" class="h-full w-full object-cover" style="object-position: center 30%">
<div class="absolute inset-0 bg-black/25"></div>
</div>
<div class="pointer-events-none relative flex h-full flex-col px-6 pb-8 pt-24 text-white sm:px-12 lg:px-[118px] lg:pb-10 lg:pt-[190px]">
<h2 class="text-center text-[52px] font-light leading-[0.95] tracking-[-0.03em] sm:text-[88px] lg:text-[128px]">Naturally <span class="font-extralight italic">Refined</span></h2>
<p class="mt-8 max-w-[460px] text-[15px] leading-relaxed text-white/90 lg:mt-12 lg:text-[16px]">Carefully edited capsules that pair enduring silhouettes with a genuine promise to responsible sourcing and craft.</p>
<a href="collections.html" class="pointer-events-auto mx-auto mt-auto inline-flex h-[52px] 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 class="absolute right-5 top-5 z-10 flex items-center gap-2 lg:right-6 lg:top-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 lookbook image"><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 lookbook image"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</section>
<!-- block:end cta -->
<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>
Premium
Tienda online
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.