Countdown Bar

A deadline bar with a live timer. Real urgency only: it counts to a real date and disappears when time is up.

Copied 0 times.

Summer sale ends in02114809Shop now

Customize the prompt

Build a countdown banner bar for my website. Match my existing design system, colors, and fonts.

STRUCTURE
- A full-width bar with: a short message naming the deadline event, a live countdown (days, hours, minutes, seconds as labeled blocks), and one CTA button.
- Stick it to the top of the viewport.

COUNTDOWN
- The event is a sale ending: message like "Summer sale ends in", CTA "Shop now". Adapt to my business.
- The timer updates every second, client-side, computed from the visitor's clock against the fixed end datetime (store the end date in one config constant).
- When the countdown reaches zero, the whole bar disappears. Never restart it automatically and never fake the deadline: if the date has passed, the bar does not render.

BEHAVIOR
- Dismiss X hides it for the rest of the session (sessionStorage).
- No layout shift when it appears or disappears.

QUALITY
- Timer digits use tabular numbers so the bar does not jiggle every second.
- role="region" with aria-label; the countdown has an aria-live="off" (updating every second must not spam screen readers), with the deadline stated in plain text in the message for accessibility.
- Compact on mobile: message may shorten, timer and button always visible.

QUESTIONS
- Before you build, find or ask for: the exact end date and time of the deadline (with timezone), what the deadline is for, and the URL the CTA button leads to. Check my project and site first; whatever you cannot find there, ask me for. Never invent these or ship placeholders.
- If anything else about my brand or content is unclear, ask me before inventing.

What it does

A countdown bar puts a live ticking timer at the top of your page, counting down to a deadline you set: a sale ending, a launch, a price going up. Deadlines get people moving, and a timer ticking right in front of them is hard to ignore.

  • You set one end date, and the timer counts to that exact moment on each visitor's clock.
  • At zero, the whole bar disappears; it never restarts, and a date already passed never shows.
  • Dismissing it with the X hides it for the rest of the visit.
  • Fake countdowns burn trust fast, so the code makes them impossible. Your visitors only ever see a clock that means it.

How it works

  1. 1Pick where it lives, stuck to the top of the screen or at the top of your content.
  2. 2Pick the deadline, a sale ending, a launch, or a price bump.
  3. 3Copy the prompt, the ready-made instructions for your AI, into whichever AI you use.
  4. 4Your AI rebuilds the bar in your site's colors and fonts, with the day, hour, minute, and second blocks ticking every second.
  5. 5Set your real end date in the one marked spot in the code, and the timer counts to that exact moment on each visitor's clock.
  6. 6Before shipping, test what happens at zero: the whole bar should vanish, and a date in the past should stop it from showing at all.

What you can customize

  • Where does it sit: top keeps it stuck on screen while people scroll; inline places it at the top of the page and lets it scroll away naturally.
  • What is the deadline: sale ending, launch or drop, or price going up. Each comes with matching words and its own button, like Shop now or Get notified.
  • Words, colors, and the offer itself adapt to your business, because your AI builds the bar right inside your own design.

You'll also like