StealThis .dev

Science — Peer-Review / Open-Access Badges

A scholarly status-badge kit for journal articles, covering peer-reviewed, preprint, registered-report, gold/green/diamond open-access, data-available, code-available and reproduced states. Each badge pairs a CSS-SVG icon with an accessible label and a hover or focus tooltip that explains what it certifies. The demo assembles them into a realistic article meta strip, lays out a filterable legend gallery, and ships an interactive builder that composes a strip, copies its HTML, and charts badge uptake across a fictional journal issue.

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

Code

Peer-Review / Open-Access Badges

A complete set of open-science status badges for scholarly articles, rendered as one reusable pill component. The kit covers the review lifecycle (Peer-reviewed, Preprint, Registered Report), the three open-access routes (Gold, Green and Diamond OA, each colour-coded), and the reproducibility trio (Data available, Code available, Reproduced). Every badge carries an inline-SVG icon, an aria-label describing what it certifies, and a tooltip that appears on both hover and keyboard focus, so the meaning is never locked behind a mouse.

The page opens with a realistic article header — fictional authors, affiliations, a DOI and a tabular-figures meta strip — then a legend gallery you can filter by review, open access or artifacts. The builder lets you toggle the statuses that apply to a manuscript, with the open-access tier enforced as a mutually exclusive radio group; the live preview re-renders in canonical order and a code panel emits ready-to-paste HTML that a Copy HTML button writes to the clipboard.

Everything is vanilla HTML, CSS and JavaScript with no libraries: the icons are hand-drawn SVG paths, the tooltips are pure CSS, and Figure 1 is an inline bar chart whose bars borrow each badge’s accent colour and animate in on scroll. The layout collapses to a single column and the tables and strips wrap cleanly down to 360px.

Illustrative UI only — fictional authors, data, and figures; not real scientific results.