Publishing sectionsPaywall

Open in Create
Search
astronomic.dev

Paywall

Pro

Where a members-only post stops: the part readers may see, then a card that asks them to subscribe or sign in.

File
Paywall.astro
Group
Publishing sections
Kind
Static: no JavaScript
Examples
4
import Paywall from "@astronomic/ui-pro/components/Paywall.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

A locked post

The preview your data layer rendered (here a Prose with two paragraphs and a heading), at full contrast; three short ghost lines fading out after it; then the members card on the quiet fill: a lock mark, the heading, a line, the subscribe Button and the sign-in link.

main.astro

No preview

With nothing in the default slot (or only an empty wrapper), the card alone, with no fade.

no-preview.astro

Your own sign-in

A kit Form with an email Field in the sign-in slot, in place of the link: built from kit parts on the page, with no heading of its own. It stacks under the Button, after a quiet rule, in a centered block up to 24rem wide; the field and its Button share a row once the card is wide enough (a paywall container query), and stack, the Button full width, below that. Its Button is secondary (submitVariant), so Subscribe stays the main action.

sign-in-slot.astro

In a narrow column

In a 20rem column the Button and the sign-in link wrap to two lines and stay centered.

narrow.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.