NavigationAnnouncementCountdown

Open in Create
Search
astronomic.dev

AnnouncementCountdown

Pro

For a sale with a deadline: the message, the time left as small boxes, and a link.

File
AnnouncementCountdown.astro
Group
Navigation
Kind
Interactive: inline script
Examples
2
import AnnouncementCountdown from "@astronomic/ui-pro/components/AnnouncementCountdown.astro";

Examples

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

  • Static
  • Interactive
  • Framed

A sale with the time left as boxes

The message, then the time left as three small boxes (days, hours, minutes) that change once a minute, then a link. The digits keep their width, so the row never moves. It sits above a sticky Navbar and scrolls away.

main.astro

With no script

What a visitor with no script sees, drawn with endDisplay="date" and closable="off": the end date in place of the boxes, no close button, and a link that works.

no-script.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.