Gratis
Menú de navegación
Dimple Navbar
A navbar block extracted from the Dimple template, available in Tailwind CSS.
0
0
A navbar block extracted from the Dimple 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>Dimple Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar block extracted from the Dimple template, available in Tailwind CSS.">
<meta name="keywords" content="Dimple, Tailwind CSS template, HTML website template, family dentist template, children's dentist website, dental clinic template, treatments and fees page, appointment request form, health template">
<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="Dimple | Tailwind CSS Health & Fitness Template">
<meta property="og:description" content="A friendly Tailwind CSS template for family dentists, with a teal and lilac split hero, a bento of treatments, a two-minute brushing timer, the team, reviews, fees and an appointment form.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Dimple template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Dimple | Tailwind CSS Health & Fitness Template">
<meta name="twitter:description" content="A friendly Tailwind CSS template for family dentists, with a teal and lilac split hero, a bento of treatments, a two-minute brushing timer, the team, reviews, fees and an appointment form.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Dimple template preview">
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
teal: { DEFAULT: '#37606d', deep: '#274650', soft: '#4d7c8a' },
mist: { DEFAULT: '#dfe2ee', deep: '#cdd2e3' },
apricot: { DEFAULT: '#f0a868', deep: '#a85a1c' },
ink: '#1f3238'
},
fontFamily: {
sans: ['"Instrument Sans"', 'sans-serif']
}
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.wordmark { font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; color: #f0a868; }
.shout { font-weight: 500; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.04; }
.count { font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.orb { display: block; border-radius: 9999px; transition: transform .7s ease; }
.orb-apricot { background: radial-gradient(circle at 35% 30%, #f6c08c, #f0a868 55%, #dd8f4c); }
.orb-teal { background: radial-gradient(circle at 35% 30%, #5b8f9d, #37606d 60%, #2c5260); }
.dome { display: block; aspect-ratio: 2 / 1; border-radius: 9999px 9999px 0 0; transition: transform .7s ease; }
.speck { position: absolute; width: .4rem; height: .4rem; border-radius: 9999px; background: #f0a868; }
.upright { writing-mode: vertical-rl; transform: rotate(180deg); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 9999px; padding: .85rem 1.6rem; font-weight: 600; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pill-apricot { background: #f0a868; color: #1f3238; }
.pill-apricot:hover { background: #f6c08c; }
.pill-teal { background: #37606d; color: #fff; }
.pill-teal:hover { background: #274650; }
.pill-line { border: 1.5px solid currentColor; }
.field { width: 100%; border: 1.5px solid #cdd2e3; border-radius: .9rem; background: #fff; padding: .8rem 1rem; color: #1f3238; outline: none; }
.field:focus { border-color: #37606d; box-shadow: 0 0 0 3px rgba(55, 96, 109, .18); }
[data-hero][data-active="1"] .orb-a { transform: translate(190%, 60%) scale(.8); }
[data-hero][data-active="1"] .orb-b { transform: translate(260%, -40%) scale(1.15); }
[data-hero][data-active="1"] .dome { transform: translateY(6%) scale(.94); }
[data-hero][data-active="2"] .orb-a { transform: translate(420%, 20%) scale(1.1); }
[data-hero][data-active="2"] .orb-b { transform: translate(-20%, -120%) scale(.7); }
[data-hero][data-active="2"] .dome { transform: translateY(-4%) scale(1.04); }
[data-slide-dot] { width: .7rem; height: .7rem; border-radius: 9999px; background: #fff; transition: background-color .2s ease, transform .2s ease; }
[data-slide-dot][aria-pressed="true"] { background: #37606d; transform: scale(1.2); }
[data-menu-toggle][aria-expanded="true"] .bars { display: none; }
[data-menu-toggle][aria-expanded="false"] .cross { display: none; }
[data-role-chip][aria-pressed="true"], [data-length][aria-pressed="true"] { background: #f0a868; border-color: #f0a868; color: #1f3238; }
[data-wedge] { fill: #f0a868; opacity: .16; transition: opacity .4s ease; }
[data-wedge].is-active { opacity: .55; }
[data-wedge].is-done { opacity: 1; }
[data-quarter].is-active { color: #f0a868; }
[data-quarter].is-done { text-decoration: line-through; opacity: .6; }
[data-hours] .is-today { color: #f0a868; font-weight: 700; }
.marquee { overflow-x: auto; }
.marquee-track { display: flex; width: max-content; }
.marquee.is-running { overflow: hidden; }
.marquee.is-running .marquee-track { animation: marquee 48s linear infinite; }
.marquee.is-running.is-reverse .marquee-track { animation-direction: reverse; }
.marquee.is-running:hover .marquee-track, .marquee.is-running:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.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) { .orb, .dome, [data-wedge] { transition: none; } }
</style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- block:start navbar -->
<header class="absolute inset-x-0 top-0 z-40">
<div class="relative mx-auto flex max-w-[1440px] items-center justify-between gap-6 px-6 py-6 md:px-12 md:py-9">
<div class="flex items-center justify-between gap-8 lg:w-1/2 lg:pr-24">
<a href="index.html" class="wordmark">Dimple</a>
<a href="contact.html" class="hidden text-lg font-medium text-white hover:text-apricot lg:inline">Book a visit</a>
</div>
<button type="button" data-menu-toggle aria-controls="site-menu" aria-expanded="false" aria-label="Menu" class="relative z-50 flex h-14 w-14 shrink-0 items-center justify-center rounded-full bg-white text-xl text-teal shadow-lg shadow-teal-deep/20 transition-transform hover:scale-105 lg:absolute lg:left-1/2 lg:top-1/2 lg:h-16 lg:w-16 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:hover:scale-100">
<i class="bars fa-solid fa-grip-lines" aria-hidden="true"></i>
<i class="cross fa-solid fa-xmark" aria-hidden="true"></i>
</button>
<nav aria-label="Main" class="hidden items-center justify-between gap-8 lg:flex lg:w-1/2 lg:pl-24">
<div class="flex items-center gap-8">
<a href="treatments.html" class="text-lg font-medium text-teal hover:text-teal-deep">Treatments</a>
<a href="fees.html" class="text-lg font-medium text-teal hover:text-teal-deep">Fees</a>
</div>
<a href="tel:+441174960182" class="text-lg font-semibold text-teal-deep hover:text-apricot-deep">0117 496 0182</a>
</nav>
</div>
<div id="site-menu" class="fixed inset-0 z-40 hidden overflow-y-auto bg-teal-deep px-6 pb-12 pt-28 text-white md:px-12 md:pt-36">
<div class="mx-auto grid max-w-[1320px] gap-12 lg:grid-cols-2">
<nav aria-label="Menu" class="flex flex-col gap-3">
<a href="index.html" aria-current="page" class="shout text-4xl text-apricot md:text-6xl">Home</a>
<a href="treatments.html" class="shout text-4xl hover:text-apricot md:text-6xl">Treatments</a>
<a href="fees.html" class="shout text-4xl hover:text-apricot md:text-6xl">Fees</a>
<a href="about.html" class="shout text-4xl hover:text-apricot md:text-6xl">About us</a>
<a href="contact.html" class="shout text-4xl hover:text-apricot md:text-6xl">Contact</a>
</nav>
<div class="flex flex-col justify-end gap-3 text-lg">
<p class="count text-apricot">Ring us</p>
<a href="tel:+441174960182" class="text-3xl font-medium hover:text-apricot">0117 496 0182</a>
<a href="mailto:hello@dimple.example" class="text-white/80 hover:text-white">hello@dimple.example</a>
<p class="mt-4 text-white/80">14 Orchard Parade, Bristol BS6 7HL</p>
</div>
</div>
</div>
</header>
<!-- block:end navbar -->
<script type="application/json" data-slides>
[
{ "title": "Check-ups without the worry", "text": "Forty unhurried minutes, a look at every tooth and a plan you can read at home." },
{ "title": "First teeth, first visits", "text": "A ride in the chair, a count of the teeth and a sticker. That is all a first visit needs." },
{ "title": "Straighter smiles for teens", "text": "Clear aligners and braces, planned on a scan so you see the result before you start." }
]
</script>
<script>
document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
const menu = document.getElementById(button.getAttribute("aria-controls"));
if (!menu) return;
const set = (open) => {
button.setAttribute("aria-expanded", String(open));
menu.classList.toggle("hidden", !open);
document.body.style.overflow = open ? "hidden" : "";
};
button.addEventListener("click", () => set(button.getAttribute("aria-expanded") !== "true"));
document.addEventListener("keydown", (event) => { if (event.key === "Escape") set(false); });
});
(() => {
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));
})();
document.querySelectorAll("[data-hero]").forEach((root) => {
const source = root.querySelector("[data-slides]");
const dots = [...root.querySelectorAll("[data-slide-dot]")];
if (!source || !dots.length) return;
const slides = JSON.parse(source.textContent);
let timer = null;
const show = (index) => {
const slide = slides[index];
if (!slide) return;
root.dataset.active = index;
root.querySelector("[data-slide-count]").textContent = String(index + 1).padStart(2, "0");
root.querySelector("[data-slide-title]").textContent = slide.title;
root.querySelector("[data-slide-text]").textContent = slide.text;
dots.forEach((dot, position) => dot.setAttribute("aria-pressed", String(position === index)));
};
dots.forEach((dot, index) => dot.addEventListener("click", () => {
clearInterval(timer);
show(index);
}));
if (!navigator.webdriver && !matchMedia("(prefers-reduced-motion: reduce)").matches) {
timer = setInterval(() => show((Number(root.dataset.active) + 1) % slides.length), 6000);
}
});
document.querySelectorAll("[data-timer]").forEach((root) => {
const clock = root.querySelector("[data-timer-clock]");
const status = root.querySelector("[data-timer-status]");
const start = root.querySelector("[data-timer-start]");
const lengths = [...root.querySelectorAll("[data-length]")];
const wedges = [...root.querySelectorAll("[data-wedge]")];
const quarters = [...root.querySelectorAll("[data-quarter]")];
let total = 120;
let elapsed = 0;
let last = 0;
let ticking = null;
const draw = () => {
const left = Math.max(0, Math.ceil(total - elapsed));
clock.textContent = `${Math.floor(left / 60)}:${String(left % 60).padStart(2, "0")}`;
const current = Math.min(4, Math.floor(elapsed / (total / 4)));
[wedges, quarters].forEach((list) => list.forEach((item, index) => {
item.classList.toggle("is-done", index < current);
item.classList.toggle("is-active", index === current && elapsed > 0);
}));
if (elapsed >= total) status.textContent = "All done. Spit, do not rinse, and smile.";
else if (elapsed > 0) status.textContent = `Now brushing: ${quarters[current].lastChild.textContent.trim().toLowerCase()}.`;
else status.textContent = "Ready when you are.";
};
const stop = () => {
clearInterval(ticking);
ticking = null;
start.setAttribute("aria-pressed", "false");
start.textContent = elapsed > 0 && elapsed < total ? "Carry on" : "Start";
};
const run = () => {
if (elapsed >= total) elapsed = 0;
last = Date.now();
start.setAttribute("aria-pressed", "true");
start.textContent = "Pause";
ticking = setInterval(() => {
const now = Date.now();
elapsed += (now - last) / 1000;
last = now;
if (elapsed >= total) { elapsed = total; stop(); }
draw();
}, 200);
};
start.addEventListener("click", () => (ticking ? stop() : run()));
root.querySelector("[data-timer-reset]").addEventListener("click", () => {
elapsed = 0;
stop();
draw();
});
lengths.forEach((button) => button.addEventListener("click", () => {
lengths.forEach((item) => item.setAttribute("aria-pressed", String(item === button)));
total = Number(button.dataset.length);
elapsed = 0;
stop();
draw();
}));
draw();
});
document.querySelectorAll("[data-team]").forEach((root) => {
const chips = [...root.querySelectorAll("[data-role-chip]")];
chips.forEach((chip) => chip.addEventListener("click", () => {
chips.forEach((item) => item.setAttribute("aria-pressed", String(item === chip)));
root.querySelectorAll("[data-role]").forEach((person) => {
person.hidden = chip.dataset.roleChip !== "all" && person.dataset.role !== chip.dataset.roleChip;
});
}));
});
document.querySelectorAll("[data-marquee]").forEach((marquee) => {
if (matchMedia("(prefers-reduced-motion: reduce)").matches) return;
const track = marquee.querySelector(".marquee-track");
[...track.children].forEach((card) => {
const copy = card.cloneNode(true);
copy.setAttribute("aria-hidden", "true");
track.appendChild(copy);
});
marquee.classList.add("is-running");
});
document.querySelectorAll("[data-hours]").forEach((list) => {
const row = list.querySelector(`[data-day="${new Date().getDay()}"]`);
if (row) row.classList.add("is-today");
});
document.querySelectorAll("[data-enquiry]").forEach((form) => {
form.addEventListener("submit", (event) => {
event.preventDefault();
if (!form.reportValidity()) return;
form.querySelector("[data-enquiry-done]").hidden = false;
});
});
</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
Salud y fitness
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é