StealThis .dev
Pages Medium

Web3 — DAO Governance (proposals · vote)

A dark, glassy DAO governance page for the fictional Lumen Collective: a gradient-bordered hero shows your voting power (held plus delegated vNOVA), treasury value, and active-proposal count, above a filterable proposals list with status pills, proposer chips, For/Against/Abstain vote bars, quorum progress, and live countdowns. Selecting a proposal opens a sticky detail panel with description, on-chain action, current results, and vote buttons that record your ballot, update the tallies, and fire a signed-receipt toast — plus a create-proposal modal with a bond warning.

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

Code

DAO Governance (proposals · vote)

A complete governance front-end for a fictional DAO, the Lumen Collective on Lumen Chain. The hero strip leads with a gradient-bordered voting-power card (held NOVA plus tokens delegated to you, with an animated counter and a share-of-supply meter), alongside treasury value, the live active-proposal count, and a qualifying-threshold call-to-action to create a new proposal. Below, pill-shaped status tabs filter the list between All, Active, Passed, Failed, and Pending, each tab carrying a live count badge.

Every proposal card stacks a pulsing status pill, monospace LIP identifier, and a ticking countdown over the title, a proposer chip with a generated avatar, and a three-segment For/Against/Abstain vote bar with percentage legend and a quorum progress track that flips to a green check once turnout crosses 40M vNOVA. Clicking a card opens a sticky, gradient-bordered detail panel with the full description, proposer address, turnout and quorum stats, the encoded on-chain action, and per-option result bars.

Active proposals expose Vote For / Against / Abstain buttons: casting a ballot adds your full voting power to the chosen tally, re-renders the bars and quorum meters, swaps the buttons for a signed receipt with a fake transaction hash, and raises a color-coded toast. The create-proposal modal stubs out the submission flow with title, summary, period and action fields plus an explicit bond-slashing risk note, and the script also handles countdown ticks, filter state, Escape/overlay dismissal, and focus return.

UI-only simulation — no real wallet, RPC, or on-chain calls. Mock data, fictional tokens.