DIY — Community Forum
A maker community Q&A forum page with a blueprint-grid hero, category rail with counts, and sortable thread cards featuring working up/down voting, mono tags, reputation badges, and green accepted-answer borders. Threads expand inline to reveal answers with an accepted badge and an optimistic reply box with character counter, while an Ask a Question modal validates title, body, and tags before prepending the new thread to the feed.
MCP
Code
:root {
--blueprint: #0f2a4a;
--blueprint-d: #0a1e36;
--blueprint-l: #16385f;
--grid: rgba(140, 180, 220, 0.14);
--grid-major: rgba(140, 180, 220, 0.26);
--orange: #ff6b35;
--orange-d: #e0521f;
--orange-soft: #ffe3d6;
--kraft: #d9c7a7;
--kraft-l: #efe6d4;
--ink: #1c2733;
--ink-2: #3d4a57;
--muted: #6b7885;
--bg: #f4f1ea;
--white: #ffffff;
--line: rgba(28, 39, 51, 0.12);
--line-2: rgba(28, 39, 51, 0.2);
--ok: #2f9e6f;
--warn: #d98a2b;
--danger: #d4503e;
--r-sm: 6px;
--r-md: 12px;
--r-lg: 18px;
--shadow: 0 2px 8px rgba(28, 39, 51, 0.07), 0 8px 24px rgba(28, 39, 51, 0.06);
--shadow-lg: 0 8px 32px rgba(10, 30, 54, 0.24);
}
* { box-sizing: border-box; }
/* Keeps [hidden] winning over class rules that set a display value. */
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
margin: 0;
font-family: "Inter", system-ui, -apple-system, sans-serif;
line-height: 1.5;
color: var(--ink);
background: var(--bg);
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 0.9rem; color: var(--ink); }
/* ============ Topbar ============ */
.topbar {
position: sticky;
top: 0;
z-index: 40;
background: var(--blueprint-d);
border-bottom: 2px solid var(--orange);
}
.topbar-inner {
max-width: 1160px;
margin: 0 auto;
padding: 0.65rem 1.25rem;
display: flex;
align-items: center;
gap: 1rem;
}
.brand {
display: flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
color: var(--white);
flex-shrink: 0;
}
.brand-mark {
display: grid;
place-items: center;
width: 32px;
height: 32px;
background: var(--orange);
color: var(--blueprint-d);
border-radius: var(--r-sm);
font-size: 1.1rem;
font-weight: 800;
}
.brand-text {
font-weight: 800;
letter-spacing: 0.08em;
font-size: 1.02rem;
}
.brand-text em { font-style: normal; color: var(--orange); }
.brand-tag {
font-size: 0.62rem;
color: var(--kraft);
border: 1px solid rgba(217, 199, 167, 0.4);
border-radius: 999px;
padding: 0.1rem 0.4rem;
}
.topbar-search {
flex: 1;
display: flex;
align-items: center;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(140, 180, 220, 0.25);
border-radius: var(--r-md);
padding: 0.4rem 0.7rem;
max-width: 440px;
}
.topbar-search:focus-within { border-color: var(--orange); }
.search-icon { color: var(--kraft); font-size: 1rem; }
.topbar-search input {
flex: 1;
background: transparent;
border: 0;
outline: 0;
color: var(--white);
font-size: 0.88rem;
min-width: 0;
}
.topbar-search input::placeholder { color: rgba(217, 199, 167, 0.6); }
.topbar-search kbd {
font-size: 0.68rem;
color: var(--kraft);
border: 1px solid rgba(217, 199, 167, 0.4);
border-radius: 4px;
padding: 0 0.35rem;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 0.75rem;
margin-left: auto;
flex-shrink: 0;
}
.user-chip { display: flex; align-items: center; gap: 0.4rem; }
/* ============ Buttons ============ */
.btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
border: 0;
border-radius: var(--r-sm);
font-weight: 700;
font-size: 0.85rem;
padding: 0.55rem 1rem;
letter-spacing: 0.02em;
transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-orange {
background: var(--orange);
color: #fff;
box-shadow: 0 2px 0 var(--orange-d);
}
.btn-orange:hover { background: var(--orange-d); }
.btn-orange:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.btn-ghost {
background: transparent;
color: var(--ink-2);
border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(28, 39, 51, 0.05); }
/* ============ Hero ============ */
.hero {
background: var(--blueprint);
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px),
linear-gradient(var(--grid-major) 1px, transparent 1px),
linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
background-size: 8px 8px, 8px 8px, 80px 80px, 80px 80px;
color: var(--white);
border-bottom: 1px solid var(--blueprint-l);
}
.hero-inner {
max-width: 1160px;
margin: 0 auto;
padding: 2rem 1.25rem;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 1.5rem;
flex-wrap: wrap;
}
.hero-kicker {
margin: 0 0 0.4rem;
font-size: 0.72rem;
letter-spacing: 0.14em;
color: var(--orange);
font-weight: 600;
}
.hero h1 {
margin: 0;
font-size: clamp(1.4rem, 3.4vw, 2rem);
font-weight: 800;
letter-spacing: 0.01em;
max-width: 34ch;
}
.hero-stats {
display: flex;
gap: 1.75rem;
margin: 0;
}
.stat dt {
font-size: 0.62rem;
letter-spacing: 0.16em;
color: var(--kraft);
margin-bottom: 0.15rem;
}
.stat dd {
margin: 0;
font-size: 1.35rem;
font-weight: 700;
color: var(--white);
}
/* ============ Layout ============ */
.layout {
max-width: 1160px;
margin: 0 auto;
padding: 1.5rem 1.25rem 3.5rem;
display: grid;
grid-template-columns: 240px 1fr;
gap: 1.5rem;
align-items: start;
}
/* ============ Left rail ============ */
.rail { position: sticky; top: 72px; }
.rail-title {
margin: 0 0 0.6rem;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--muted);
font-weight: 800;
}
.cat-list {
list-style: none;
margin: 0 0 1.25rem;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.cat {
width: 100%;
display: flex;
align-items: center;
gap: 0.6rem;
background: transparent;
border: 1px solid transparent;
border-radius: var(--r-sm);
padding: 0.5rem 0.65rem;
font-size: 0.88rem;
font-weight: 600;
color: var(--ink-2);
text-align: left;
transition: background 0.15s ease, border-color 0.15s ease;
}
.cat:hover { background: rgba(28, 39, 51, 0.05); }
.cat:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.cat.active {
background: var(--white);
border-color: var(--line-2);
color: var(--ink);
box-shadow: var(--shadow);
}
.cat.active .cat-ico { color: var(--orange); }
.cat-ico { width: 1.1rem; text-align: center; color: var(--muted); }
.cat-name { flex: 1; }
.cat-count {
font-size: 0.7rem;
color: var(--muted);
background: rgba(28, 39, 51, 0.06);
border-radius: 999px;
padding: 0.1rem 0.45rem;
}
.cat.active .cat-count { background: var(--orange-soft); color: var(--orange-d); }
.rail-card {
background: var(--white);
border: 1px solid var(--line);
border-radius: var(--r-md);
padding: 0.9rem 1rem;
margin-bottom: 1rem;
box-shadow: var(--shadow);
}
.rail-card-title {
margin: 0 0 0.5rem;
font-size: 0.66rem;
letter-spacing: 0.16em;
color: var(--muted);
font-weight: 700;
}
.rail-card p { margin: 0; font-size: 0.8rem; color: var(--ink-2); }
.cut-card {
border: 2px dashed var(--line-2);
background: var(--kraft-l);
box-shadow: none;
}
.legend {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.35rem;
font-size: 0.78rem;
color: var(--ink-2);
}
.legend li { display: flex; align-items: center; gap: 0.45rem; }
/* rep dots */
.rep-dots { display: inline-flex; gap: 2px; align-items: center; }
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.dot.gold { background: #e8b944; box-shadow: 0 0 0 1px rgba(28,39,51,0.15) inset; }
.dot.silver { background: #b8c2cc; box-shadow: 0 0 0 1px rgba(28,39,51,0.15) inset; }
.dot.bronze { background: #c68a5a; box-shadow: 0 0 0 1px rgba(28,39,51,0.15) inset; }
/* ============ Feed head ============ */
.feed-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.sort-tabs {
display: inline-flex;
background: var(--white);
border: 1px solid var(--line-2);
border-radius: var(--r-sm);
padding: 3px;
gap: 2px;
}
.tab {
border: 0;
background: transparent;
border-radius: 4px;
padding: 0.38rem 0.9rem;
font-size: 0.82rem;
font-weight: 700;
color: var(--muted);
letter-spacing: 0.02em;
transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.tab.active { background: var(--blueprint); color: var(--white); }
.feed-count { font-size: 0.72rem; color: var(--muted); }
/* ============ Thread cards ============ */
.thread-list { display: flex; flex-direction: column; gap: 0.85rem; }
.thread {
background: var(--white);
border: 1px solid var(--line);
border-left: 4px solid var(--line-2);
border-radius: var(--r-md);
box-shadow: var(--shadow);
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.thread:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(28,39,51,0.1), 0 12px 28px rgba(28,39,51,0.08); }
.thread.solved { border-left-color: var(--ok); border-color: rgba(47, 158, 111, 0.45); }
.thread.open-thread { border-left-color: var(--orange); }
.thread-main {
display: grid;
grid-template-columns: 52px 1fr;
gap: 0.9rem;
padding: 1rem 1.1rem;
cursor: pointer;
}
.thread-main:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; border-radius: var(--r-md); }
/* vote column */
.votes { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.vote-btn {
width: 30px;
height: 26px;
border: 1px solid var(--line-2);
background: var(--white);
border-radius: var(--r-sm);
color: var(--muted);
font-size: 0.75rem;
line-height: 1;
display: grid;
place-items: center;
transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.vote-btn:hover { background: var(--orange-soft); color: var(--orange-d); border-color: var(--orange); }
.vote-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.vote-btn.voted-up { background: var(--orange); border-color: var(--orange-d); color: #fff; }
.vote-btn.voted-down { background: var(--blueprint); border-color: var(--blueprint-d); color: #fff; }
.vote-count {
font-weight: 700;
font-size: 0.92rem;
color: var(--ink);
padding: 0.1rem 0;
}
.vote-count.bump { animation: bump 0.25s ease; }
@keyframes bump {
0% { transform: scale(1); }
50% { transform: scale(1.35); color: var(--orange-d); }
100% { transform: scale(1); }
}
.thread-body h3 {
margin: 0 0 0.25rem;
font-size: 1.02rem;
font-weight: 700;
letter-spacing: 0.005em;
}
.thread-body h3 .solved-check {
color: var(--ok);
font-size: 0.9rem;
margin-right: 0.3rem;
}
.thread-excerpt {
margin: 0 0 0.6rem;
font-size: 0.86rem;
color: var(--ink-2);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.thread-meta {
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
}
.tag {
font-family: "JetBrains Mono", ui-monospace, monospace;
font-size: 0.66rem;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--blueprint);
background: rgba(15, 42, 74, 0.07);
border: 1px solid rgba(15, 42, 74, 0.16);
border-radius: 4px;
padding: 0.12rem 0.45rem;
}
.author-chip {
display: inline-flex;
align-items: center;
gap: 0.4rem;
margin-left: auto;
font-size: 0.76rem;
color: var(--ink-2);
font-weight: 600;
}
.avatar {
display: inline-grid;
place-items: center;
width: 24px;
height: 24px;
border-radius: 50%;
font-size: 0.6rem;
font-weight: 800;
color: #fff;
letter-spacing: 0.02em;
flex-shrink: 0;
}
.av-teal { background: #2b8a84; }
.av-plum { background: #7a4a8f; }
.av-rust { background: #b0562e; }
.av-navy { background: var(--blueprint-l); }
.av-moss { background: #5c7a3a; }
.av-slate { background: #4a6076; }
.answers-pill {
font-family: "JetBrains Mono", ui-monospace, monospace;
font-size: 0.68rem;
font-weight: 700;
color: var(--ink-2);
background: var(--kraft-l);
border: 1px solid var(--kraft);
border-radius: 999px;
padding: 0.15rem 0.55rem;
white-space: nowrap;
}
.answers-pill.has-accepted { background: rgba(47, 158, 111, 0.12); border-color: rgba(47, 158, 111, 0.45); color: var(--ok); }
.thread-time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
/* ============ Expanded answers ============ */
.thread-expand {
border-top: 2px dashed var(--line-2);
padding: 1rem 1.1rem 1.2rem;
animation: slide-in 0.22s ease;
}
@keyframes slide-in {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
.expand-title {
margin: 0 0 0.8rem;
font-size: 0.68rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--muted);
font-weight: 700;
font-family: "JetBrains Mono", ui-monospace, monospace;
}
.answer {
display: grid;
grid-template-columns: 44px 1fr;
gap: 0.75rem;
padding: 0.85rem;
border: 1px solid var(--line);
border-radius: var(--r-md);
margin-bottom: 0.6rem;
background: var(--bg);
}
.answer.accepted {
border-color: rgba(47, 158, 111, 0.5);
background: rgba(47, 158, 111, 0.06);
}
.answer .votes .vote-btn { width: 26px; height: 22px; font-size: 0.65rem; }
.answer .vote-count { font-size: 0.82rem; }
.answer-text { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--ink-2); }
.answer-foot { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.accepted-badge {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-family: "JetBrains Mono", ui-monospace, monospace;
font-size: 0.64rem;
font-weight: 700;
letter-spacing: 0.08em;
color: #fff;
background: var(--ok);
border-radius: 4px;
padding: 0.15rem 0.5rem;
}
.answer-time { font-size: 0.7rem; color: var(--muted); margin-left: auto; }
/* reply box */
.reply-box { margin-top: 0.9rem; }
.reply-box label {
display: block;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 0.35rem;
font-family: "JetBrains Mono", ui-monospace, monospace;
}
.reply-box textarea {
width: 100%;
min-height: 76px;
resize: vertical;
border: 1px solid var(--line-2);
border-radius: var(--r-sm);
padding: 0.6rem 0.7rem;
background: var(--white);
outline: 0;
}
.reply-box textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.reply-foot {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.45rem;
gap: 0.75rem;
}
.char-count { font-size: 0.7rem; color: var(--muted); }
.char-count.over { color: var(--danger); font-weight: 700; }
.feed-empty { text-align: center; color: var(--muted); padding: 3rem 0; font-size: 0.9rem; }
/* ============ Modal ============ */
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 60;
background: rgba(10, 30, 54, 0.65);
display: grid;
place-items: center;
padding: 1rem;
}
.modal {
width: 100%;
max-width: 560px;
background: var(--white);
border-radius: var(--r-lg);
border-top: 6px solid var(--orange);
box-shadow: var(--shadow-lg);
animation: modal-in 0.2s ease;
max-height: 90vh;
overflow-y: auto;
}
@keyframes modal-in {
from { opacity: 0; transform: translateY(12px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.1rem 1.4rem 0.4rem;
}
.modal-head h2 {
margin: 0;
font-size: 1.15rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.modal-close {
border: 1px solid var(--line-2);
background: transparent;
border-radius: var(--r-sm);
width: 32px;
height: 32px;
font-size: 0.85rem;
color: var(--ink-2);
}
.modal-close:hover { background: rgba(28, 39, 51, 0.06); }
.modal form { padding: 0.5rem 1.4rem 1.4rem; }
.field { margin-bottom: 0.95rem; }
.field label {
display: block;
font-size: 0.8rem;
font-weight: 700;
margin-bottom: 0.3rem;
}
.req {
font-size: 0.58rem;
letter-spacing: 0.12em;
color: var(--orange-d);
background: var(--orange-soft);
padding: 0.08rem 0.35rem;
border-radius: 3px;
vertical-align: middle;
}
.hint { font-size: 0.62rem; color: var(--muted); font-weight: 400; }
.field input[type="text"],
.field input[type="search"],
.field textarea,
.field select {
width: 100%;
border: 1px solid var(--line-2);
border-radius: var(--r-sm);
padding: 0.55rem 0.7rem;
background: var(--white);
outline: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
border-color: var(--orange);
box-shadow: 0 0 0 3px var(--orange-soft);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field-err { margin: 0.3rem 0 0; font-size: 0.74rem; color: var(--danger); font-weight: 600; }
.field-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.modal-foot {
display: flex;
justify-content: flex-end;
gap: 0.6rem;
margin-top: 0.4rem;
}
/* ============ Toast ============ */
.toast {
position: fixed;
left: 50%;
bottom: 1.5rem;
transform: translate(-50%, 20px);
z-index: 80;
background: var(--blueprint-d);
color: var(--kraft-l);
font-size: 0.76rem;
font-weight: 600;
letter-spacing: 0.04em;
border-left: 4px solid var(--orange);
border-radius: var(--r-sm);
padding: 0.65rem 1.1rem;
box-shadow: var(--shadow-lg);
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ============ Responsive ============ */
@media (max-width: 860px) {
.layout { grid-template-columns: 1fr; }
.rail { position: static; }
.cat-list { flex-direction: row; flex-wrap: wrap; }
.cat { width: auto; }
.rail-card { display: none; }
.topbar-search { display: none; }
}
@media (max-width: 520px) {
.topbar-inner { padding: 0.55rem 0.85rem; gap: 0.6rem; }
.brand-tag { display: none; }
.btn-orange span[aria-hidden] { display: none; }
.hero-inner { padding: 1.4rem 0.85rem; }
.hero-stats { gap: 1.1rem; }
.stat dd { font-size: 1.1rem; }
.layout { padding: 1rem 0.85rem 2.5rem; }
.feed-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.thread-main { grid-template-columns: 44px 1fr; padding: 0.85rem; gap: 0.7rem; }
.author-chip { margin-left: 0; width: 100%; }
.answer { grid-template-columns: 38px 1fr; padding: 0.7rem; }
.field-split { grid-template-columns: 1fr; }
.modal { border-radius: var(--r-md); }
}/* MakerBoard — DIY Community Forum (demo, vanilla JS) */
(() => {
"use strict";
/* ---------- data ---------- */
const AV_CLASSES = ["av-teal", "av-plum", "av-rust", "av-navy", "av-moss", "av-slate"];
const threads = [
{
id: "t1",
cat: "electronics",
title: "ESP32 keeps brown-out resetting when the servo moves",
excerpt:
"Powering an SG-90 clone and an ESP32 DevKit from the same USB rail. Every time the servo sweeps, the board resets with a brownout warning. Scope shows the 5V rail dipping to 3.9V.",
tags: ["esp32", "servo", "power"],
author: { name: "VoltVera", rep: "gold" },
votes: 42,
time: "2h ago",
answers: [
{
author: { name: "OhmBrew", rep: "gold" },
votes: 31,
accepted: true,
time: "1h ago",
text: "Classic shared-rail sag. Give the servo its own 5V supply (a 2A buck from your bench PSU works) and tie the grounds together. Also drop a 470–1000 µF electrolytic across the servo's supply pins to soak up the stall spikes.",
},
{
author: { name: "GearboxGus", rep: "silver" },
votes: 12,
accepted: false,
time: "1h ago",
text: "Seconding the separate rail — and check your USB cable. Thin charging cables can add >0.5 Ω round trip, which is enough to brown out at servo stall current.",
},
{
author: { name: "SolderSprout", rep: "bronze" },
votes: 4,
accepted: false,
time: "40m ago",
text: "If you only need small sweeps, slew-limit the servo in firmware so it never demands a full-speed jump. Helped on my pan-tilt build.",
},
],
},
{
id: "t2",
cat: "3d-printing",
title: "First layer perfect, everything above is spaghetti — PETG",
excerpt:
"Fictionmade Kestrel-2 printer, 0.4 nozzle, PETG at 235°C. First layer lays down beautifully, then around layer 3 everything detaches and turns into a bird's nest. Bed at 80°C, glass plate.",
tags: ["petg", "adhesion", "kestrel-2"],
author: { name: "LayerLena", rep: "silver" },
votes: 28,
time: "5h ago",
answers: [
{
author: { name: "NozzleNora", rep: "gold" },
votes: 22,
accepted: true,
time: "4h ago",
text: "PETG on bare glass grips hard then lets go as it cools between layers. Wipe the plate with unscented glue stick as a release-and-grip layer, slow layer 2–4 to 60% speed, and kill the part-cooling fan for the first 5 layers.",
},
{
author: { name: "BenchBianca", rep: "bronze" },
votes: 7,
accepted: false,
time: "3h ago",
text: "Also check Z-offset drift — if layer 1 is *too* squished, layer 2 ploughs through it and lifts the part. Re-run mesh leveling after the bed hits temp.",
},
],
},
{
id: "t3",
cat: "woodwork",
title: "Best joint for a heavy workbench top without a domino jointer?",
excerpt:
"Building a 1.8 m bench from laminated beech. I have a router, circular saw, and hand tools — no domino or biscuit jointer. What joint keeps the top flat and serviceable for the leg assembly?",
tags: ["joinery", "workbench", "beech"],
author: { name: "MalletMara", rep: "bronze" },
votes: 19,
time: "9h ago",
answers: [
{
author: { name: "TenonTheo", rep: "gold" },
votes: 15,
accepted: false,
time: "7h ago",
text: "Drawbored mortise and tenon, cut with your router and a simple jig. It's the classic bench joint for a reason — it stays tight for decades and can be knocked apart if you ever move.",
},
{
author: { name: "GrainGreta", rep: "silver" },
votes: 9,
accepted: false,
time: "5h ago",
text: "If the router jig feels intimidating, half-lap plus bench bolts gets you 90% of the strength and is very forgiving. Countersink the bolt heads and you can retension yearly.",
},
],
},
{
id: "t4",
cat: "repairs",
title: "Vintage 'Tornado T-800' stand mixer hums but won't spin",
excerpt:
"Inherited mixer, maybe 1978. Motor hums loudly when switched on but the beater never turns. Smells faintly warm after 10 seconds. I've cleaned the gearbox — grease was original and fossilized.",
tags: ["appliance", "motor", "restoration"],
author: { name: "FixItFiona", rep: "silver" },
votes: 35,
time: "1d ago",
answers: [
{
author: { name: "ArmatureArt", rep: "gold" },
votes: 27,
accepted: true,
time: "22h ago",
text: "Hum + no rotation + warm smell on a motor that age is almost always a seized start mechanism or dried bearing, not windings. Unplug it, try turning the shaft by hand — if it's stiff, re-oil the sleeve bearings with SAE-20 non-detergent and re-grease the gearbox with food-safe grease. Ten-minute fix, most of the time.",
},
{
author: { name: "CoilCora", rep: "bronze" },
votes: 6,
accepted: false,
time: "20h ago",
text: "Check the brushes too while it's open — 1970s brushes are often worn to the spring. Measure them; anything under ~6 mm should be replaced.",
},
],
},
{
id: "t5",
cat: "show-tell",
title: "Finished: solar-powered garden weather station in a birdhouse",
excerpt:
"Nine months of weekends. ESP32-C3, BME688, a 2W panel on the roof, and everything living inside a cedar birdhouse so the neighbours don't ask questions. Full write-up and wiring diagram inside.",
tags: ["solar", "esp32-c3", "weather"],
author: { name: "CedarCleo", rep: "gold" },
votes: 87,
time: "1d ago",
answers: [
{
author: { name: "PanelPete", rep: "silver" },
votes: 11,
accepted: false,
time: "23h ago",
text: "This is gorgeous. How are you handling condensation inside the enclosure through winter? I lost a BME to moisture last year.",
},
{
author: { name: "CedarCleo", rep: "gold" },
votes: 9,
accepted: false,
time: "21h ago",
text: "Conformal coating on the board plus a Gore-style vent plug in the floor. Humidity inside tracks outside within ~5% and nothing has corroded yet.",
},
],
},
{
id: "t6",
cat: "electronics",
title: "How do I read schematics with net labels instead of drawn wires?",
excerpt:
"Trying to repair a fictional SynthKit SK-12. The service schematic uses net labels everywhere and I keep losing track of what connects to what. Any systematic way to trace these?",
tags: ["schematics", "beginner"],
author: { name: "PatchPia", rep: "bronze" },
votes: 11,
time: "2d ago",
answers: [],
},
{
id: "t7",
cat: "3d-printing",
title: "Print-in-place hinges fuse together — tolerance advice for 0.4 nozzle?",
excerpt:
"Designed a print-in-place toolbox latch in CAD with 0.15 mm clearance. Every print fuses solid. Is 0.15 too optimistic for a 0.4 mm nozzle, or is this an elephant-foot problem?",
tags: ["cad", "tolerances", "pla"],
author: { name: "HingeHank", rep: "silver" },
votes: 16,
time: "2d ago",
answers: [],
},
{
id: "t8",
cat: "repairs",
title: "Replacing a fraying power cord on a 1990s soldering station — strain relief?",
excerpt:
"Cord on my old Heatwright HW-40 is cracking at the entry point. Replacement cable is easy, but the original moulded strain relief won't fit the new cord. What do people use here?",
tags: ["soldering", "cable", "safety"],
author: { name: "TinTina", rep: "bronze" },
votes: 8,
time: "3d ago",
answers: [],
},
];
/* ---------- state ---------- */
const state = {
cat: "all",
sort: "latest",
openId: null,
votes: {}, // id -> 1 | -1
};
/* ---------- helpers ---------- */
const $ = (sel, root = document) => root.querySelector(sel);
const toastEl = $("#toast");
let toastTimer = null;
function toast(msg) {
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(() => toastEl.classList.remove("show"), 2400);
}
function esc(s) {
return String(s).replace(/[&<>"']/g, (c) => ({
"&": "&", "<": "<", ">": ">", '"': """, "'": "'",
})[c]);
}
function avClass(name) {
let h = 0;
for (let i = 0; i < name.length; i++) h = (h * 31 + name.charCodeAt(i)) >>> 0;
return AV_CLASSES[h % AV_CLASSES.length];
}
function initials(name) {
const caps = name.replace(/[^A-Z]/g, "");
return (caps.slice(0, 2) || name.slice(0, 2)).toUpperCase();
}
function repDots(rep) {
const map = { gold: ["gold", "silver", "bronze"], silver: ["silver", "bronze"], bronze: ["bronze"] };
const dots = (map[rep] || []).map((d) => `<i class="dot ${d}"></i>`).join("");
return `<span class="rep-dots" aria-label="${esc(rep)} reputation" title="${esc(rep)} reputation">${dots}</span>`;
}
function authorChip(a) {
return `<span class="author-chip"><span class="avatar ${avClass(a.name)}" aria-hidden="true">${initials(a.name)}</span>${esc(a.name)} ${repDots(a.rep)}</span>`;
}
function displayVotes(t) {
return t.votes + (state.votes[t.id] || 0);
}
/* ---------- rendering ---------- */
const listEl = $("#thread-list");
const emptyEl = $("#feed-empty");
const countEl = $("#feed-count");
function visibleThreads() {
let out = threads.filter((t) => state.cat === "all" || t.cat === state.cat);
if (state.sort === "top") {
out = [...out].sort((a, b) => displayVotes(b) - displayVotes(a));
} else if (state.sort === "unanswered") {
out = out.filter((t) => t.answers.length === 0);
}
return out;
}
function threadHTML(t) {
const solved = t.answers.some((a) => a.accepted);
const open = state.openId === t.id;
const myVote = state.votes[t.id] || 0;
const pillCls = solved ? "answers-pill has-accepted" : "answers-pill";
const pillTxt = solved ? `✓ ${t.answers.length} ANS` : `${t.answers.length} ANS`;
return `
<article class="thread ${solved ? "solved" : ""} ${open ? "open-thread" : ""}" data-id="${t.id}">
<div class="thread-main" role="button" tabindex="0" aria-expanded="${open}"
aria-label="Thread: ${esc(t.title)}. ${t.answers.length} answers. Press Enter to ${open ? "collapse" : "expand"}.">
<div class="votes">
<button class="vote-btn ${myVote === 1 ? "voted-up" : ""}" data-vote="up" type="button" aria-label="Upvote">▲</button>
<span class="vote-count mono" data-count>${displayVotes(t)}</span>
<button class="vote-btn ${myVote === -1 ? "voted-down" : ""}" data-vote="down" type="button" aria-label="Downvote">▼</button>
</div>
<div class="thread-body">
<h3>${solved ? '<span class="solved-check" title="Has accepted answer">✔</span>' : ""}${esc(t.title)}</h3>
<p class="thread-excerpt">${esc(t.excerpt)}</p>
<div class="thread-meta">
${t.tags.map((tag) => `<span class="tag">#${esc(tag)}</span>`).join("")}
<span class="${pillCls}">${pillTxt}</span>
<span class="thread-time">${esc(t.time)}</span>
${authorChip(t.author)}
</div>
</div>
</div>
${open ? expandHTML(t) : ""}
</article>`;
}
function expandHTML(t) {
const answers = t.answers.length
? t.answers.map((a, i) => answerHTML(t, a, i)).join("")
: `<p class="thread-excerpt" style="margin-bottom:0.4rem">No answers yet — grab your multimeter and be the first.</p>`;
return `
<div class="thread-expand">
<h4 class="expand-title">${t.answers.length} Answer${t.answers.length === 1 ? "" : "s"}</h4>
${answers}
<div class="reply-box">
<label for="reply-${t.id}">Your answer</label>
<textarea id="reply-${t.id}" maxlength="600" placeholder="Share what worked on your bench…"></textarea>
<div class="reply-foot">
<span class="char-count mono" data-charcount>0 / 600</span>
<button class="btn btn-orange" type="button" data-reply>Post answer</button>
</div>
</div>
</div>`;
}
function answerHTML(t, a, i) {
const key = `${t.id}-a${i}`;
const myVote = state.votes[key] || 0;
return `
<div class="answer ${a.accepted ? "accepted" : ""}" data-akey="${key}">
<div class="votes">
<button class="vote-btn ${myVote === 1 ? "voted-up" : ""}" data-vote="up" type="button" aria-label="Upvote answer">▲</button>
<span class="vote-count mono" data-count>${a.votes + myVote}</span>
<button class="vote-btn ${myVote === -1 ? "voted-down" : ""}" data-vote="down" type="button" aria-label="Downvote answer">▼</button>
</div>
<div>
<p class="answer-text">${esc(a.text)}</p>
<div class="answer-foot">
${a.accepted ? '<span class="accepted-badge">✔ ACCEPTED</span>' : ""}
${authorChip(a.author)}
<span class="answer-time">${esc(a.time)}</span>
</div>
</div>
</div>`;
}
function render() {
const vis = visibleThreads();
listEl.innerHTML = vis.map(threadHTML).join("");
emptyEl.hidden = vis.length > 0;
countEl.textContent = `${vis.length} thread${vis.length === 1 ? "" : "s"}`;
}
/* ---------- voting ---------- */
function applyVote(key, dir, countEl2) {
const prev = state.votes[key] || 0;
const next = dir === "up" ? (prev === 1 ? 0 : 1) : prev === -1 ? 0 : -1;
state.votes[key] = next;
if (next === 0) toast("VOTE RETRACTED");
else toast(next === 1 ? "UPVOTED +1" : "DOWNVOTED -1");
return next - prev;
}
/* ---------- feed events (delegated) ---------- */
listEl.addEventListener("click", (e) => {
const voteBtn = e.target.closest("[data-vote]");
if (voteBtn) {
e.stopPropagation();
const answerEl = voteBtn.closest("[data-akey]");
const threadEl = voteBtn.closest(".thread");
const key = answerEl ? answerEl.dataset.akey : threadEl.dataset.id;
const delta = applyVote(key, voteBtn.dataset.vote);
const scope = answerEl || threadEl.querySelector(".thread-main");
const cnt = scope.querySelector("[data-count]");
cnt.textContent = parseInt(cnt.textContent, 10) + delta;
cnt.classList.remove("bump");
void cnt.offsetWidth;
cnt.classList.add("bump");
// update button states without full rerender
const votes = voteBtn.closest(".votes");
const v = state.votes[key] || 0;
votes.querySelector('[data-vote="up"]').classList.toggle("voted-up", v === 1);
votes.querySelector('[data-vote="down"]').classList.toggle("voted-down", v === -1);
return;
}
const replyBtn = e.target.closest("[data-reply]");
if (replyBtn) {
const threadEl = replyBtn.closest(".thread");
const t = threads.find((x) => x.id === threadEl.dataset.id);
const ta = threadEl.querySelector("textarea");
const text = ta.value.trim();
if (text.length < 10) {
toast("ANSWER TOO SHORT — MIN 10 CHARS");
ta.focus();
return;
}
t.answers.push({
author: { name: "WrenchWitch", rep: "gold" },
votes: 0,
accepted: false,
time: "just now",
text,
});
render();
toast("ANSWER POSTED ✔");
return;
}
const main = e.target.closest(".thread-main");
if (main) {
const id = main.closest(".thread").dataset.id;
state.openId = state.openId === id ? null : id;
render();
}
});
listEl.addEventListener("keydown", (e) => {
if ((e.key === "Enter" || e.key === " ") && e.target.classList.contains("thread-main")) {
e.preventDefault();
const id = e.target.closest(".thread").dataset.id;
state.openId = state.openId === id ? null : id;
render();
}
});
listEl.addEventListener("input", (e) => {
if (e.target.tagName === "TEXTAREA") {
const box = e.target.closest(".reply-box");
const cc = box.querySelector("[data-charcount]");
const len = e.target.value.length;
cc.textContent = `${len} / 600`;
cc.classList.toggle("over", len >= 580);
}
});
/* ---------- categories ---------- */
$("#cat-list").addEventListener("click", (e) => {
const btn = e.target.closest(".cat");
if (!btn) return;
document.querySelectorAll(".cat").forEach((b) => b.classList.remove("active"));
btn.classList.add("active");
state.cat = btn.dataset.cat;
state.openId = null;
render();
});
/* ---------- sort tabs ---------- */
document.querySelectorAll(".tab").forEach((tab) => {
tab.addEventListener("click", () => {
document.querySelectorAll(".tab").forEach((t) => {
t.classList.remove("active");
t.setAttribute("aria-selected", "false");
});
tab.classList.add("active");
tab.setAttribute("aria-selected", "true");
state.sort = tab.dataset.sort;
state.openId = null;
render();
});
});
/* ---------- ask modal ---------- */
const backdrop = $("#modal-backdrop");
const askForm = $("#ask-form");
function openModal() {
backdrop.hidden = false;
$("#q-title").focus();
document.body.style.overflow = "hidden";
}
function closeModal() {
backdrop.hidden = true;
document.body.style.overflow = "";
askForm.reset();
["title", "body", "tags"].forEach((k) => setErr(k, false));
}
function setErr(key, on) {
const err = $(`#err-${key}`);
if (err) {
err.hidden = !on;
err.closest(".field").classList.toggle("invalid", on);
}
}
$("#ask-btn").addEventListener("click", openModal);
$("#modal-close").addEventListener("click", closeModal);
$("#modal-cancel").addEventListener("click", closeModal);
backdrop.addEventListener("click", (e) => {
if (e.target === backdrop) closeModal();
});
document.addEventListener("keydown", (e) => {
if (e.key === "Escape" && !backdrop.hidden) closeModal();
if (e.key === "/" && backdrop.hidden && !/INPUT|TEXTAREA/.test(document.activeElement.tagName)) {
e.preventDefault();
$("#search-input").focus();
}
});
askForm.addEventListener("submit", (e) => {
e.preventDefault();
const title = $("#q-title").value.trim();
const body = $("#q-body").value.trim();
const rawTags = $("#q-tags").value.split(",").map((s) => s.trim()).filter(Boolean);
const badTitle = title.length < 12;
const badBody = body.length < 30;
const badTags = rawTags.length > 4 || rawTags.some((t) => t.length > 18);
setErr("title", badTitle);
setErr("body", badBody);
setErr("tags", badTags);
if (badTitle || badBody || badTags) {
toast("CHECK THE FORM — SOMETHING'S MISSING");
return;
}
threads.unshift({
id: "t" + Date.now(),
cat: $("#q-cat").value,
title,
excerpt: body,
tags: rawTags.length ? rawTags.slice(0, 4) : ["question"],
author: { name: "WrenchWitch", rep: "gold" },
votes: 1,
time: "just now",
answers: [],
});
closeModal();
state.cat = "all";
state.sort = "latest";
document.querySelectorAll(".cat").forEach((b) => b.classList.toggle("active", b.dataset.cat === "all"));
document.querySelectorAll(".tab").forEach((t) => {
const on = t.dataset.sort === "latest";
t.classList.toggle("active", on);
t.setAttribute("aria-selected", String(on));
});
render();
toast("QUESTION POSTED — GOOD LUCK ✔");
window.scrollTo({ top: 0, behavior: "smooth" });
});
/* ---------- search (filters titles/tags live) ---------- */
$("#search-input").addEventListener("input", (e) => {
const q = e.target.value.trim().toLowerCase();
document.querySelectorAll(".thread").forEach((el) => {
const t = threads.find((x) => x.id === el.dataset.id);
const hay = (t.title + " " + t.tags.join(" ") + " " + t.author.name).toLowerCase();
el.style.display = !q || hay.includes(q) ? "" : "none";
});
});
render();
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MakerBoard — DIY Community Forum</title>
<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=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- ============ TOP BAR ============ -->
<header class="topbar">
<div class="topbar-inner">
<a class="brand" href="#" aria-label="MakerBoard home">
<span class="brand-mark" aria-hidden="true">⌂</span>
<span class="brand-text">MAKER<em>BOARD</em></span>
<span class="brand-tag mono">v2.4</span>
</a>
<div class="topbar-search">
<span class="search-icon" aria-hidden="true">⌕</span>
<input type="search" id="search-input" placeholder="Search threads, tags, makers…" aria-label="Search the forum" />
<kbd class="mono">/</kbd>
</div>
<div class="topbar-actions">
<button class="btn btn-orange" id="ask-btn" type="button">
<span aria-hidden="true">+</span> Ask a question
</button>
<div class="user-chip" title="Signed in as WrenchWitch">
<span class="avatar av-teal" aria-hidden="true">WW</span>
<span class="rep-dots" aria-label="Gold reputation"><i class="dot gold"></i><i class="dot silver"></i><i class="dot bronze"></i></span>
</div>
</div>
</div>
</header>
<!-- ============ HERO STRIP ============ -->
<section class="hero" aria-label="Forum stats">
<div class="hero-inner">
<div class="hero-copy">
<p class="hero-kicker mono">// COMMUNITY WORKSHOP — ASK · BUILD · SHARE</p>
<h1>The Q&A bench for people who make things</h1>
</div>
<dl class="hero-stats">
<div class="stat"><dt class="mono">THREADS</dt><dd class="mono">4,812</dd></div>
<div class="stat"><dt class="mono">MAKERS</dt><dd class="mono">1,206</dd></div>
<div class="stat"><dt class="mono">SOLVED</dt><dd class="mono">87%</dd></div>
</dl>
</div>
</section>
<!-- ============ MAIN LAYOUT ============ -->
<div class="layout">
<!-- Left rail -->
<aside class="rail" aria-label="Categories">
<h2 class="rail-title">Categories</h2>
<nav>
<ul class="cat-list" id="cat-list">
<li><button class="cat active" data-cat="all" type="button"><span class="cat-ico" aria-hidden="true">▦</span><span class="cat-name">All threads</span><span class="cat-count mono">48</span></button></li>
<li><button class="cat" data-cat="electronics" type="button"><span class="cat-ico" aria-hidden="true">⚡</span><span class="cat-name">Electronics</span><span class="cat-count mono">14</span></button></li>
<li><button class="cat" data-cat="3d-printing" type="button"><span class="cat-ico" aria-hidden="true">⬢</span><span class="cat-name">3D Printing</span><span class="cat-count mono">11</span></button></li>
<li><button class="cat" data-cat="woodwork" type="button"><span class="cat-ico" aria-hidden="true">▤</span><span class="cat-name">Woodwork</span><span class="cat-count mono">9</span></button></li>
<li><button class="cat" data-cat="repairs" type="button"><span class="cat-ico" aria-hidden="true">✚</span><span class="cat-name">Repairs</span><span class="cat-count mono">8</span></button></li>
<li><button class="cat" data-cat="show-tell" type="button"><span class="cat-ico" aria-hidden="true">★</span><span class="cat-name">Show & Tell</span><span class="cat-count mono">6</span></button></li>
</ul>
</nav>
<div class="rail-card">
<h3 class="rail-card-title mono">REP LEGEND</h3>
<ul class="legend">
<li><i class="dot gold"></i> Gold — 2,500+ rep</li>
<li><i class="dot silver"></i> Silver — 500+ rep</li>
<li><i class="dot bronze"></i> Bronze — 50+ rep</li>
</ul>
</div>
<div class="rail-card cut-card">
<h3 class="rail-card-title mono">HOUSE RULES</h3>
<p>Post photos of the actual bench. Cite your multimeter readings. Be kind to first-timers.</p>
</div>
</aside>
<!-- Main feed -->
<main class="feed" aria-label="Question feed">
<div class="feed-head">
<div class="sort-tabs" role="tablist" aria-label="Sort threads">
<button class="tab active" role="tab" aria-selected="true" data-sort="latest" type="button">Latest</button>
<button class="tab" role="tab" aria-selected="false" data-sort="top" type="button">Top</button>
<button class="tab" role="tab" aria-selected="false" data-sort="unanswered" type="button">Unanswered</button>
</div>
<span class="feed-count mono" id="feed-count">8 threads</span>
</div>
<div id="thread-list" class="thread-list">
<!-- Threads rendered by script.js -->
</div>
<p class="feed-empty" id="feed-empty" hidden>No threads here yet — be the first to ask.</p>
</main>
</div>
<!-- ============ ASK MODAL ============ -->
<div class="modal-backdrop" id="modal-backdrop" hidden>
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="modal-title">
<div class="modal-head">
<h2 id="modal-title">Ask the workshop</h2>
<button class="modal-close" id="modal-close" type="button" aria-label="Close dialog">✕</button>
</div>
<form id="ask-form" novalidate>
<div class="field">
<label for="q-title">Title <span class="req mono">REQUIRED</span></label>
<input id="q-title" name="title" type="text" maxlength="120" placeholder="e.g. Why does my stepper driver whine at idle?" autocomplete="off" />
<p class="field-err" id="err-title" hidden>Give it a title of at least 12 characters.</p>
</div>
<div class="field">
<label for="q-body">Details <span class="req mono">REQUIRED</span></label>
<textarea id="q-body" name="body" rows="5" placeholder="What did you try? What did the multimeter say? Photos of the bench help."></textarea>
<p class="field-err" id="err-body" hidden>Add at least 30 characters of detail.</p>
</div>
<div class="field field-split">
<div>
<label for="q-cat">Category</label>
<select id="q-cat" name="category">
<option value="electronics">Electronics</option>
<option value="3d-printing">3D Printing</option>
<option value="woodwork">Woodwork</option>
<option value="repairs">Repairs</option>
<option value="show-tell">Show & Tell</option>
</select>
</div>
<div>
<label for="q-tags">Tags <span class="hint mono">comma-separated, max 4</span></label>
<input id="q-tags" name="tags" type="text" placeholder="esp32, soldering" autocomplete="off" />
<p class="field-err" id="err-tags" hidden>Use up to 4 short tags.</p>
</div>
</div>
<div class="modal-foot">
<button class="btn btn-ghost" type="button" id="modal-cancel">Cancel</button>
<button class="btn btn-orange" type="submit">Post question</button>
</div>
</form>
</div>
</div>
<div class="toast mono" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Community Forum
A full Q&A page for a fictional maker community (“MakerBoard”). A navy blueprint-grid hero with live-feel stats sits above a two-column layout: a sticky left rail lists categories (Electronics, 3D Printing, Woodwork, Repairs, Show & Tell) with counts and a reputation legend, while the main feed shows question cards with vote arrows, JetBrains Mono tags, answer-count pills, timestamps, and author chips with bronze/silver/gold reputation dots. Threads that contain an accepted answer get a green border and check mark.
Everything is interactive in vanilla JS. Sort tabs switch between Latest, Top (re-sorted by live vote totals), and Unanswered. Clicking a card expands it inline to reveal its answers — one carrying an ACCEPTED badge — each with its own working vote column, plus a reply textarea with a 600-character counter that appends your answer optimistically. Voting toggles and retracts with a small count-bump animation and toast feedback.
The “Ask a question” button opens a modal with title, details, category, and tag inputs; validation enforces minimum lengths and a four-tag cap with inline error messages, and a successful post prepends the new thread to the top of the feed. The top-bar search filters visible threads by title, tag, or author, and the ”/” key jumps to it.
Illustrative UI only — always follow real safety guidance when working with tools, electronics, or repairs.