Gratis
Portada
Calmera Hero
A hero block extracted from the Calmera template, available in Tailwind CSS.
0
9
A hero block extracted from the Calmera 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>Calmera Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero block extracted from the Calmera template, available in Tailwind CSS.">
<meta name="keywords" content="Calmera, Tailwind CSS template, HTML website template, skincare ecommerce, beauty store, clean cosmetics shop, product detail page, responsive online store 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="Calmera | Tailwind CSS Skincare Ecommerce Template">
<meta property="og:description" content="A calm, premium Tailwind CSS skincare ecommerce template for clean beauty brands, serum and moisturizer shops, and wellness boutiques that sell online.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Calmera template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Calmera | Tailwind CSS Skincare Ecommerce Template">
<meta name="twitter:description" content="A calm, premium Tailwind CSS skincare ecommerce template for clean beauty brands, serum and moisturizer shops, and wellness boutiques that sell online.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Calmera 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 href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;600;700;800&family=Instrument+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ink: "#24141a",
cocoa: "#33201f",
olive: "#676a54",
cream: "#fcf7f1",
mist: "#cbc4c3",
stone: "#8f8a8a",
line: "#ece7e4",
sale: "#ef4444"
},
fontFamily: {
sans: ["Instrument Sans", "ui-sans-serif", "system-ui", "sans-serif"],
display: ["Hanken Grotesk", "Instrument Sans", "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; } }
@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; }
[data-wishlist][aria-pressed="true"] svg { fill: currentColor; }
[data-carousel-dots] button[aria-current="true"] { background-color: #24141a; }
</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-[1400px] px-3 pt-3">
<div class="grid items-center gap-10 lg:grid-cols-[1fr_731px] lg:gap-8">
<div class="order-2 px-2 pb-6 sm:px-6 lg:order-1 lg:px-10 lg:pb-0">
<p class="text-[18px] font-medium text-ink sm:text-[20px]">Our Philosophy</p>
<h1 class="mt-4 max-w-[540px] text-[38px] font-semibold leading-[1.08] tracking-[-0.025em] sm:text-[50px] lg:text-[60px]">Gentle, considered formulas that return your skin to its natural balance, calm, supple, and luminous.</h1>
<div class="mt-9 flex flex-wrap items-center gap-3">
<a href="shop.html" class="inline-flex items-center gap-3 rounded-full bg-ink py-2 pl-6 pr-2 text-[16px] font-semibold text-white transition hover:bg-cocoa">
Shop the ritual
<span class="grid h-9 w-9 place-items-center rounded-full bg-white/15"><i class="fa-solid fa-arrow-up rotate-45 text-[13px]"></i></span>
</a>
<a href="about.html" class="rounded-full border border-ink/15 px-6 py-3.5 text-[16px] font-semibold transition hover:border-ink">Our story</a>
</div>
</div>
<figure class="order-1 overflow-hidden rounded-[18px] lg:order-2">
<img src="https://images.unsplash.com/photo-1767884022240-b91fb555495a?auto=format&fit=crop&w=1400&q=80" alt="Woman with glowing skin resting her hand on her cheek in warm golden light" class="aspect-[4/5] h-full w-full object-cover sm:aspect-[5/4] lg:aspect-auto lg:h-[800px]">
</figure>
</div>
</section>
<!-- block:end hero -->
<script>
document.querySelectorAll("[data-menu-toggle], [data-search-toggle]").forEach((button) => {
const panel = document.getElementById(button.getAttribute("aria-controls"));
if (!panel) return;
button.addEventListener("click", () => {
const open = button.getAttribute("aria-expanded") === "true";
button.setAttribute("aria-expanded", String(!open));
panel.classList.toggle("hidden", open);
if (!open) panel.querySelector("input")?.focus();
});
});
(() => {
const items = document.querySelectorAll("[data-reveal]");
const skip = navigator.webdriver || /HeadlessChrome/.test(navigator.userAgent) || !("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));
})();
document.querySelectorAll("[data-carousel]").forEach((carousel) => {
const track = carousel.querySelector("[data-carousel-track]");
const slides = [...track.children];
const dots = carousel.querySelector("[data-carousel-dots]");
let index = 0;
const perView = () => Math.max(1, Math.round(track.clientWidth / slides[0].clientWidth));
const maxIndex = () => Math.max(0, slides.length - perView());
const render = () => {
track.style.transform = `translateX(-${index * slides[0].clientWidth}px)`;
slides.forEach((slide, i) => slide.setAttribute("aria-hidden", String(i !== index)));
dots?.querySelectorAll("button").forEach((dot, i) => dot.setAttribute("aria-current", String(i === index)));
};
const go = (next) => { const max = maxIndex(); index = next > max ? 0 : next < 0 ? max : next; render(); };
const buildDots = () => {
if (!dots) return;
dots.innerHTML = "";
for (let i = 0; i <= maxIndex(); i++) {
const dot = document.createElement("button");
dot.type = "button";
dot.className = "h-[3px] flex-1 bg-ink/15 transition-colors aria-[current=true]:bg-ink";
dot.setAttribute("aria-label", `Go to review ${i + 1}`);
dot.addEventListener("click", () => go(i));
dots.append(dot);
}
};
carousel.querySelector("[data-carousel-prev]")?.addEventListener("click", () => go(index - 1));
carousel.querySelector("[data-carousel-next]")?.addEventListener("click", () => go(index + 1));
carousel.addEventListener("keydown", (event) => {
if (event.key === "ArrowLeft") go(index - 1);
if (event.key === "ArrowRight") go(index + 1);
});
addEventListener("resize", () => { buildDots(); go(Math.min(index, maxIndex())); });
buildDots();
render();
});
(() => {
const key = "calmera-cart-count";
const badges = document.querySelectorAll("[data-cart-count]");
const read = () => { try { return JSON.parse(localStorage.getItem(key)); } catch (error) { return null; } };
const write = (value) => { try { localStorage.setItem(key, JSON.stringify(value)); } catch (error) {} };
let count = Number(read() ?? badges[0]?.textContent ?? 0);
const paint = () => badges.forEach((badge) => { badge.textContent = count; });
paint();
document.querySelectorAll("[data-add-to-cart]").forEach((button) => {
button.addEventListener("click", () => {
const qty = Number(button.closest("[data-product]")?.querySelector("[data-qty-input]")?.value || 1);
count += qty;
write(count);
paint();
const label = button.querySelector("[data-label]") || button;
const original = label.textContent;
label.textContent = "Added to cart";
button.disabled = true;
setTimeout(() => { label.textContent = original; button.disabled = false; }, 1400);
});
});
})();
document.querySelectorAll("[data-newsletter]").forEach((form) => {
form.addEventListener("submit", (event) => {
event.preventDefault();
const label = form.querySelector("[data-label]");
if (label) label.textContent = "You're on the list";
form.reset();
});
});
</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é