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

MindPlay Navbar

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

0 125
MindPlay Navbar preview

Download Codebase

Commercial License

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

mindplay.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>MindPlay Navbar | Tailwind CSS UI Block</title>
    <meta name="description" content="A navbar block extracted from the MindPlay template, available in Tailwind CSS.">
    <meta name="keywords" content="MindPlay, Tailwind CSS template, HTML website template, kids education template, school landing page, learning games, responsive education 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="MindPlay | Tailwind CSS Kids Education Template">
    <meta property="og:description" content="A playful Tailwind CSS education website template for children&#39;s activities, learning games, creative exercises, and school programs.">
    <meta property="og:image" content="">
    <meta property="og:image:alt" content="MindPlay template preview">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="">
    <meta name="twitter:title" content="MindPlay | Tailwind CSS Kids Education Template">
    <meta name="twitter:description" content="A playful Tailwind CSS education website template for children&#39;s activities, learning games, creative exercises, and school programs.">
    <meta name="twitter:image" content="">
    <meta name="twitter:image:alt" content="MindPlay 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=Outfit:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">

    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#7c3aed',
                        secondary: '#fb923c',
                        accent: '#fbbf24',
                        dark: '#1e1b4b'
                    },
                    fontFamily: {
                        sans: ['Outfit', 'sans-serif'],
                    },
                    borderRadius: {
                        '4xl': '2rem',
                        '5xl': '3rem',
                    }
                }
            }
        }
    </script>

    <style>
        .squiggle-bg {
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 50 Q 25 25 40 50 T 70 50 T 100 50' stroke='%237c3aed' stroke-width='2' fill='none' opacity='0.1'/%3E%3C/svg%3E");
        }
        .marquee {
            display: flex;
            overflow: hidden;
            user-select: none;
            gap: 2rem;
        }
        .marquee-content {
            flex-shrink: 0;
            display: flex;
            justify-content: space-around;
            gap: 2rem;
            min-width: 100%;
            animation: scroll 30s linear infinite;
        }
        @keyframes scroll {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        [hidden] { display: none !important; }
        .mp-mobile-nav:not([hidden]) {
            display: flex;
        }
        @media (min-width: 1024px) {
            .mp-mobile-nav,
            .mp-mobile-nav:not([hidden]) { display: none !important; }
        }
        .mp-nav-link.is-active {
            color: #7c3aed !important;
            background: rgba(124, 58, 237, 0.1) !important;
        }
    </style>
</head>
<body class="bg-[#fdfcfd] text-dark overflow-x-hidden">
<!-- block:start navbar -->
    <header id="header" class="fixed top-0 w-full z-50 bg-white/80 backdrop-blur-md border-b border-purple-50">
        <div class="max-w-7xl mx-auto px-6 py-4 flex items-center justify-between">
            <a href="#" class="flex items-center gap-2">
                <div class="w-10 h-10 bg-primary rounded-xl flex items-center justify-center text-white rotate-3">
                    <i class="fa-solid fa-graduation-cap text-xl"></i>
                </div>
                <span class="text-2xl font-extrabold tracking-tight text-primary">MINDPLAY</span>
            </a>
            
            <nav class="hidden lg:flex items-center gap-10" aria-label="Primary">
                <a href="#hero" data-nav-link class="mp-nav-link is-active text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-2 rounded-full" aria-current="page">Home</a>
                <a href="#activities" data-nav-link class="mp-nav-link text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-2 rounded-full">About Us</a>
                <a href="#feature-cards" data-nav-link class="mp-nav-link text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-2 rounded-full">Services</a>
                <a href="#articles" data-nav-link class="mp-nav-link text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-2 rounded-full">Pages</a>
            </nav>

            <div class="flex items-center gap-2">
                <button type="button" class="hidden lg:flex bg-primary text-white px-6 py-3 rounded-2xl text-sm font-bold hover:shadow-lg hover:shadow-primary/20 transition items-center gap-2">
                    Contact Us
                    <div class="w-6 h-6 bg-white/20 rounded-lg flex items-center justify-center">
                        <i class="fa-solid fa-paper-plane text-[10px]"></i>
                    </div>
                </button>
                <button
                    type="button"
                    id="mp-menu-button"
                    class="lg:hidden inline-flex w-10 h-10 items-center justify-center rounded-xl text-dark"
                    aria-controls="mp-mobile-nav"
                    aria-expanded="false"
                    aria-label="Open navigation menu"
                >
                    <i class="fa-solid fa-bars text-xl" aria-hidden="true"></i>
                </button>
            </div>
        </div>
        <nav id="mp-mobile-nav" class="mp-mobile-nav mx-4 mb-3 flex-col gap-1 rounded-2xl bg-white p-3 shadow-[0_18px_40px_rgba(30,27,75,0.12)]" aria-label="Mobile navigation" hidden>
            <a href="#hero" data-nav-link class="mp-nav-link is-active text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-3 rounded-xl" aria-current="page">Home</a>
            <a href="#activities" data-nav-link class="mp-nav-link text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-3 rounded-xl">About Us</a>
            <a href="#feature-cards" data-nav-link class="mp-nav-link text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-3 rounded-xl">Services</a>
            <a href="#articles" data-nav-link class="mp-nav-link text-sm font-bold text-gray-500 hover:text-primary transition px-4 py-3 rounded-xl">Pages</a>
            <button type="button" class="mt-1 self-start bg-primary text-white px-6 py-3 rounded-2xl text-sm font-bold flex items-center gap-2">
                Contact Us
                <div class="w-6 h-6 bg-white/20 rounded-lg flex items-center justify-center">
                    <i class="fa-solid fa-paper-plane text-[10px]"></i>
                </div>
            </button>
        </nav>
    </header>
    <!-- block:end navbar -->
<script>
      (function () {
        var links = document.querySelectorAll("[data-nav-link]");
        var menuButton = document.getElementById("mp-menu-button");
        var mobileNav = document.getElementById("mp-mobile-nav");

        function setActive(href) {
          links.forEach(function (link) {
            var isActive = link.getAttribute("href") === href;
            link.classList.toggle("is-active", isActive);
            if (isActive) {
              link.setAttribute("aria-current", "page");
            } else {
              link.removeAttribute("aria-current");
            }
          });
        }

        links.forEach(function (link) {
          link.addEventListener("click", function () {
            setActive(link.getAttribute("href"));
          });
        });

        function setMenuOpen(open) {
          if (!menuButton || !mobileNav) return;
          mobileNav.hidden = !open;
          menuButton.setAttribute("aria-expanded", String(open));
          menuButton.setAttribute("aria-label", open ? "Close navigation menu" : "Open navigation menu");
        }

        if (menuButton && mobileNav) {
          menuButton.addEventListener("click", function () {
            setMenuOpen(mobileNav.hidden);
          });
          mobileNav.querySelectorAll("a, button").forEach(function (item) {
            item.addEventListener("click", function () { setMenuOpen(false); });
          });
          document.addEventListener("click", function (event) {
            if (!menuButton.contains(event.target) && !mobileNav.contains(event.target)) {
              setMenuOpen(false);
            }
          });
          document.addEventListener("keydown", function (event) {
            if (event.key === "Escape") setMenuOpen(false);
          });
          window.addEventListener("resize", function () {
            if (window.innerWidth >= 1024) setMenuOpen(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>

From this template

MindPlay screenshot Premium

Education

MindPlay

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