The Fairway Club Navbar Navbar Block - Let's templates
Unlock every premium block and template with All-Access from €20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Navbar

The Fairway Club Navbar

A navbar block extracted from the The Fairway Club template, available in Tailwind CSS, Bootstrap, DaisyUI, and Material Design.

0 9
The Fairway Club Navbar preview
the-fairway-club.html
<!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>The Fairway Club Navbar | Tailwind CSS UI Block</title>
    <meta name="description" content="A navbar block extracted from the The Fairway Club template, available in Tailwind CSS, Bootstrap, DaisyUI, and Material Design.">
    <meta name="keywords" content="The Fairway Club, Tailwind CSS template, HTML website template, private golf club, membership landing page, luxury sports club, responsive golf website 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="The Fairway Club | Tailwind CSS Private Golf Club Template">
    <meta property="og:description" content="An elegant Tailwind CSS template for private golf clubs, members-only sanctuaries, and luxury sports membership landing pages.">
    <meta property="og:image" content="">
    <meta property="og:image:alt" content="The Fairway Club template preview">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="">
    <meta name="twitter:title" content="The Fairway Club | Tailwind CSS Private Golf Club Template">
    <meta name="twitter:description" content="An elegant Tailwind CSS template for private golf clubs, members-only sanctuaries, and luxury sports membership landing pages.">
    <meta name="twitter:image" content="">
    <meta name="twitter:image:alt" content="The Fairway Club template preview">
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap" rel="stylesheet">
    <style>
        html {
            overflow-x: hidden;
        }
        body {
            font-family: 'Inter', sans-serif;
            background-color: #f5f3eb;
            color: #1a1a1a;
        }
        h1, h2, .serif {
            font-family: 'Playfair Display', serif;
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
    </style>
</head>
<body class="antialiased overflow-x-hidden">
<!-- block:start navbar -->
    <header id="header" class="sticky top-0 z-50 w-full bg-[#f5f3eb]/95 backdrop-blur-md border-b border-neutral-200/60">
        <div class="relative max-w-7xl mx-auto px-4 sm:px-6 md:px-12 py-4 md:py-6 flex items-center justify-between">
            <a href="#hero" class="md:hidden serif text-lg font-bold leading-none tracking-tighter uppercase shrink-0">
                Fairway<br><span class="text-[10px] tracking-[0.3em] font-normal font-sans">Club</span>
            </a>

            <nav class="hidden md:flex items-center space-x-8 text-sm font-medium tracking-wide uppercase shrink-0">
                <a href="#hero" class="hover:opacity-60 transition-opacity">Entrance</a>
                <a href="#philosophy" class="hover:opacity-60 transition-opacity">The Heritage</a>
                <a href="#membership" class="hover:opacity-60 transition-opacity">Membership</a>
            </nav>

            <div class="hidden md:block absolute left-1/2 -translate-x-1/2 text-center pointer-events-none">
                <a href="#hero" class="pointer-events-auto serif text-2xl font-bold leading-none tracking-tighter uppercase">
                    Fairway<br><span class="text-xs tracking-[0.3em] font-normal font-sans">Club</span>
                </a>
            </div>

            <div class="flex items-center gap-3 shrink-0">
                <a href="#membership" class="hidden md:inline-block text-xs uppercase tracking-[0.2em] font-medium border-b border-black/40 pb-1 hover:opacity-60 transition-opacity">
                    Apply
                </a>
                <button
                    id="mobile-menu-button"
                    type="button"
                    class="md:hidden flex flex-col justify-center items-end w-10 h-10 focus:outline-none group"
                    aria-label="Open navigation"
                    aria-expanded="false"
                    aria-controls="mobile-navigation"
                >
                    <span id="mobile-menu-icon-open" class="flex flex-col space-y-1.5" aria-hidden="true">
                        <span class="w-7 h-px bg-black group-hover:w-5 transition-all"></span>
                        <span class="w-7 h-px bg-black"></span>
                    </span>
                    <span id="mobile-menu-icon-close" class="hidden text-xl leading-none" aria-hidden="true">
                        <i class="fa-solid fa-xmark"></i>
                    </span>
                </button>
            </div>
        </div>

        <nav
            id="mobile-navigation"
            class="md:hidden border-t border-neutral-200/60 bg-[#f5f3eb] px-4 py-4"
            aria-label="Mobile navigation"
            hidden
        >
            <div class="flex flex-col text-sm font-medium tracking-wide uppercase">
                <a href="#hero" class="px-3 py-3 rounded-xl hover:bg-white/70 transition-colors">Entrance</a>
                <a href="#philosophy" class="px-3 py-3 rounded-xl hover:bg-white/70 transition-colors">The Heritage</a>
                <a href="#membership" class="px-3 py-3 rounded-xl hover:bg-white/70 transition-colors">Membership</a>
                <a href="#events" class="px-3 py-3 rounded-xl hover:bg-white/70 transition-colors">The Season</a>
                <a href="#location" class="px-3 py-3 rounded-xl hover:bg-white/70 transition-colors">The Estate</a>
            </div>
        </nav>
    </header>
    <!-- block:end navbar -->
<script>
        (function () {
            const mobileMenuButton = document.getElementById('mobile-menu-button');
            const mobileNavigation = document.getElementById('mobile-navigation');
            const iconOpen = document.getElementById('mobile-menu-icon-open');
            const iconClose = document.getElementById('mobile-menu-icon-close');

            if (!mobileMenuButton || !mobileNavigation) return;

            function setMobileMenu(open) {
                mobileNavigation.hidden = !open;
                mobileMenuButton.setAttribute('aria-expanded', String(open));
                mobileMenuButton.setAttribute('aria-label', open ? 'Close navigation' : 'Open navigation');
                iconOpen.classList.toggle('hidden', open);
                iconClose.classList.toggle('hidden', !open);
            }

            mobileMenuButton.addEventListener('click', function () {
                setMobileMenu(mobileNavigation.hidden);
            });

            mobileNavigation.querySelectorAll('a').forEach(function (link) {
                link.addEventListener('click', function () {
                    setMobileMenu(false);
                });
            });

            document.addEventListener('keydown', function (event) {
                if (event.key === 'Escape' && !mobileNavigation.hidden) {
                    setMobileMenu(false);
                }
            });
        })();
    </script>
</body>
</html>

From this template

The Fairway Club screenshot Free

Business

The Fairway Club

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

€20 / 3 months or €60 / year
Get Unlimited Access