Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Navbar

VeloSync Navbar

A navbar block extracted from the VeloSync template, available in Tailwind CSS.

0 141
VeloSync Navbar preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

velosync.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>VeloSync Navbar | Tailwind CSS UI Block</title>
    <meta name="description" content="A navbar block extracted from the VeloSync template, available in Tailwind CSS.">
    <meta name="keywords" content="performance tracking template, productivity dashboard, smart invoicing SaaS, payroll platform, operational analytics, Tailwind CSS 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="VeloSync | Tailwind CSS Performance Tracking SaaS Template">
    <meta property="og:description" content="A responsive Tailwind CSS performance tracking template for team productivity, smart invoicing, payroll, capital planning, and operational analytics.">
    <meta property="og:image" content="">
    <meta property="og:image:alt" content="VeloSync template preview">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="">
    <meta name="twitter:title" content="VeloSync | Tailwind CSS Performance Tracking SaaS Template">
    <meta name="twitter:description" content="A responsive Tailwind CSS performance tracking template for team productivity, smart invoicing, payroll, capital planning, and operational analytics.">
    <meta name="twitter:image" content="">
    <meta name="twitter:image:alt" content="VeloSync 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.6.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    fontFamily: {
                        sans: ['Inter', 'sans-serif'],
                        title: ['Space Grotesk', 'sans-serif'],
                    },
                    colors: {
                        brand: {
                            50: '#f0fdf4',
                            100: '#dcfce7',
                            500: '#22c55e',
                            600: '#16a34a',
                            DEFAULT: '#bef264', /* Lime Green from mockup */
                        },
                        dark: '#111111',
                        surface: '#1a1a1a',
                        line: '#2a2a2a',
                    },
                    backgroundImage: {
                        'grid-pattern': "url('data:image/svg+xml,%3Csvg width=\"40\" height=\"40\" viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cpath d=\"M0 40 L40 40 L40 0\" fill=\"none\" stroke=\"%23333\" stroke-width=\"0.5\"/%3E%3C/svg%3E')",
                    }
                }
            }
        }
    </script>
    <style>
        .font-title { font-family: 'Space Grotesk', sans-serif; }
        .text-gradient {
            background: linear-gradient(to right, #bef264, #84cc16);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .hero-fade { transition: opacity 300ms ease, transform 300ms ease; }
        .hero-fade.is-swapping { opacity: 0; transform: translateY(0.75rem); }
    </style>
</head>
<body class="bg-white text-dark font-sans antialiased">
<!-- block:start navbar -->
    <header id="header" class="bg-dark border-b border-line sticky top-0 z-50">
        <div class="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
            <nav class="hidden lg:flex lg:flex-1 items-center gap-8 text-sm font-medium text-gray-400">
                <a href="#hero" class="hover:text-white transition-colors">Product</a>
                <a href="#about" class="hover:text-white transition-colors">About</a>
                <a href="#integrations" class="hover:text-white transition-colors">Integrations</a>
                <a href="#contact" class="hover:text-white transition-colors">Contact</a>
            </nav>

            <a href="#" class="flex items-center gap-2 group">
                <div class="w-8 h-8 bg-brand rounded flex items-center justify-center text-dark font-black transform group-hover:rotate-12 transition-transform">V</div>
                <span class="text-xl font-bold text-white tracking-tighter uppercase font-title">VeloSync</span>
            </a>

            <div class="ml-auto flex items-center gap-4 lg:flex-1 lg:justify-end">
                <a href="#contact" class="hidden lg:inline text-sm font-medium text-gray-400 hover:text-white">Log in</a>
                <a href="#contact" class="bg-white/10 hover:bg-white/20 border border-white/20 text-white px-5 py-2 rounded-full text-sm font-bold transition-all">Sign Up</a>
                <button
                    id="mobile-menu-button"
                    type="button"
                    class="lg:hidden text-white text-2xl"
                    aria-label="Open navigation"
                    aria-expanded="false"
                    aria-controls="mobile-navigation"
                >
                    <span id="mobile-menu-icon-open" aria-hidden="true"><i class="fa-solid fa-bars-staggered"></i></span>
                    <span id="mobile-menu-icon-close" class="hidden" aria-hidden="true"><i class="fa-solid fa-xmark"></i></span>
                </button>
            </div>

            <nav
                id="mobile-navigation"
                class="lg:hidden absolute top-full right-6 mt-2 w-56 p-3 bg-surface border border-line rounded-2xl shadow-2xl"
                aria-label="Mobile navigation"
                hidden
            >
                <a href="#hero" class="block px-4 py-3 rounded-xl text-sm font-medium text-white hover:bg-white/5 transition-colors">Product</a>
                <a href="#about" class="block px-4 py-3 rounded-xl text-sm font-medium text-gray-400 hover:bg-white/5 hover:text-white transition-colors">About</a>
                <a href="#integrations" class="block px-4 py-3 rounded-xl text-sm font-medium text-gray-400 hover:bg-white/5 hover:text-white transition-colors">Integrations</a>
                <a href="#contact" class="block px-4 py-3 rounded-xl text-sm font-medium text-gray-400 hover:bg-white/5 hover:text-white transition-colors">Contact</a>
                <a href="#contact" class="block px-4 py-3 rounded-xl text-sm font-medium text-gray-400 hover:bg-white/5 hover:text-white transition-colors">Log in</a>
            </nav>
        </div>
    </header>
    <!-- block:end navbar -->
<script>
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        const mobileMenuIconOpen = document.getElementById('mobile-menu-icon-open');
        const mobileMenuIconClose = document.getElementById('mobile-menu-icon-close');
        const mobileNavigation = document.getElementById('mobile-navigation');

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

        mobileMenuButton.addEventListener('click', () => {
            setMobileMenu(mobileMenuButton.getAttribute('aria-expanded') !== 'true');
        });
        mobileNavigation.querySelectorAll('a').forEach((link) => {
            link.addEventListener('click', () => setMobileMenu(false));
        });
        document.addEventListener('keydown', (event) => {
            if (event.key === 'Escape') setMobileMenu(false);
        });
        document.addEventListener('click', (event) => {
            if (!document.getElementById('header').contains(event.target)) setMobileMenu(false);
        });
        window.addEventListener('resize', () => {
            if (window.innerWidth >= 1024) setMobileMenu(false);
        });

        const heroSlides = Array.from(document.querySelectorAll('[data-hero-slide]'));
        const heroHeadline = document.getElementById('hero-headline');
        const heroBody = document.getElementById('hero-body');
        const heroLead = document.getElementById('hero-lead');
        const heroAccent = document.getElementById('hero-accent');
        const heroTail = document.getElementById('hero-tail');
        const heroReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
        const HERO_INTERVAL = 4000;

        let heroIndex = 0;
        let heroTimer = null;
        let heroPaused = false;

        function paintHeroCopy(index) {
            const slide = heroSlides[index];

            heroLead.textContent = slide.dataset.lead;
            heroAccent.textContent = slide.dataset.accent;
            heroTail.textContent = slide.dataset.tail;
            heroBody.textContent = slide.dataset.body;
        }

        // The slides wrap to different line counts, so hold the tallest one's
        // footprint to keep the page from jumping on every rotation.
        function reserveHeroSpace() {
            heroHeadline.style.minHeight = '';
            heroBody.style.minHeight = '';

            let headlineHeight = 0;
            let bodyHeight = 0;

            heroSlides.forEach((slide, index) => {
                paintHeroCopy(index);
                headlineHeight = Math.max(headlineHeight, heroHeadline.offsetHeight);
                bodyHeight = Math.max(bodyHeight, heroBody.offsetHeight);
            });
            paintHeroCopy(heroIndex);

            heroHeadline.style.minHeight = headlineHeight + 'px';
            heroBody.style.minHeight = bodyHeight + 'px';
        }

        function paintHeroSlide(index) {
            paintHeroCopy(index);

            heroSlides.forEach((button, buttonIndex) => {
                const active = buttonIndex === index;
                const dot = button.querySelector('[data-hero-dot]');

                button.setAttribute('aria-pressed', String(active));
                button.classList.toggle('text-brand', active);
                button.classList.toggle('font-bold', active);
                button.classList.toggle('text-gray-500', !active);
                button.classList.toggle('hover:text-white', !active);
                dot.classList.toggle('border-brand', active);
                dot.classList.toggle('bg-brand', active);
                dot.classList.toggle('text-dark', active);
                dot.classList.toggle('border-gray-700', !active);
            });
        }

        function showHeroSlide(index) {
            heroIndex = index;

            // Still rotate for motion-sensitive visitors, just without the drift.
            if (heroReducedMotion.matches) {
                paintHeroSlide(index);
                return;
            }

            heroHeadline.classList.add('is-swapping');
            heroBody.classList.add('is-swapping');

            setTimeout(() => {
                paintHeroSlide(heroIndex);
                heroHeadline.classList.remove('is-swapping');
                heroBody.classList.remove('is-swapping');
            }, 300);
        }

        function startHeroRotation() {
            clearInterval(heroTimer);

            heroTimer = setInterval(() => {
                if (heroPaused || document.hidden) return;
                showHeroSlide((heroIndex + 1) % heroSlides.length);
            }, HERO_INTERVAL);
        }

        heroSlides.forEach((button, index) => {
            // Jump to the pick, then keep cycling from there.
            button.addEventListener('click', () => {
                if (index !== heroIndex) showHeroSlide(index);
                startHeroRotation();
            });
        });

        const heroSlideList = document.getElementById('hero-slides');
        heroSlideList.addEventListener('mouseenter', () => { heroPaused = true; });
        heroSlideList.addEventListener('mouseleave', () => { heroPaused = false; });
        // Only a keyboard visitor needs the focus hold; a click already leaves
        // focus on the button, which would otherwise stall the cycle for good.
        heroSlideList.addEventListener('focusin', (event) => {
            if (event.target.matches(':focus-visible')) heroPaused = true;
        });
        heroSlideList.addEventListener('focusout', () => { heroPaused = false; });

        let heroResizeTimer = null;
        window.addEventListener('resize', () => {
            clearTimeout(heroResizeTimer);
            heroResizeTimer = setTimeout(reserveHeroSpace, 150);
        });

        // Web fonts change the metrics, so reserve once they are settled.
        reserveHeroSpace();
        if (document.fonts) document.fonts.ready.then(reserveHeroSpace);
        startHeroRotation();
    </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>

From this template

VeloSync screenshot Premium

SaaS

VeloSync

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