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

Catenar Menú de navegación

A menú de navegación block extracted from the Catenar template, available in Tailwind CSS.

0 1
Catenar Menú de navegación preview

Download Codebase

Commercial License

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

catenar.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>Catenar Navbar | Tailwind CSS UI Block</title>
  <meta name="description" content="A navbar block extracted from the Catenar template, available in Tailwind CSS.">
  <meta name="keywords" content="Catenar, Tailwind CSS template, HTML website template, structural engineering website, engineering consultancy template, consulting template, project case study, span calculator, technical consultancy website, business 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="Catenar | Tailwind CSS Consulting Template">
  <meta property="og:description" content="A Tailwind CSS template for structural engineers and technical consultancies, with azure headlines, hairline figures, line-drawn structures, a live span sketcher, a carbon chart and a multi-step enquiry form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Catenar template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Catenar | Tailwind CSS Consulting Template">
  <meta name="twitter:description" content="A Tailwind CSS template for structural engineers and technical consultancies, with azure headlines, hairline figures, line-drawn structures, a live span sketcher, a carbon chart and a multi-step enquiry form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Catenar 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=IBM+Plex+Mono:wght@400;500&family=Inter+Tight:wght@100;200;400;500;600&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ice: '#e8edf3',
            paper: '#f4f7fa',
            azure: { DEFAULT: '#1b8fe6', deep: '#0b5fa8' },
            navy: '#16327a',
            ink: { DEFAULT: '#1f2c3b', mute: '#566475' },
            line: '#c3cfdc'
          },
          fontFamily: {
            sans: ['"Inter Tight"', 'sans-serif'],
            mono: ['"IBM Plex Mono"', 'monospace']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .headline { font-weight: 500; letter-spacing: -.025em; line-height: 1.02; color: #1b8fe6; }
    .figure { font-weight: 100; letter-spacing: -.03em; line-height: .9; color: #1b8fe6; font-variant-numeric: tabular-nums; }
    .anno { font-family: "IBM Plex Mono", monospace; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
    .drawing * { vector-effect: non-scaling-stroke; }
    .rail { scroll-snap-type: x mandatory; scrollbar-width: none; }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * { scroll-snap-align: start; }

    /* Side dots: the current section's dot sits inside a pale disc with a short arc, like a dial. */
    .dots a { position: relative; display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border-radius: 9999px; }
    .dots a::before { content: ""; height: .375rem; width: .375rem; border-radius: 9999px; background: #1b8fe6; }
    .dots a[aria-current="true"] { background: #d3e2f2; }
    .dots a[aria-current="true"]::after { content: ""; position: absolute; inset: -1px; border-radius: 9999px; border: 2px solid transparent; border-top-color: #1b8fe6; transform: rotate(35deg); }

    .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; }
    .bar { transform-origin: bottom; transition: transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
    .reveal-ready [data-reveal]:not(.is-visible) .bar { transform: scaleY(0); }
    @media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
  </style>
</head>
<body class="bg-ice font-sans text-ink antialiased">
<!-- block:start navbar -->
  <header class="absolute inset-x-0 top-0 z-30">
    <div class="px-5 md:px-12"><div class="mx-auto flex max-w-[1300px] items-center justify-between gap-6 py-6 md:py-9">
      <a href="index.html" class="flex items-center gap-2 text-2xl font-semibold tracking-tight text-navy" aria-label="Catenar home">
        <svg viewBox="0 0 40 28" class="h-6 w-9" aria-hidden="true"><path d="M3 4C8 26 32 26 37 4" fill="none" stroke="#1b8fe6" stroke-width="3" stroke-linecap="round"/><circle cx="3" cy="4" r="3" fill="#16327a"/><circle cx="37" cy="4" r="3" fill="#16327a"/></svg>
        catenar
      </a>
      <nav aria-label="Main" class="hidden items-center gap-10 md:flex">
          <a href="services.html" class="text-ink-mute transition hover:text-azure-deep">Services</a>
          <a href="projects.html" class="text-ink-mute transition hover:text-azure-deep">Projects</a>
          <a href="contact.html" class="text-ink-mute transition hover:text-azure-deep">Contact</a>
        <a href="contact.html" class="rounded-full border border-azure px-5 py-2 font-medium text-azure-deep transition hover:bg-azure hover:text-white">Start a project</a>
      </nav>
      <button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" aria-label="Open menu" class="flex h-11 w-11 items-center justify-center rounded-full border border-line bg-paper text-navy md:hidden"><i class="fa-solid fa-bars"></i></button>
    </div></div>
    <nav id="mobile-menu" aria-label="Mobile" class="mx-5 hidden rounded-2xl border border-line bg-paper p-3 shadow-lg md:hidden">
        <a href="services.html" class="block rounded-xl px-4 py-3 text-lg hover:bg-ice">Services</a>
        <a href="projects.html" class="block rounded-xl px-4 py-3 text-lg hover:bg-ice">Projects</a>
        <a href="contact.html" class="block rounded-xl px-4 py-3 text-lg hover:bg-ice">Contact</a>
      <a href="contact.html" class="mt-2 block rounded-xl bg-azure px-4 py-3 text-center font-medium text-white">Start a project</a>
    </nav>
  </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);
      });
    });

    // Side dots follow the section in view.
    document.querySelectorAll("[data-dots]").forEach((root) => {
      const links = [...root.querySelectorAll("a")];
      const targets = links.map((link) => document.querySelector(link.getAttribute("href"))).filter(Boolean);
      if (!targets.length || !("IntersectionObserver" in window)) return;
      const mark = (id) => links.forEach((link) => link.setAttribute("aria-current", String(link.getAttribute("href") === `#${id}`)));
      mark(targets[0].id);
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => { if (entry.isIntersecting) mark(entry.target.id); });
      }, { rootMargin: "-45% 0px -45% 0px" });
      targets.forEach((target) => observer.observe(target));
    });

    // Discipline tabs.
    document.querySelectorAll("[data-tabs]").forEach((root) => {
      const tabs = [...root.querySelectorAll('[role="tab"]')];
      const select = (tab) => tabs.forEach((other) => {
        other.setAttribute("aria-selected", String(other === tab));
        document.getElementById(other.getAttribute("aria-controls")).hidden = other !== tab;
      });
      tabs.forEach((tab, index) => {
        tab.addEventListener("click", () => select(tab));
        tab.addEventListener("keydown", (event) => {
          if (event.key !== "ArrowRight" && event.key !== "ArrowLeft") return;
          const next = tabs[(index + (event.key === "ArrowRight" ? 1 : -1) + tabs.length) % tabs.length];
          next.focus();
          select(next);
        });
      });
    });

    // Sketch a span: rule-of-thumb sizing, drawn to scale beside a 1.75 m person.
    document.querySelectorAll("[data-sketch]").forEach((root) => {
      const form = root.querySelector("[data-sketch-form]");
      const svg = root.querySelector("[data-sketch-drawing]");
      if (!form || !svg) return;
      const rules = {
        steel: { label: "Steel truss", ratio: { roof: 15, floor: 12, bridge: 18 }, kgPerM: (span) => 55 + span * 4.2, carbon: 1.55 },
        timber: { label: "Glulam arch", ratio: { roof: 7, floor: 6, bridge: 8 }, kgPerM: (span) => 38 + span * 2.6, carbon: 0.28 },
        concrete: { label: "Concrete beam", ratio: { roof: 20, floor: 16, bridge: 22 }, kgPerM: (span) => 420 + span * 30, carbon: 0.16 }
      };
      const fmt = (value, digits = 0) => value.toLocaleString("en-GB", { minimumFractionDigits: digits, maximumFractionDigits: digits });
      const update = () => {
        const data = new FormData(form);
        const span = Number(data.get("span"));
        const material = data.get("material");
        const use = data.get("use");
        const rule = rules[material];
        const ratio = rule.ratio[use];
        const depth = Math.ceil(span * 1000 / ratio / 25) * 25;
        const weight = rule.kgPerM(span) * span / 1000;
        const carbon = weight * rule.carbon;

        // Geometry: the drawn length grows with the span; depth and the person are to the same scale.
        const length = 420 + (span - 6) / 54 * 440;
        const x0 = (960 - length) / 2;
        const x1 = x0 + length;
        const base = 205;
        const scale = length / span;
        const d = depth / 1000 * scale;
        const top = base - d;
        let bays = Math.min(24, Math.max(4, 2 * Math.round(span * 1000 / depth / 2)));
        let dark = "";
        let light = "";
        if (material === "steel") {
          const step = length / bays;
          dark = `M${x0} ${base}H${x1}M${x0} ${top}H${x1}`;
          for (let i = 0; i <= bays; i++) dark += `M${x0 + i * step} ${base}V${top}`;
          for (let i = 0; i < bays; i++) light += i < bays / 2 ? `M${x0 + i * step} ${top}L${x0 + (i + 1) * step} ${base}` : `M${x0 + (i + 1) * step} ${top}L${x0 + i * step} ${base}`;
        } else if (material === "timber") {
          bays = Math.min(20, Math.max(6, 2 * Math.round(span / 6)));
          const step = length / bays;
          const y = (i) => base - d * 4 * (i / bays) * (1 - i / bays);
          dark = `M${x0} ${base}H${x1}M${x0} ${base}`;
          for (let i = 1; i <= bays; i++) dark += `L${x0 + i * step} ${y(i)}`;
          for (let i = 1; i < bays; i++) light += `M${x0 + i * step} ${base}V${y(i)}`;
        } else {
          bays = Math.min(20, Math.max(4, Math.round(span / 3)));
          const step = length / bays;
          dark = `M${x0} ${top}H${x1}V${base}H${x0}Z`;
          const r = Math.max(2, Math.min(d * .28, step * .3));
          for (let i = 0; i < bays; i++) light += `M${x0 + (i + .5) * step - r} ${base - d / 2}a${r} ${r} 0 1 0 ${2 * r} 0a${r} ${r} 0 1 0 ${-2 * r} 0`;
        }
        const person = 1.75 * scale;
        const px = x0 + length * (material === "timber" ? .5 : .72);
        const head = person * .075;
        const figure = `M${px} ${top - person * .86}V${top - person * .4}M${px} ${top - person * .4}l${-person * .1} ${person * .4}M${px} ${top - person * .4}l${person * .1} ${person * .4}M${px - person * .12} ${top - person * .62}H${px + person * .12}`;
        svg.innerHTML = `
          <path stroke="#16327a" stroke-width="1.3" d="${dark}"/>
          <path stroke="#1b8fe6" stroke-width="1" d="${light}"/>
          <path stroke="#566475" stroke-width="1" d="${figure}"/><circle cx="${px}" cy="${top - person * .86 - head}" r="${head}" stroke="#566475"/>
          <path stroke="#1b8fe6" stroke-dasharray="3 5" d="M${x0} 250H${x1}"/>
          <path stroke="#1b8fe6" d="M${x0} 240V260M${x1} 240V260M${x0 - 12} ${base + 18}L${x0} ${base}L${x0 + 12} ${base + 18}ZM${x1 - 12} ${base + 18}L${x1} ${base}L${x1 + 12} ${base + 18}Z"/>
          <text x="480" y="280" text-anchor="middle" fill="#0b5fa8" font-family="IBM Plex Mono, monospace" font-size="14">${span} m</text>`;

        root.querySelector("[data-sketch-span-label]").textContent = span;
        root.querySelector("[data-sketch-depth]").textContent = fmt(depth);
        root.querySelector("[data-sketch-weight]").textContent = fmt(weight, weight < 100 ? 1 : 0);
        root.querySelector("[data-sketch-carbon]").textContent = fmt(carbon, carbon < 100 ? 1 : 0);
        root.querySelector("[data-sketch-note]").textContent = `${rule.label}, ${bays} bays, span-to-${material === "timber" ? "rise" : "depth"} ${ratio}`;
        root.querySelector("[data-sketch-link]").href = `contact.html?span=${span}&material=${material}&use=${use}`;
      };
      form.addEventListener("input", update);
      form.addEventListener("submit", (event) => event.preventDefault());
      update();
    });

    // Project rail arrows.
    document.querySelectorAll("[data-rail]").forEach((root) => {
      const track = root.querySelector("[data-rail-track]");
      const move = (direction) => track.scrollBy({ left: direction * Math.min(track.clientWidth * .8, 460), behavior: "smooth" });
      root.querySelector("[data-rail-prev]")?.addEventListener("click", () => move(-1));
      root.querySelector("[data-rail-next]")?.addEventListener("click", () => move(1));
    });

    // Stage ring: the arc fills up to the chosen stage.
    document.querySelectorAll("[data-ring]").forEach((root) => {
      const tabs = [...root.querySelectorAll('[role="tab"]')];
      const arc = root.querySelector("[data-ring-arc]");
      const number = root.querySelector("[data-ring-number]");
      let current = 0;
      const show = (index) => {
        current = (index + tabs.length) % tabs.length;
        tabs.forEach((tab, i) => {
          tab.setAttribute("aria-selected", String(i === current));
          document.getElementById(tab.getAttribute("aria-controls")).hidden = i !== current;
        });
        arc.setAttribute("stroke-dasharray", `${Math.max(current, .15)} ${tabs.length}`);
        number.textContent = current + 1;
      };
      tabs.forEach((tab, index) => tab.addEventListener("click", () => show(index)));
      root.querySelector("[data-ring-prev]")?.addEventListener("click", () => show(current - 1));
      root.querySelector("[data-ring-next]")?.addEventListener("click", () => show(current + 1));
    });

    (() => {
      const items = document.querySelectorAll("[data-reveal]");
      const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
      if (!items.length || skip) 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>

From this template

Catenar screenshot Premium

Professional Services

Catenar

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