StealThis .dev
Pages Medium

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.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

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.