Gratis
Portada
Mirelle Hero
A hero block extracted from the Mirelle template, available in Tailwind CSS.
0
8
A hero block extracted from the Mirelle 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>Mirelle Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero block extracted from the Mirelle template, available in Tailwind CSS.">
<meta name="keywords" content="Mirelle, Tailwind CSS template, HTML website template, ecommerce template, skincare store, beauty brand, cosmetics shop, serum product page, responsive beauty 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="Mirelle | Tailwind CSS Skincare Ecommerce Template">
<meta property="og:description" content="A bright, condensed-type Tailwind CSS ecommerce template for skincare brands, beauty shops, and cosmetic startups with product sliders, ingredient callouts, and a complete shop and cart flow.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Mirelle template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Mirelle | Tailwind CSS Skincare Ecommerce Template">
<meta name="twitter:description" content="A bright, condensed-type Tailwind CSS ecommerce template for skincare brands, beauty shops, and cosmetic startups with product sliders, ingredient callouts, and a complete shop and cart flow.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Mirelle 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=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ink: '#0b0b0b',
sky: '#4b8dc8',
sun: '#fff200',
cloud: '#f2f2f2'
},
fontFamily: {
sans: ['Inter', 'ui-sans-serif', 'system-ui', 'sans-serif'],
display: ['Oswald', 'Impact', '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; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
details > summary::-webkit-details-marker { display: none; }
[data-results-slide] { transition: opacity .5s ease, transform .5s ease; }
.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) {
html { scroll-behavior: auto; }
[data-results-slide] { transition: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-white font-sans text-ink antialiased overflow-x-hidden">
<!-- block:start hero -->
<section id="hero" class="relative overflow-hidden bg-sky">
<img src="https://images.unsplash.com/photo-1758523672333-12a4099a60b0?auto=format&fit=crop&w=2000&q=80" alt="Smiling young woman with long brown hair against a sky blue wall" class="absolute inset-0 h-full w-full object-cover object-[70%_center] md:object-[center_20%]">
<div class="absolute inset-0 bg-gradient-to-r from-sky/80 via-sky/20 to-transparent"></div>
<div class="relative mx-auto flex min-h-[640px] max-w-[1320px] flex-col px-5 pt-32 md:min-h-[780px] md:px-[5%] md:pt-40">
<h1 class="max-w-[12ch] font-display text-4xl font-semibold uppercase leading-[1.05] tracking-tight text-white md:text-5xl lg:text-[52px]">Smart skincare made to fit your skin</h1>
<div class="mt-auto mb-40 max-w-[240px] text-white md:mb-44">
<p class="font-display text-lg uppercase"><i class="fa-solid fa-asterisk text-sm"></i> Vitamin B5</p>
<p class="mt-2 text-sm leading-snug text-white/85">Settles irritation and keeps sensitive skin deeply hydrated.</p>
</div>
</div>
<p class="pointer-events-none absolute inset-x-0 bottom-[-0.06em] whitespace-nowrap text-center font-display text-[16vw] font-bold uppercase leading-[0.86] tracking-[-0.02em] text-sun lg:text-[216px]" aria-hidden="true">Mirelle skin</p>
</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 = () => { try { return Number(localStorage.getItem("mirelle-cart") ?? 2); } catch (e) { return 2; } };
const write = (value) => { try { localStorage.setItem("mirelle-cart", String(value)); } catch (e) {} };
const paint = () => document.querySelectorAll("[data-cart-count]").forEach((el) => { el.textContent = read(); });
window.mirelleCart = { read, write, paint };
paint();
document.addEventListener("click", (event) => {
const add = event.target.closest("[data-add-cart]");
if (add) {
write(read() + 1);
paint();
add.classList.add("bg-sky");
setTimeout(() => add.classList.remove("bg-sky"), 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); }
}
});
})();
document.querySelectorAll("[data-results]").forEach((carousel) => {
const slides = [...carousel.querySelectorAll("[data-results-slide]")];
const label = carousel.querySelector("[data-results-index]");
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.classList.toggle("scale-95", !active);
slide.classList.toggle("rotate-0", !active);
slide.classList.toggle("-rotate-[12deg]", active);
slide.setAttribute("aria-hidden", String(!active));
});
if (label) label.textContent = index + 1;
};
carousel.querySelector("[data-results-prev]")?.addEventListener("click", () => show(index - 1));
carousel.querySelector("[data-results-next]")?.addEventListener("click", () => show(index + 1));
});
document.querySelectorAll("[data-rail]").forEach((rail) => {
const track = rail.querySelector("[data-rail-track]");
const step = () => (track.firstElementChild?.offsetWidth || 240) + 12;
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() });
};
rail.querySelector("[data-rail-prev]")?.addEventListener("click", () => move(-1));
rail.querySelector("[data-rail-next]")?.addEventListener("click", () => move(1));
});
document.querySelectorAll("[data-newsletter]").forEach((form) => {
form.addEventListener("submit", (event) => {
event.preventDefault();
const note = form.parentElement.querySelector("[data-newsletter-note]");
if (note) note.hidden = false;
form.reset();
});
});
(() => {
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>
Premium
Tienda online
Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.
Tailwind CSS · HTML download
Si no empieza, haz clic aquí.
¿Te gustan nuestras plantillas gratis?
Una pequeña propina nos ayuda a seguir añadiendo nuevas cada semana.
Invítanos a un café