StealThis .dev
页面 困難

Web3 — Wallet Dashboard (balances · tokens · NFTs)

A premium, dark-first Web3 wallet dashboard with a glassy address chip, network switcher, and a gradient-bordered hero card showing an animated total balance and 24h PnL. Send, Receive, Swap, and Buy actions sit beside a portfolio allocation donut, while Tokens, NFTs, and Activity tabs reveal token rows with live prices, CSS-drawn NFT thumbnails, and a transaction feed. Includes a hide-balances eye toggle, a guarded swap modal with risk confirmation, and toasts. All mock data, fictional tokens.

在 Lab 開啟
html css vanilla-js
目標: JS HTML

程式碼

Wallet Dashboard (balances · tokens · NFTs)

A full self-custody wallet dashboard rendered in the modern Web3 visual language: glassy translucent surfaces, neon gradient accents, soft glow on the primary action, and monospace formatting for every address, amount, and hash. The top bar pairs a copyable truncated address chip (0x7a3f…c41d) with a popover network switcher that hot-swaps between Lumen Chain, Nebula, Aurora Testnet, and Solara. The hero card uses a gradient border and a big animated fiat total that counts up on load, with a colored 24h PnL pill and Send / Receive / Swap / Buy buttons.

Below the hero, a CSS-drawn allocation donut animates its segments into place alongside a percentage legend. A tabbed panel switches between Tokens (rows with logo, price, 24h change, balance, and value), NFTs (a responsive grid of procedurally drawn thumbnails with floor prices), and Activity (a transaction feed with confirmed / pending / failed status chips). An animated underline slides between tabs.

Interactions are all vanilla JS: tab switching, the count-up balance, a hide-balances eye toggle that masks every sensitive value, address copy, and hover states throughout. The Swap action opens a guarded modal with a flip control, live rate recalculation, a price-impact / fee breakdown, an explicit risk warning, and a simulated signing state that resolves to a toast with a fake tx hash — making the confirm/sign step feel real without ever touching a chain.

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