Free
Call to action
Dewlume Call to action
A call to action block extracted from the Dewlume template, available in Tailwind CSS.
0
7
A call to action block extracted from the Dewlume template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with 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>Dewlume Call to action | Tailwind CSS UI Block</title>
<meta name="description" content="A call to action block extracted from the Dewlume template, available in Tailwind CSS.">
<meta name="keywords" content="Dewlume, Tailwind CSS template, HTML website template, skincare ecommerce template, beauty store website, cosmetics shop, online store design, responsive product catalog">
<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="Dewlume | Tailwind CSS Skincare Ecommerce Template">
<meta property="og:description" content="A warm, editorial Tailwind CSS skincare ecommerce template for beauty brands, cosmetics boutiques, and clean skincare stores selling serums, creams, and bundles online.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Dewlume template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Dewlume | Tailwind CSS Skincare Ecommerce Template">
<meta name="twitter:description" content="A warm, editorial Tailwind CSS skincare ecommerce template for beauty brands, cosmetics boutiques, and clean skincare stores selling serums, creams, and bundles online.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Dewlume 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 rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
peach: '#fff0e3',
blush: '#f7e7da',
clay: '#e19f68',
ink: '#111111',
rosy: '#ffa99d'
},
fontFamily: {
sans: ['Outfit', '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; }
}
.wordmark { font-weight: 400; letter-spacing: -0.045em; }
.wordmark sup { top: -1.05em; margin-left: 0.04em; font-size: 0.19em; letter-spacing: 0; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.cloud-mask {
-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 72%);
mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 72%);
}
.flower-mask {
-webkit-mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 70%);
mask-image: radial-gradient(circle at 50% 48%, #000 52%, transparent 70%);
}
[data-feature-row] .feature-label { transition: color .25s ease; }
[data-feature-row] .feature-arrow { transition: background-color .25s ease, color .25s ease; }
[data-feature-row].is-active .feature-label { color: #8b8580; }
[data-feature-row].is-active .feature-arrow { background: #111; color: #fff; }
[data-feature-image] { transition: transform .5s ease, opacity .3s ease; }
[data-testimonial-avatar] { transition: opacity .3s ease, filter .3s ease; }
[data-testimonial-avatar][data-offset="0"] { width: 3.6rem; height: 3.6rem; opacity: 1; box-shadow: 0 0 0 2px #111; }
[data-testimonial-avatar][data-offset="1"] { width: 2.5rem; height: 2.5rem; opacity: .85; }
[data-testimonial-avatar][data-offset="2"] { width: 1.6rem; height: 1.6rem; opacity: .45; filter: blur(1.5px); }
.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-black font-sans text-ink antialiased">
<!-- block:start cta -->
<section id="kit" class="bg-peach py-20 lg:py-28">
<div class="mx-auto grid max-w-[1340px] gap-12 px-5 sm:px-6 lg:grid-cols-[1.65fr_1fr] lg:items-center lg:gap-6 lg:px-8">
<div data-reveal>
<p class="text-[11px]">Our most-loved bundle</p>
<h2 class="mt-5 max-w-[420px] text-[28px] leading-[1.3] tracking-[-0.01em] lg:text-[34px]">Your whole glow routine, bundled into one set.</h2>
<div class="mt-8 grid grid-cols-2 gap-3 sm:grid-cols-4 lg:max-w-[760px]">
<a href="product.html" class="group block">
<span class="block aspect-[6/7] overflow-hidden bg-white"><img src="https://images.unsplash.com/photo-1620916566398-39f1143ab7be?auto=format&fit=crop&w=500&q=80" alt="White gel cleanser tube resting on soft linen" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></span>
<span class="mt-2 block text-[12px]">Clear Tide Cleanser</span>
<span class="block text-[12px] font-semibold">$28</span>
</a>
<a href="product.html" class="group block">
<span class="block aspect-[6/7] overflow-hidden bg-white"><img src="https://images.unsplash.com/photo-1597931752949-98c74b5b159f?auto=format&fit=crop&w=500&q=80" alt="White pump bottle of body lotion on a cream backdrop" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></span>
<span class="mt-2 block text-[12px]">Cloud Body Butter</span>
<span class="block text-[12px] font-semibold">$40</span>
</a>
<a href="product.html" class="group block">
<span class="block aspect-[6/7] overflow-hidden bg-white"><img src="https://images.unsplash.com/photo-1631729371254-42c2892f0e6e?auto=format&fit=crop&w=500&q=80" alt="Three white facial mist bottles lined up on a table" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></span>
<span class="mt-2 block text-[12px]">Petal Face Mist</span>
<span class="block text-[12px] font-semibold">$32</span>
</a>
<a href="product.html" class="group block">
<span class="block aspect-[6/7] overflow-hidden bg-white"><img src="https://images.unsplash.com/photo-1611080541599-8c6dbde6ed28?auto=format&fit=crop&w=500&q=80" alt="Open pink jar of clay mask on a white background" class="h-full w-full object-cover transition duration-700 group-hover:scale-105"></span>
<span class="mt-2 block text-[12px]">Rose Clay Mask</span>
<span class="block text-[12px] font-semibold">$32</span>
</a>
</div>
<div class="mt-8 flex flex-wrap gap-2">
<button type="button" data-add-to-cart="4" data-product-name="Glow routine set" class="rounded-full bg-ink px-5 py-3 text-[12px] text-white transition hover:bg-black/80">Add set to cart $132.00 <s class="ml-1 text-white/50">$152.00</s></button>
<a href="shop.html" class="rounded-full border border-ink/80 px-5 py-3 text-[12px] transition hover:bg-ink hover:text-white">Browse all sets</a>
</div>
</div>
<div data-reveal style="--reveal-delay: 150ms" class="relative aspect-[8/9] overflow-hidden bg-rosy">
<img src="https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?auto=format&fit=crop&w=900&q=80" alt="Portrait of a woman with glowing skin against a soft pink backdrop" class="h-full w-full object-cover object-top">
<span class="absolute left-[16%] top-[7%] h-[10%] w-[11%] rounded-full bg-[#f3c895]" aria-hidden="true"></span>
<span class="absolute right-[8%] top-[27%] h-[5.5%] w-[6%] rounded-full bg-[#eec08d]" aria-hidden="true"></span>
<span class="absolute bottom-[10%] left-[16%] h-[5.5%] w-[6%] rounded-full bg-[#f45fd0]" aria-hidden="true"></span>
</div>
</div>
</section>
<!-- block:end cta -->
<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);
});
});
document.querySelectorAll("[data-announcement-close]").forEach((button) => {
button.addEventListener("click", () => button.closest("[data-announcement]")?.remove());
});
document.querySelectorAll("[data-copy-code]").forEach((button) => {
button.addEventListener("click", () => {
navigator.clipboard?.writeText(button.dataset.copyCode).catch(() => {});
const icon = button.innerHTML;
button.innerHTML = '<i class="fa-solid fa-check"></i>';
setTimeout(() => { button.innerHTML = icon; }, 1500);
});
});
const toast = document.querySelector("[data-toast]");
let toastTimer;
const showToast = (message) => {
if (!toast) return;
toast.textContent = message;
toast.classList.remove("opacity-0", "translate-y-4");
clearTimeout(toastTimer);
toastTimer = setTimeout(() => toast.classList.add("opacity-0", "translate-y-4"), 2200);
};
const bag = (() => {
const key = "dewlume-bag";
const counters = document.querySelectorAll("[data-cart-count]");
const read = () => {
try {
const stored = parseInt(localStorage.getItem(key), 10);
if (Number.isFinite(stored)) return stored;
} catch (error) {}
return parseInt(counters[0]?.textContent || "0", 10) || 0;
};
const write = (count) => {
counters.forEach((counter) => { counter.textContent = count; });
try { localStorage.setItem(key, String(count)); } catch (error) {}
};
write(read());
return { add: (amount) => write(read() + amount), set: write };
})();
document.addEventListener("click", (event) => {
const button = event.target.closest("[data-add-to-cart]");
if (!button) return;
const amount = parseInt(button.dataset.addToCart, 10) || 1;
const quantityInput = button.dataset.quantityFrom && document.querySelector(button.dataset.quantityFrom);
const total = quantityInput ? (parseInt(quantityInput.value, 10) || 1) : amount;
bag.add(total);
showToast(`${button.dataset.productName || "Item"} added to your bag`);
});
document.querySelectorAll("[data-skin-filter-group]").forEach((group) => {
const target = document.getElementById(group.dataset.skinFilterGroup);
const status = group.parentElement.querySelector("[data-skin-filter-status]");
if (!target) return;
const items = target.querySelectorAll("[data-category]");
const defaultStatus = status?.innerHTML;
group.addEventListener("click", (event) => {
const chip = event.target.closest("[data-filter]");
if (!chip) return;
const turnOn = chip.getAttribute("aria-pressed") !== "true";
const filter = turnOn ? chip.dataset.filter : "all";
group.querySelectorAll("[data-filter]").forEach((button) => {
const active = turnOn && button === chip;
button.setAttribute("aria-pressed", String(active));
["bg-ink", "text-white"].forEach((cls) => button.classList.toggle(cls, active));
button.classList.toggle("bg-white", !active);
});
let shown = 0;
items.forEach((item) => {
const match = filter === "all" || item.dataset.category.split(" ").includes(filter);
item.hidden = !match;
if (match) shown += 1;
});
if (status) {
status.innerHTML = filter === "all" ? defaultStatus : `${shown} bestsellers picked for ${chip.textContent.trim().toLowerCase()}. <a href="#bestsellers" class="underline underline-offset-2">See them</a>`;
}
});
});
document.querySelectorAll("[data-feature-list]").forEach((list) => {
const rows = list.querySelectorAll("[data-feature-row]");
const image = list.querySelector("[data-feature-image]");
const activate = (row) => {
rows.forEach((item) => item.classList.toggle("is-active", item === row));
if (!image) return;
image.src = row.dataset.image;
image.alt = row.dataset.alt;
image.style.transform = `translateY(${row.offsetTop}px) rotate(6deg)`;
};
rows.forEach((row) => {
row.addEventListener("mouseenter", () => activate(row));
row.addEventListener("focus", () => activate(row));
});
});
document.querySelectorAll("[data-testimonials]").forEach((root) => {
const slides = [...root.querySelectorAll("[data-testimonial-slide]")];
const avatars = [...root.querySelectorAll("[data-testimonial-avatar]")];
if (!slides.length) return;
let index = 0;
const render = () => {
const count = slides.length;
slides.forEach((slide, i) => { slide.hidden = i !== index; });
avatars.forEach((avatar, i) => {
let offset = (i - index + count) % count;
if (offset > count / 2) offset -= count;
avatar.dataset.offset = String(Math.abs(offset));
avatar.style.order = String(offset + 10);
avatar.setAttribute("aria-current", String(offset === 0));
});
};
const go = (next) => { index = (next + slides.length) % slides.length; render(); };
root.querySelector("[data-testimonial-prev]")?.addEventListener("click", () => go(index - 1));
root.querySelector("[data-testimonial-next]")?.addEventListener("click", () => go(index + 1));
avatars.forEach((avatar, i) => avatar.addEventListener("click", () => go(i)));
root.addEventListener("keydown", (event) => {
if (event.key === "ArrowLeft") go(index - 1);
if (event.key === "ArrowRight") go(index + 1);
});
});
document.querySelectorAll("[data-newsletter]").forEach((form) => {
form.addEventListener("submit", (event) => {
event.preventDefault();
form.querySelector("[data-newsletter-message]")?.classList.remove("hidden");
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
E-commerce
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.