Gratis
Menú de navegación
Mirelle Navbar
A navbar block extracted from the Mirelle template, available in Tailwind CSS.
0
9
A navbar 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 Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar 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 navbar -->
<header id="top" class="absolute inset-x-0 top-0 z-40 px-3 pt-3 md:px-[5%] md:pt-5">
<nav class="relative mx-auto flex max-w-[1180px] items-center justify-between rounded-full bg-white px-4 py-2.5 shadow-sm md:px-5" aria-label="Main">
<div class="flex items-center gap-4 text-sm">
<button type="button" data-menu-toggle aria-controls="site-drawer" aria-expanded="false" class="inline-flex items-center gap-2 font-medium">
<i class="fa-solid fa-grip text-xs"></i>
<span class="hidden sm:inline">Menu</span>
</button>
<span class="hidden h-4 w-px bg-ink/30 md:block"></span>
<details class="group relative hidden md:block">
<summary class="flex cursor-pointer list-none items-center gap-1.5 hover:text-sky">Products <i class="fa-solid fa-chevron-down text-[9px] transition group-open:rotate-180"></i></summary>
<ul class="absolute left-0 top-9 w-52 rounded-2xl bg-white p-2 shadow-xl ring-1 ring-ink/5">
<li><a href="shop.html?category=serums" class="block rounded-xl px-3 py-2 hover:bg-cloud">Serums</a></li>
<li><a href="shop.html?category=cleansers" class="block rounded-xl px-3 py-2 hover:bg-cloud">Cleansers</a></li>
<li><a href="shop.html?category=masks" class="block rounded-xl px-3 py-2 hover:bg-cloud">Masks</a></li>
<li><a href="shop.html?category=body" class="block rounded-xl px-3 py-2 hover:bg-cloud">Body care</a></li>
<li><a href="shop.html" class="block rounded-xl px-3 py-2 font-semibold hover:bg-cloud">Shop all</a></li>
</ul>
</details>
<a href="about.html" class="hidden hover:text-sky md:block">About</a>
</div>
<a href="index.html" aria-current="page" class="absolute left-1/2 -translate-x-1/2 font-display text-2xl font-bold uppercase tracking-tight">Mirelle</a>
<div class="flex items-center gap-4 text-sm">
<a href="reviews.html" class="hidden hover:text-sky md:block">Reviews</a>
<a href="blog.html" class="hidden hover:text-sky md:block">Blog</a>
<a href="cart.html" class="relative inline-flex h-9 w-9 items-center justify-center rounded-full hover:bg-cloud" aria-label="Cart">
<i class="fa-solid fa-bag-shopping"></i>
<span data-cart-count class="absolute -right-0.5 -top-0.5 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-ink px-1 text-[10px] text-white">2</span>
</a>
<a href="shop.html" class="hidden rounded-full bg-sun px-5 py-2 font-medium transition hover:bg-ink hover:text-sun sm:inline-flex">Shop Now</a>
</div>
</nav>
<div id="site-drawer" class="hidden mx-auto mt-2 max-w-[1180px] rounded-3xl bg-white p-6 shadow-xl">
<div class="grid gap-6 md:grid-cols-3">
<ul class="space-y-1 font-display text-3xl font-semibold uppercase">
<li><a href="index.html" aria-current="page" class="text-sky">Home</a></li>
<li><a href="shop.html" class="hover:text-sky">Shop</a></li>
<li><a href="about.html" class="hover:text-sky">About</a></li>
<li><a href="reviews.html" class="hover:text-sky">Reviews</a></li>
<li><a href="blog.html" class="hover:text-sky">Blog</a></li>
<li><a href="contact.html" class="hover:text-sky">Contact</a></li>
</ul>
<ul class="space-y-2 text-sm">
<li class="text-xs font-semibold uppercase text-ink/50">Categories</li>
<li><a href="shop.html?category=serums" class="hover:text-sky">Serums</a></li>
<li><a href="shop.html?category=cleansers" class="hover:text-sky">Cleansers</a></li>
<li><a href="shop.html?category=masks" class="hover:text-sky">Masks</a></li>
<li><a href="shop.html?category=body" class="hover:text-sky">Body care</a></li>
</ul>
<a href="shop.html" class="flex flex-col justify-between rounded-2xl bg-sun p-5">
<span class="text-xs font-semibold uppercase">New in</span>
<span class="font-display text-2xl font-bold uppercase leading-tight">Calming Ampoule is back in stock</span>
</a>
</div>
</div>
</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 = () => { 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.