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

SparkWise Navbar

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

0 140
SparkWise Navbar preview

Download Codebase

Commercial License

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

sparkwise.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>SparkWise Navbar | Tailwind CSS UI Block</title>
    <meta name="description" content="A navbar block extracted from the SparkWise template, available in Tailwind CSS.">
    <meta name="keywords" content="SparkWise, Tailwind CSS template, HTML website template, school website template, preschool landing page, kids education, responsive learning 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="SparkWise | Tailwind CSS School Website Template">
    <meta property="og:description" content="A colorful Tailwind CSS school website template for children&#39;s learning activities, classes, teachers, and education programs.">
    <meta property="og:image" content="">
    <meta property="og:image:alt" content="SparkWise template preview">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="">
    <meta name="twitter:title" content="SparkWise | Tailwind CSS School Website Template">
    <meta name="twitter:description" content="A colorful Tailwind CSS school website template for children&#39;s learning activities, classes, teachers, and education programs.">
    <meta name="twitter:image" content="">
    <meta name="twitter:image:alt" content="SparkWise template preview">
<!-- Scripts & Styles -->
    <script src="https://cdn.tailwindcss.com/3.4.17"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">

    <!-- Fonts -->
    <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=Fredoka:wght@300..700&family=Outfit:wght@100..900&display=swap" rel="stylesheet">

    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        brand: {
                            yellow: '#f5d547',
                            dark: '#2d2610',
                            accent: '#3b3014'
                        }
                    },
                    fontFamily: {
                        fredoka: ['Fredoka', 'sans-serif'],
                        outfit: ['Outfit', 'sans-serif'],
                    }
                }
            }
        }
    </script>

    <style>
        body {
            font-family: 'Outfit', sans-serif;
        }
        .hero-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 3rem;
            line-height: 0.9;
        }
        @media (min-width: 400px) {
            .hero-title { font-size: 3.5rem; }
        }
        @media (min-width: 768px) {
            .hero-title { font-size: 8.75rem; }
        }
        .squiggle-path {
            stroke-dasharray: 10;
            animation: dash 20s linear infinite;
        }
        @keyframes dash {
            to { stroke-dashoffset: 1000; }
        }
    </style>
</head>
<body class="bg-brand-yellow text-brand-dark overflow-x-hidden">
<!-- block:start navbar -->
    <header id="header" class="w-full px-6 py-6 md:px-12 flex items-center justify-between relative z-50">
        <a href="#" class="flex items-center gap-2">
            <div class="flex flex-col">
                <div class="flex items-center gap-1">
                    <i class="fa-solid fa-bolt text-xl"></i>
                    <span class="text-2xl font-black font-fredoka tracking-tight">SparkWise</span>
                </div>
            </div>
        </a>

        <nav class="hidden md:flex absolute left-1/2 -translate-x-1/2 items-center gap-12 text-sm font-bold opacity-70">
            <a href="#features" class="hover:opacity-100 transition">Programs</a>
            <a href="#info" class="hover:opacity-100 transition">Activities</a>
            <a href="#reviews" class="hover:opacity-100 transition">Teachers</a>
            <a href="#contact" class="hover:opacity-100 transition">Contact</a>
        </nav>

        <div class="flex items-center gap-3">
            <div class="hidden md:flex items-center gap-3">
                <a href="#contact" class="px-6 py-2.5 rounded-full text-sm font-black border-2 border-brand-dark hover:bg-brand-dark hover:text-white transition">
                    Log in
                </a>
                <a href="#cta" class="px-6 py-2.5 rounded-full text-sm font-black bg-brand-dark text-white hover:bg-brand-accent transition">
                    Enroll Now
                </a>
            </div>
            <button id="mobile-menu-button" type="button" class="w-10 h-10 flex flex-col items-center justify-center gap-1.5 group md:hidden" aria-controls="mobile-menu" aria-expanded="false" aria-label="Open navigation menu">
                <div data-menu-bar="top" class="w-8 h-0.5 bg-brand-dark rounded-full transition-all duration-300 origin-center"></div>
                <div data-menu-bar="middle" class="w-8 h-0.5 bg-brand-dark rounded-full transition-all duration-300"></div>
                <div data-menu-bar="bottom" class="w-8 h-0.5 bg-brand-dark rounded-full transition-all duration-300 origin-center"></div>
            </button>
        </div>

        <nav id="mobile-menu" class="absolute top-full left-6 right-6 hidden md:hidden flex-col gap-1 bg-white p-3 rounded-2xl shadow-2xl" aria-label="Mobile navigation">
            <a href="#features" class="px-5 py-4 rounded-xl text-sm font-bold hover:bg-brand-yellow/20 transition-colors">Programs</a>
            <a href="#info" class="px-5 py-4 rounded-xl text-sm font-bold hover:bg-brand-yellow/20 transition-colors">Activities</a>
            <a href="#reviews" class="px-5 py-4 rounded-xl text-sm font-bold hover:bg-brand-yellow/20 transition-colors">Teachers</a>
            <a href="#contact" class="px-5 py-4 rounded-xl text-sm font-bold hover:bg-brand-yellow/20 transition-colors">Contact</a>
        </nav>
    </header>
    <!-- block:end navbar -->
<script>
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        const mobileMenu = document.getElementById('mobile-menu');
        const menuBars = {
            top: mobileMenuButton.querySelector('[data-menu-bar="top"]'),
            middle: mobileMenuButton.querySelector('[data-menu-bar="middle"]'),
            bottom: mobileMenuButton.querySelector('[data-menu-bar="bottom"]')
        };

        const setMobileMenuOpen = (isOpen) => {
            mobileMenuButton.setAttribute('aria-expanded', String(isOpen));
            mobileMenuButton.setAttribute('aria-label', isOpen ? 'Close navigation menu' : 'Open navigation menu');
            mobileMenu.classList.toggle('hidden', !isOpen);
            mobileMenu.classList.toggle('flex', isOpen);
            menuBars.top.classList.toggle('translate-y-2', isOpen);
            menuBars.top.classList.toggle('rotate-45', isOpen);
            menuBars.middle.classList.toggle('opacity-0', isOpen);
            menuBars.bottom.classList.toggle('-translate-y-2', isOpen);
            menuBars.bottom.classList.toggle('-rotate-45', isOpen);
        };

        mobileMenuButton.addEventListener('click', () => {
            setMobileMenuOpen(mobileMenuButton.getAttribute('aria-expanded') !== 'true');
        });

        mobileMenu.addEventListener('click', (event) => {
            if (event.target.closest('a')) setMobileMenuOpen(false);
        });

        document.addEventListener('click', (event) => {
            if (!mobileMenuButton.contains(event.target) && !mobileMenu.contains(event.target)) {
                setMobileMenuOpen(false);
            }
        });

        document.addEventListener('keydown', (event) => {
            if (event.key === 'Escape' && mobileMenuButton.getAttribute('aria-expanded') === 'true') {
                setMobileMenuOpen(false);
                mobileMenuButton.focus();
            }
        });
    </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>

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