StealThis .dev

News — Paywall / Subscribe Gate

A self-contained editorial paywall for the fictional Harbor Review, set in a warm newsprint palette with Playfair Display headlines and Inter meter copy. A waterfront investigation reads freely until its lower paragraphs fade into a gradient veil, where a subscribe gate card takes over — a free-article counter with pip indicator, a Monthly versus Annual billing toggle with a savings badge and live price, a benefits checklist, a sign-in link, and a red subscribe CTA. Vanilla JS tracks the free counter, swaps prices, and a subscribe toast unlocks the rest of the story.

Apri in Lab
html css vanilla-js
Target: JS HTML

Codice

Paywall / Subscribe Gate

A complete metered-paywall reading view for The Harbor Review, a fictional broadsheet art-directed in a warm newsprint palette with hairline rules and a single red accent. A waterfront investigation opens with a red kicker, an oversized Playfair Display headline, an italic deck, a two-name byline and a duotone CSS hero standing in for a press photograph. The lead paragraph carries a red drop cap and the body is set as justified, hyphenated copy.

Partway down, the transitional paragraphs fade into a gradient veil and a subscribe gate card takes over. The card shows a free-article counter (“You’ve read 1 of 3 free articles”), a Monthly / Annual billing toggle with a green “Save 30%” badge, a live price block, a checkmarked benefits list, a sign-in link and a red subscribe CTA. A slim meter strip under the masthead mirrors the counter with pip indicators.

Three vanilla-JS interactions ship with it: the free-article counter renders remaining reads and pips, the plan toggle swaps the headline price and billing note between Monthly and Annual, and the subscribe button (or the sign-in shortcut) raises a toast, marks the reader a subscriber, and unlocks the hidden remainder of the article — a captioned blueprint figure and an oversized serif pull quote — scrolling the reader on. There are no frameworks, no build step and no network requests beyond the two Google Fonts.

Illustrative UI only — masthead, headlines, bylines, and articles are fictional; not a real news publication.