StealThis .dev

News — Obituary / In Memoriam

A print-style obituary and In Memoriam component rendered as a bordered editorial card with a duotone portrait gradient, full name, life years, a serif tribute headline, dateline, and a drop-cap remembrance passage. Includes a survived-by and service details meta block, an interactive light-a-candle condolence counter, a share toast, and a compact column of secondary notices — all set on warm newsprint with hairline rules, justified columns, and a single restrained editorial red.

In Lab öffnen
html css vanilla-js
Targets: JS HTML

Code

Obituary / In Memoriam

A self-contained obituary module styled like a real broadsheet memorial page. The primary notice is a bordered card carrying a duotone-ink portrait gradient, the deceased’s full name and life years, a serif tribute headline, a place-stamped dateline, and a two-column remembrance passage that opens with a red drop cap and a pull quote. Beneath the prose sits a structured meta block for “survived by” lineage and the funeral service details, followed by the condolence controls.

The interactions are quiet and respectful. A “Light a candle” button toggles a flickering flame and increments a live, comma-formatted candle tally (click again to dim), each change announced through an aria-live region. A share button uses the Web Share API when present and falls back to copying the remembrance to the clipboard, with a small toast confirming the action. A right-hand rail lists compact secondary notices, each with its own one-tap candle.

Everything is vanilla HTML, CSS, and JavaScript: Playfair Display for the display serif, Inter for meta and UI, hairline rules instead of shadows, justified hyphenated columns, and a single accent red used only for kickers, the drop cap, and links. The layout collapses from two columns to one below 720px and stays readable down to 360px.

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