StealThis .dev
Pages Medium

Science — Preprint / arXiv Article Page

An arXiv-style preprint landing page with a sticky left metadata rail holding the submission identifier, subject badges, a keyboard-accessible version dropdown, submission and revision dates, and license. The main column carries the title, author list with affiliations, a LaTeX-flavored abstract and display equation, an SVG figure with a numbered caption, a download panel that toasts on click, a Cite button revealing a copyable BibTeX block, and a references, cited-by, and comments tab strip.

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

Code

Preprint / arXiv Article Page

An arXiv-style preprint landing page for a fictional machine-learning paper. A sticky left metadata rail shows the submission identifier (arXiv:2606.01234), subject badges (cs.LG, stat.ML, cs.CL), a version dropdown, submission and revision dates, the CC BY license, and download/citation counters. The main column presents the title, an author list with numbered affiliations, a prose abstract, a centered display equation with a right-aligned equation number, and an SVG line chart with a proper “Figure 1.” caption.

The download panel offers PDF, TeX source, HTML, and other-format buttons, each firing a toast to simulate the action. A Cite button expands a monospace BibTeX block with a one-click copy button (Clipboard API with a document.execCommand fallback). A tab strip switches between references, cited-by, and comments panels.

All interactions are vanilla JS. The version dropdown and tab strip are keyboard-navigable with arrow keys, Enter, and Escape, expose the right ARIA roles and aria-selected state, and keep visible focus. The layout collapses the rail into a grid above the article below 880px and reflows to a single column at 360px.

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