Free
Demo
Catenar Demo
A demo block extracted from the Catenar template, available in Tailwind CSS.
0
0
A demo block extracted from the Catenar template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with All-Access
<!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 Demo | Tailwind CSS UI Block</title>
<meta name="description" content="A demo 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 demo -->
<section id="sketch" class="border-t border-line px-5 py-20 md:px-12 md:py-28" data-sketch>
<div class="mx-auto max-w-[1300px]">
<p class="anno text-ink-mute">02 / Try it</p>
<div class="mt-4 grid gap-6 lg:grid-cols-2 lg:items-end">
<h2 class="headline text-4xl md:text-6xl">Sketch a span.</h2>
<p class="max-w-md text-lg text-ink-mute lg:justify-self-end">Drag the span, pick a material and see roughly how deep, how heavy and how carbon-hungry the beam gets. It is a rule of thumb, which is how every real design starts.</p>
</div>
<div class="mt-12 grid gap-10 lg:grid-cols-[20rem_1fr] lg:gap-16">
<form class="space-y-9" data-sketch-form>
<div>
<label for="sketch-span" class="flex items-baseline justify-between"><span class="anno text-ink-mute">Clear span</span><span class="text-xl font-medium text-azure-deep"><output data-sketch-span-label>24</output> m</span></label>
<input id="sketch-span" name="span" type="range" min="6" max="60" step="1" value="24" class="mt-4 w-full accent-azure">
<p class="mt-1 flex justify-between text-sm text-ink-mute"><span>6 m</span><span>60 m</span></p>
</div>
<fieldset>
<legend class="anno text-ink-mute">Material</legend>
<div class="mt-4 flex flex-wrap gap-2">
<label class="cursor-pointer"><input type="radio" name="material" value="steel" class="peer sr-only" checked><span class="block rounded-full border border-line bg-paper px-4 py-2 transition peer-checked:border-azure peer-checked:bg-azure peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-navy">Steel truss</span></label>
<label class="cursor-pointer"><input type="radio" name="material" value="timber" class="peer sr-only" ><span class="block rounded-full border border-line bg-paper px-4 py-2 transition peer-checked:border-azure peer-checked:bg-azure peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-navy">Glulam arch</span></label>
<label class="cursor-pointer"><input type="radio" name="material" value="concrete" class="peer sr-only" ><span class="block rounded-full border border-line bg-paper px-4 py-2 transition peer-checked:border-azure peer-checked:bg-azure peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-navy">Concrete beam</span></label>
</div>
</fieldset>
<fieldset>
<legend class="anno text-ink-mute">It carries</legend>
<div class="mt-4 flex flex-wrap gap-2">
<label class="cursor-pointer"><input type="radio" name="use" value="roof" class="peer sr-only" checked><span class="block rounded-full border border-line bg-paper px-4 py-2 transition peer-checked:border-azure peer-checked:bg-azure peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-navy">A roof</span></label>
<label class="cursor-pointer"><input type="radio" name="use" value="floor" class="peer sr-only" ><span class="block rounded-full border border-line bg-paper px-4 py-2 transition peer-checked:border-azure peer-checked:bg-azure peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-navy">A floor</span></label>
<label class="cursor-pointer"><input type="radio" name="use" value="bridge" class="peer sr-only" ><span class="block rounded-full border border-line bg-paper px-4 py-2 transition peer-checked:border-azure peer-checked:bg-azure peer-checked:text-white peer-focus-visible:ring-2 peer-focus-visible:ring-navy">People crossing</span></label>
</div>
</fieldset>
<a href="contact.html?span=24&material=steel&use=roof" data-sketch-link class="inline-flex items-center gap-3 rounded-full bg-navy px-6 py-3.5 font-medium text-white transition hover:bg-azure-deep">Send this span to an engineer <i class="fa-solid fa-arrow-right text-sm"></i></a>
</form>
<div>
<div class="rounded-sm border border-line bg-paper p-3 md:p-6">
<svg viewBox="0 0 960 300" class="drawing w-full" fill="none" role="img" aria-label="Elevation of the sketched beam, drawn to scale beside a person" data-sketch-drawing>
<g stroke="#16327a" stroke-width="1.3">
<path d="M150 205H810M150 161H810"/>
<path d="M150.0 205V161M191.25 205V161M232.5 205V161M273.75 205V161M315.0 205V161M356.25 205V161M397.5 205V161M438.75 205V161M480.0 205V161M521.25 205V161M562.5 205V161M603.75 205V161M645.0 205V161M686.25 205V161M727.5 205V161M768.75 205V161M810.0 205V161"/>
<path stroke="#1b8fe6" d="M150.0 161L191.25 205M191.25 161L232.5 205M232.5 161L273.75 205M273.75 161L315.0 205M315.0 161L356.25 205M356.25 161L397.5 205M397.5 161L438.75 205M438.75 161L480.0 205M521.25 161L480.0 205M562.5 161L521.25 205M603.75 161L562.5 205M645.0 161L603.75 205M686.25 161L645.0 205M727.5 161L686.25 205M768.75 161L727.5 205M810.0 161L768.75 205"/>
</g>
<path stroke="#1b8fe6" stroke-dasharray="3 5" d="M150 250H810"/>
<path stroke="#1b8fe6" d="M150 240V260M810 240V260M138 223L150 205L162 223ZM798 223L810 205L822 223Z"/>
<text x="480" y="280" text-anchor="middle" fill="#0b5fa8" font-family="IBM Plex Mono, monospace" font-size="14">24 m</text>
</svg>
</div>
<dl class="mt-8 grid grid-cols-1 gap-8 sm:grid-cols-3" aria-live="polite">
<div>
<dd class="figure text-6xl md:text-7xl xl:text-8xl" data-sketch-depth>1,600</dd>
<dt class="mt-3 text-ink-mute">mm deep at midspan</dt>
</div>
<div>
<dd class="figure text-6xl md:text-7xl xl:text-8xl" data-sketch-weight>3.7</dd>
<dt class="mt-3 text-ink-mute">tonnes of its own weight</dt>
</div>
<div>
<dd class="figure text-6xl md:text-7xl xl:text-8xl" data-sketch-carbon>5.8</dd>
<dt class="mt-3 text-ink-mute">tonnes of CO₂e to make it</dt>
</div>
</dl>
<p class="anno mt-8 text-ink-mute" data-sketch-note>Steel truss, 16 bays, span-to-depth 15</p>
</div>
</div>
</div>
</section>
<!-- block:end demo -->
<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>
Premium
Professional Services
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.