Free
Navbar
Fieldmark Navbar
A navbar block extracted from the Fieldmark template, available in Tailwind CSS.
0
18
A navbar block extracted from the Fieldmark 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>Fieldmark Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar block extracted from the Fieldmark template, available in Tailwind CSS.">
<meta name="keywords" content="Fieldmark, Tailwind CSS template, HTML website template, business template, land marketplace, real estate website, property listings template, farmland for sale, parcel map, realtor website">
<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="Fieldmark | Tailwind CSS Business Template">
<meta property="og:description" content="A fresh Tailwind CSS business template for land and property marketplaces, with an interactive parcel map, masonry listings and flip-card agents.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Fieldmark template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Fieldmark | Tailwind CSS Business Template">
<meta name="twitter:description" content="A fresh Tailwind CSS business template for land and property marketplaces, with an interactive parcel map, masonry listings and flip-card agents.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Fieldmark 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=Familjen+Grotesk:wght@500;600;700&family=Figtree:wght@400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { lime: { DEFAULT: '#cfe97a', soft: '#e9f5c4' }, moss: { DEFAULT: '#1d4a1f', light: '#2f6b31' }, ink: '#151515', cloud: '#f4f5ef' },
fontFamily: { sans: ['Figtree', 'sans-serif'], display: ['"Familjen Grotesk"', '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; }
[hidden] { display: none !important; }
.slant-photo { clip-path: polygon(0 100%, 0 46%, 34% 0, 100% 0, 100% 100%); }
@media (max-width: 1023px) { .slant-photo { clip-path: polygon(0 100%, 0 18%, 18% 0, 100% 0, 100% 100%); } }
.float-a { animation: float 6s ease-in-out infinite; }
.float-b { animation: float 7.5s ease-in-out infinite reverse; }
@keyframes float { 50% { translate: 0 -8px; } }
.tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.parcel { transition: opacity .3s ease, filter .3s ease; cursor: pointer; }
.parcel:hover, .parcel:focus-visible { filter: brightness(1.08); outline: none; }
.parcel[aria-pressed="true"] { stroke: #151515; stroke-width: 3; }
.parcel.is-dim { opacity: .2; }
.flip { perspective: 1200px; }
.flip-inner { transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip-inner, .flip:hover .flip-inner { transform: rotateY(180deg); }
.flip-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }
.bubble-in { animation: bubble .4s ease both; }
@keyframes bubble { from { opacity: 0; transform: translateY(8px); } }
.stamp { background: radial-gradient(circle at 4px 4px, transparent 3px, #cfe97a 3.5px) -4px -4px / 12px 12px; }
.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; }
.float-a, .float-b, .bubble-in { animation: none; }
.flip-inner, .parcel { transition: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- block:start navbar -->
<header class="relative z-40">
<nav class="mx-auto flex max-w-7xl items-center justify-between gap-6 px-5 py-6 md:px-10" aria-label="Main">
<a href="index.html" class="flex items-center gap-2 font-display text-3xl font-bold tracking-tight" aria-label="Fieldmark home">
<svg class="h-8 w-8" viewBox="0 0 32 32" aria-hidden="true"><path d="M16 2 29 9.5v13L16 30 3 22.5v-13z" fill="#151515"/><path d="M16 2v28M3 9.5l26 13M29 9.5 3 22.5" stroke="#fff" stroke-width="1.6"/></svg>
fieldmark
</a>
<ul class="hidden items-center gap-10 text-[15px] lg:flex">
<li><a href="overview.html" class="border-b-2 pb-1 transition border-transparent hover:border-ink/30">Overview</a></li>
<li><a href="maps.html" class="border-b-2 pb-1 transition border-transparent hover:border-ink/30">Maps</a></li>
<li><a href="sectors.html" class="border-b-2 pb-1 transition border-transparent hover:border-ink/30">Sectors</a></li>
<li><a href="about.html" class="border-b-2 pb-1 transition border-transparent hover:border-ink/30">About</a></li>
<li><a href="contact.html" class="border-b-2 pb-1 transition border-transparent hover:border-ink/30">Contact</a></li>
</ul>
<div class="flex items-center gap-3">
<a href="login.html" class="hidden text-[15px] transition hover:text-moss sm:inline">Sign in</a>
<a href="login.html" class="rounded-lg bg-ink px-5 py-2.5 text-[15px] font-medium text-white transition hover:bg-moss">Log in</a>
<button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" aria-label="Open menu" class="grid h-11 w-11 place-items-center rounded-lg border border-ink/15 lg:hidden"><i class="fa-solid fa-bars" aria-hidden="true"></i></button>
</div>
</nav>
<div id="mobile-menu" class="hidden px-5 pb-4 lg:hidden">
<ul class="grid gap-1 rounded-3xl bg-cloud p-3">
<li><a href="index.html" aria-current="page" class="block rounded-2xl px-4 py-3 font-medium bg-lime">Home</a></li>
<li><a href="overview.html" class="block rounded-2xl px-4 py-3 font-medium hover:bg-white">Overview</a></li>
<li><a href="maps.html" class="block rounded-2xl px-4 py-3 font-medium hover:bg-white">Maps</a></li>
<li><a href="sectors.html" class="block rounded-2xl px-4 py-3 font-medium hover:bg-white">Sectors</a></li>
<li><a href="about.html" class="block rounded-2xl px-4 py-3 font-medium hover:bg-white">About</a></li>
<li><a href="contact.html" class="block rounded-2xl px-4 py-3 font-medium hover:bg-white">Contact</a></li>
<li><a href="login.html" class="block rounded-2xl px-4 py-3 font-medium hover:bg-white">Log in</a></li>
</ul>
</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 reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
document.querySelectorAll('[data-parcel-map]').forEach((root) => {
const parcels = [...root.querySelectorAll('[data-parcel]')];
const card = root.querySelector('[data-parcel-card]');
const colors = {};
parcels.forEach((parcel) => { colors[parcel.dataset.sector] = parcel.getAttribute('fill'); });
const show = (parcel) => {
parcels.forEach((other) => other.setAttribute('aria-pressed', String(other === parcel)));
card.querySelector('[data-parcel-name]').textContent = parcel.dataset.name;
card.querySelector('[data-parcel-sector]').textContent = parcel.dataset.sectorLabel;
card.querySelector('[data-parcel-dot]').style.background = colors[parcel.dataset.sector];
card.querySelector('[data-parcel-acres]').textContent = parcel.dataset.acres;
card.querySelector('[data-parcel-price]').textContent = parcel.dataset.price;
card.querySelector('[data-parcel-zoning]').textContent = parcel.dataset.zoning;
card.querySelector('[data-parcel-link]').setAttribute('href', parcel.dataset.parcel === 'willow' ? 'willow-creek-ranch.html' : 'maps.html');
};
parcels.forEach((parcel) => {
parcel.addEventListener('click', () => show(parcel));
parcel.addEventListener('keydown', (event) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); show(parcel); } });
});
root.querySelectorAll('[data-sector-filter]').forEach((chip) => chip.addEventListener('click', () => {
const sector = chip.dataset.sectorFilter;
root.querySelectorAll('[data-sector-filter]').forEach((other) => { other.setAttribute('aria-pressed', String(other === chip)); other.selected = other === chip; });
parcels.forEach((parcel) => parcel.classList.toggle('is-dim', sector !== 'all' && parcel.dataset.sector !== sector));
const first = parcels.find((parcel) => !parcel.classList.contains('is-dim'));
if (first) show(first);
}));
});
document.querySelectorAll('[data-lightbox]').forEach((root) => {
const dialog = root.querySelector('[data-lightbox-dialog]');
if (!dialog || typeof dialog.showModal !== 'function') return;
root.querySelectorAll('[data-lightbox-open]').forEach((button) => button.addEventListener('click', () => {
dialog.querySelector('[data-lightbox-image]').src = button.dataset.image;
dialog.querySelector('[data-lightbox-image]').alt = button.dataset.alt;
dialog.querySelector('[data-lightbox-title]').textContent = button.dataset.title;
dialog.querySelector('[data-lightbox-meta]').textContent = button.dataset.meta;
dialog.querySelector('[data-lightbox-link]').setAttribute('href', button.dataset.href);
dialog.showModal();
}));
dialog.querySelector('[data-lightbox-close]').addEventListener('click', () => dialog.close());
dialog.addEventListener('click', (event) => { if (event.target === dialog) dialog.close(); });
});
document.querySelectorAll('[data-flip]').forEach((card) => {
card.addEventListener('click', () => card.setAttribute('aria-pressed', String(card.getAttribute('aria-pressed') !== 'true')));
});
document.querySelectorAll('[data-avatar-switcher]').forEach((root) => {
root.querySelectorAll('[data-quote-pick]').forEach((button) => button.addEventListener('click', () => {
root.querySelectorAll('[data-quote-pick]').forEach((other) => other.setAttribute('aria-pressed', String(other === button)));
root.querySelectorAll('[data-quote]').forEach((quote) => { quote.hidden = quote.dataset.quote !== button.dataset.quotePick; });
}));
});
document.querySelectorAll('[data-chat-faq]').forEach((root) => {
const log = root.querySelector('[data-chat-log]');
const bubble = (text, mine) => {
const item = document.createElement('li');
item.className = `bubble-in max-w-[85%] rounded-3xl px-5 py-3 ${mine ? 'self-end rounded-br-md bg-moss text-white' : 'rounded-bl-md bg-cloud'}`;
item.textContent = text;
log.append(item);
log.scrollTop = log.scrollHeight;
};
root.querySelectorAll('[data-chat-question]').forEach((button) => button.addEventListener('click', () => {
bubble((button.label || button.textContent).trim(), true);
setTimeout(() => bubble(button.dataset.answer, false), reducedMotion ? 0 : 500);
}));
});
document.querySelectorAll('[data-plot-gallery]').forEach((gallery) => {
const main = gallery.querySelector('[data-plot-main]');
gallery.querySelectorAll('[data-plot-thumb]').forEach((thumb) => thumb.addEventListener('click', () => {
main.src = thumb.dataset.plotThumb;
main.alt = thumb.querySelector('img').alt;
gallery.querySelectorAll('[data-plot-thumb]').forEach((other) => other.setAttribute('aria-pressed', String(other === thumb)));
}));
});
document.querySelectorAll('[data-compare]').forEach((compare) => {
const range = compare.querySelector('[data-compare-range]');
const after = compare.querySelector('[data-compare-after]');
const handle = compare.querySelector('[data-compare-handle]');
const update = () => { const value = Number(range.value); after.style.clipPath = `inset(0 0 0 ${value}%)`; handle.style.left = `${value}%`; };
range.addEventListener('input', update);
update();
});
document.querySelectorAll('[data-plot-search]').forEach((root) => {
const input = root.querySelector('[data-plot-query]');
const rows = [...root.querySelectorAll('[data-plot-row]')];
const count = root.querySelector('[data-plot-count]');
let sector = 'all';
const apply = () => {
const query = String(input.value || '').trim().toLowerCase();
let shown = 0;
rows.forEach((row) => {
const match = (sector === 'all' || row.dataset.sector === sector) && (!query || row.textContent.toLowerCase().includes(query));
row.hidden = !match;
if (match) shown += 1;
});
count.textContent = shown;
};
input.addEventListener('input', apply);
root.querySelectorAll('[data-plot-sector]').forEach((chip) => chip.addEventListener('click', () => {
sector = chip.dataset.plotSector;
root.querySelectorAll('[data-plot-sector]').forEach((other) => { other.setAttribute('aria-pressed', String(other === chip)); other.selected = other === chip; });
apply();
}));
});
document.querySelectorAll('[data-login-tabs]').forEach((root) => {
const tabs = [...root.querySelectorAll('[role="tab"]')];
tabs.forEach((tab) => tab.addEventListener('click', () => tabs.forEach((other) => {
const active = other === tab;
other.setAttribute('aria-selected', String(active));
other.tabIndex = active ? 0 : -1;
document.getElementById(other.getAttribute('aria-controls')).hidden = !active;
})));
});
document.querySelectorAll('[data-contact-form]').forEach((form) => {
form.addEventListener('submit', (event) => {
event.preventDefault();
const status = form.querySelector('[data-form-status]');
if (!form.checkValidity()) {
status.textContent = form.dataset.error;
form.querySelector(':invalid')?.focus();
return;
}
status.textContent = form.dataset.success;
form.reset();
});
});
document.querySelectorAll('[data-current-year]').forEach((el) => { el.textContent = new Date().getFullYear(); });
(() => {
const counters = document.querySelectorAll('[data-count-to]');
if (!counters.length || !watchMotion) return;
const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (!entry.isIntersecting) return;
const el = entry.target;
const target = Number(el.dataset.countTo);
const start = performance.now();
const tick = (now) => { const p = Math.min((now - start) / 700, 1); el.textContent = Math.round(target * p); if (p < 1) requestAnimationFrame(tick); };
requestAnimationFrame(tick);
observer.unobserve(el);
}), { threshold: 0.6 });
counters.forEach((el) => observer.observe(el));
})();
(() => {
const items = document.querySelectorAll('[data-reveal]');
if (!items.length || !watchMotion) 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
Business
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.
Tailwind CSS · HTML download