StealThis .dev

Coworking — Mobile Access Card

A warm-industrial mobile access card for a coworking space, built in pure HTML, CSS and vanilla JS. Shows a member photo, tier badge and an auto-refreshing QR credential with a 30-second countdown, plus an NFC-style hold-to-unlock door button with a success pulse and live toast. Flip the card for plan details, home desk and meeting-room credits, and watch a recent access log update in real time after each unlock.

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

Code

Mobile Access Card

A pocket-sized digital keycard for the fictional Foundry & Co. studio. The front face pairs a member avatar, tier badge and rotating QR credential that visibly refreshes every 30 seconds — tap it to force a new code and watch the amber locator ring pulse. Below it sits a matte-black, NFC-style unlock button: press and hold to fill the progress bar, release the credential, and trigger a green success pulse with a confirmation toast.

Tap the “Card details” link to flip the card over and reveal the warm-charcoal back: membership plan, home desk, valid-through date, permitted access zones and a meeting-room credits meter. The whole thing is driven by a small vanilla-JS controller with a deterministic QR matrix generator, a hold-timer using requestAnimationFrame, and an aria-live toast helper.

A live access log beneath the card tracks recent entries with free / warning / denied status dots. Every successful door unlock prepends a fresh “now” entry with a slide-in animation, so the card feels like a working credential rather than a static mockup. The layout collapses cleanly to roughly 360px and respects reduced-motion preferences.

Illustrative UI only — fictional coworking space, not a real booking system.