Omnira Docs v1.0.0

Section reference › Content

Countdown "type": "countdown"

A centred band with a live days/hours/minutes/seconds countdown to a date, plus heading and buttons. Use it for events, launches and sales.

Example of the countdown section
The example below, rendered with placeholder images.

Example#

Paste this into the sections list of a page file:

JSON
{
  "type": "countdown",
  "image": "placeholder",
  "eyebrow": "Early-bird tickets",
  "title": "Prices go up in",
  "text": "Save 30% on all three-day passes until the end of the month.",
  "date": "2027-06-12T16:00:00",
  "buttons": [
    {
      "label": "Get your ticket",
      "href": "tickets.html",
      "style": "primary",
      "icon": "ticket-perforated"
    },
    {
      "label": "See the line-up",
      "href": "lineup.html",
      "style": "outline"
    }
  ]
}

Options#

OptionTypeDefaultDescription
eyebrowstring—Small label shown above the title.
titlestring—Section heading. Simple inline HTML such as <em> or <br> is allowed.
textstring—Short intro paragraph under the title.
datestring—Target date and time, e.g. "2027-06-12T16:00:00". Required.
imagestring—Optional background photo.
overlaynumber0.6Darkness over the photo, 0 to 1.
buttonsarray—Buttons shown under the timer. See the button fields below.

Also accepts the options every section accepts: id, tone, padding, fluid, class, hidden.

Fields of each entry in buttons#

OptionTypeDefaultDescription
labelstring—Button text. A button without a label is not shown.
hrefstring—Link target, e.g. "contact.html" or "#pricing". Defaults to "#".
stylestringprimaryButton look.
Values: primary | outline | light | dark | accent | link
iconstring—Bootstrap Icons name shown after the label (e.g. "arrow-right"). "link" buttons get an arrow automatically.
videostring—YouTube embed URL (https://www.youtube.com/embed/VIDEO_ID). When set, the button opens the video in a pop-up instead of following href.

Tips#

  • Default tone is "dark" when an image is set and "alt" otherwise.
  • The date uses the visitor's time zone unless you add an offset, e.g. "2027-06-12T16:00:00+01:00". After the date it shows 00 everywhere.
  • "fluid" has no effect on this section.

Where it's used#

Open these pages in template/ to see it working:

  • Finance: template/finance/home-2.html (source src/demos/finance/pages/home-2.json)
  • Tech Conference: template/conference/home-2.html (source src/demos/conference/pages/home-2.json)
  • Online Academy: template/education/home-2.html (source src/demos/education/pages/home-2.json)
  • Restaurant: template/restaurant/home-2.html (source src/demos/restaurant/pages/home-2.json)
  • Hotel & Resort: template/hotel/home-2.html (source src/demos/hotel/pages/home-2.json)
  • Wedding: template/wedding/index.html (source src/demos/wedding/pages/index.json)
  • Gym & Fitness: template/gym/home-2.html (source src/demos/gym/pages/home-2.json)
  • Yoga Studio: template/yoga/home-2.html (source src/demos/yoga/pages/home-2.json)
  • Day Spa & Salon: template/spa/home-2.html (source src/demos/spa/pages/home-2.json)
  • Medical Clinic: template/medical/home-2.html (source src/demos/medical/pages/home-2.json)
  • Car Dealer: template/car-dealer/index.html (source src/demos/car-dealer/pages/index.json)
  • Travel Agency: template/travel/index.html (source src/demos/travel/pages/index.json)
  • Photographer: template/photography/home-2.html (source src/demos/photography/pages/home-2.json)
  • Music Festival: template/music-festival/home-2.html (source src/demos/music-festival/pages/home-2.json)
  • Fashion Store: template/fashion-store/index.html (source src/demos/fashion-store/pages/index.json)
  • Charity: template/charity/events.html (source src/demos/charity/pages/events.json)