Omnira Docs v1.0.0

Section reference › Utility pages

Sign in / register "type": "auth"

A login card with "Sign in" and "Create account" tabs next to a photo with a quote. Use it for a login or member page; the forms are front-end only.

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

Example#

Paste this into the sections list of a page file:

JSON
{
  "type": "auth",
  "title": "Welcome back",
  "text": "Sign in to manage your bookings, invoices and saved classes.",
  "image": "placeholder",
  "quote": "“Booking a class takes me ten seconds now. I haven’t missed a session in months.” — Jess, member since 2023",
  "roles": [
    "Member",
    "Trainer",
    "Corporate client"
  ]
}

Options#

OptionTypeDefaultDescription
titlestringWelcome backHeading (the page's h1).
textstring—Short line under the heading.
imagestring—Photo on the left half (hidden on small screens).
quotestring—Quote shown over the photo.
rolesarray | false["Customer", "Business", "Other"]Choices for the "I am a" dropdown on the Create account tab. Set to false to remove the dropdown.

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

Tips#

  • This is a design, not a working login system: both forms post to formAction in site.json (or just show a thank-you message). Connect them to your own back end before collecting passwords.
  • You can have more than one auth section on a page; each gets its own ids.
  • Default padding is "sm". The section contains the page's h1.

Editing it in the HTML files#

The two forms are in #auth-in and #auth-up. The Google and Apple buttons are plain links under .auth-or: point them at your sign-in provider or delete them.

Where it's used#

Open these pages in template/ to see it working:

  • Real Estate: template/real-estate/login.html (source src/demos/real-estate/pages/login.json)
  • SaaS Product: template/saas/login.html (source src/demos/saas/pages/login.json)
  • Mobile App: template/mobile-app/login.html (source src/demos/mobile-app/pages/login.json)
  • Online Academy: template/education/login.html (source src/demos/education/pages/login.json)