Skip to content
OAIT Design System

Design system / Patterns

App home

The first screen after sign-in: a greeting, the person's one main object with its one action, then the next things they may want to do. Template 3 of 11 (canonical §11, D-BCP-24).

Used by Global ID Home, the Global Games event passport, and the Tamakkan student dashboard; future Tasks and Events homes start from it.

Purpose

  • Put the thing people came for on top: Global ID's scan code, Games' event passport and score. One screen, one main object, one main action (D-CAI-04, D-BCP-24).
  • Offer the next few tasks in plain words ("Show my ID", "Update my details"), never a dashboard of everything (dummy-proof rules, D-BCP-16).
  • Say what happened recently on the account, so people notice what they did not do.

When to use

  • The start page of a signed-in member app with two to five destinations.

Use something else when:

Need Use
A staff or admin start page with tables, filters, and grouped places Admin console
A page of settings and personal details Forms and settings
The public front page, before sign-in Landing page
A screen for a kiosk, a scanner, or a station No navigation chrome; leave by a labeled button (Navigation and information architecture)

Structure

The page lives in the app shell: a h-dvh grid where only <main> scrolls, the top app bar is a grid row, and the navigation is the bottom bar below 768px or the rail from 768px (D-LAY-09, D-CSN-13). The shell is drawn in Layout: member app.

Desktop (from 1024px)

# Block What it holds Component
0 Skip link "Skip to content", to <main id="main" tabindex="-1"> Link
1 Top app bar 72px, surface, no edge, spanning both columns. Start: the home link (mark, product name, institution line) and an optional context chip. End: the language switcher and the account control (a 40px avatar button opening the account menu) Top app bar, Language switcher, Avatar, Menu
2 Navigation rail 96px at the inline start, 2–5 destinations, the current one with the primary-container pill, the filled icon, a bold label, and aria-current="page" Navigation rail
3 Notices (when needed) Banners at the top of <main>: an info notice, a warning about a link or a device Banner
4 Greeting The date above it (text-body-md text-on-surface-variant), then the h1, text-headline-sm md:text-display-sm: "Good morning, {name}" by the time of day where the University is —
5 Main object The product's one object with its one action: Global ID's scan-code pass, Games' event passport with the score. From 1024px a supporting card may sit beside it in a two-column row QR pass, Passport card, Game tiles
6 Tasks An h2 "What do you want to do?" (text-title-lg), then up to five task tiles in four columns; more behind "Show more" Card: tonal
7 Your apps An h2 and the family products the person uses: each a 40px mark (mark-md) and the name; north_east when it opens another product Logo lock-up, List
8 Recently An h2, one intro line, up to five two-line rows (72px): a 40px tonal disc with an icon, one plain sentence, when it happened List
9 App footer One in-flow row at the end of <main>: "Privacy notice" (and help), never pinned Footer: app footer

(canonical §11 row 3, §10.15, §10.12, §10.16; D-CSN-13, D-CSN-14, D-CSN-07, D-CSN-15, D-LAY-09)

Phone (below 768px)

# Block What changes
1 Top app bar 64px plus the top inset: the S lock-up (32px mark and the name) below 640px, the M lock-up with its institution line from 640px (D-ARC-28); the language switcher as a 48px icon button; the account avatar
2 Navigation The rail goes; the navigation bar is the last grid row: 80px plus the bottom inset, 2–5 equal destinations on surface-container, hidden while the on-screen keyboard is open, never position: fixed
4 Greeting text-headline-sm; no date line
5 Main object Full width; a supporting card moves under it
6 Tasks Two columns; the tiles show their title, the hint line may go
7–8 Your apps, Recently One column, full-width rows
— Snackbars Above the bar: the host sits calc(6rem + env(safe-area-inset-bottom)) from the bottom

<main> pads 4px top, 24px bottom and calc(16px + inset) inline below 768px; 8px top, 48px bottom and 24px inline from 768px. The content column is capped at max-w-page with groups 24px apart, 32px from 768px (D-LAY-09, D-LAY-10).

In between (768–1023px)

  • From 768px: the rail replaces the bar, the app bar grows to 72px, the date line appears above the greeting, the page title steps up to display-sm (D-CSN-13, D-LAY-14). The lock-up already switched to M with its institution line at 640px (D-ARC-28, ID-2.35).
  • Tasks stay in two columns until 1024px, then take four (D-LAY-07).

Skeleton

The reference classes of oait-ui.css, as in app-home.html. The app shell markup is the navigation bar and rail components'.

<body>
  <a class="oa-skip-link" href="#main">Skip to content</a>
  <div class="oa-app-shell oa-app-shell--rail">
    <header class="oa-top-app-bar oa-top-app-bar--compact">
      <div class="oa-top-app-bar__start">
        <a class="oa-lockup oa-top-app-bar__home" href="/home">…mark, name, institution line…</a>
      </div>
      <div class="oa-top-app-bar__end">
        …language switcher…
        <div class="oa-menu__anchor">
          <button class="oa-icon-btn" type="button" aria-label="Account menu, Lina Haddad" aria-expanded="false" aria-controls="account-menu"><span class="oa-avatar oa-avatar--sm" aria-hidden="true">LH</span></button>
          <ul class="oa-menu" id="account-menu" hidden>
            <li><a class="oa-menu__item" href="/help"><span class="oa-icon oa-menu__icon" aria-hidden="true" translate="no">help</span><span class="oa-menu__label">Get help</span></a></li>
            <li><button class="oa-menu__item" type="button"><span class="oa-icon oa-icon--mirror oa-menu__icon" aria-hidden="true" translate="no">logout</span><span class="oa-menu__label">Sign out</span></button></li>
          </ul>
        </div>
      </div>
    </header>

    <div class="oa-app-shell__nav">
      <nav class="oa-nav-rail" aria-label="Global ID">…Home, My ID, Vault, Profile, Security…</nav>
    </div>

    <main id="main" tabindex="-1" class="oa-app-shell__main">
      <div class="oa-app-shell__content">
        <div class="oa-stack oa-stack--tight">
          <p class="oa-text-body-md oa-supporting">Tuesday 27 October</p><!-- page layout: shown from 768px -->
          <h1 class="oa-page-title" id="greeting" tabindex="-1">Good morning, Lina</h1>
        </div>

        <section class="oa-qr-pass" aria-labelledby="pass-title">…the one main object and its one action…</section>

        <section class="oa-stack" aria-labelledby="tasks-title">
          <h2 class="oa-text-title-lg" id="tasks-title">What do you want to do?</h2>
          <ul class="oa-grid oa-grid--tiles" role="list">
            <li class="oa-card oa-card--tonal oa-card--peach">
              <span class="oa-icon oa-icon--xl oa-icon--filled" aria-hidden="true" translate="no">badge</span>
              <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="/id">Show my ID</a></h3>
              <p class="oa-card__body">For gates, the library, and exams</p>
            </li>
            …up to five tiles, the hues cycling peach, lavender, mint, sand…
          </ul>
        </section>

        <section class="oa-stack" aria-labelledby="apps-title">…h2 "Your apps" and one row per product…</section>

        <section class="oa-stack" aria-labelledby="recent-title">
          <h2 class="oa-text-title-lg" id="recent-title">Recently</h2>
          <ul class="oa-list">…up to five two-line rows…</ul>
        </section>

        <footer class="oa-footer oa-footer--app">…Privacy notice…</footer>
      </div>
    </main>

    <div class="oa-app-shell__bar">
      <nav class="oa-nav-bar" aria-label="Global ID app">…Home, My ID, Vault, Me…</nav>
    </div>
  </div>
  <div class="oa-snackbar-host oa-snackbar-host--nav-bar" role="status" aria-live="polite"></div>
</body>

The greeting takes .oa-page-title, the app page title that steps up from headline-sm to display-sm at 768px (canonical §3.5); the date line's 768px switch is page layout. base.css resets lists that carry .oa-grid, .oa-stack, or .oa-cluster; keep role="list".

Tailwind CSS v4 (canonical §4.5, §4.8, §10.15; D-LAY-09):

Region Tailwind v4
Shell grid h-dvh grid-cols-[minmax(0,1fr)] grid-rows-[auto_minmax(0,1fr)_auto] md:grid-cols-[auto_minmax(0,1fr)] md:grid-rows-[auto_minmax(0,1fr)]
Top app bar h-16 md:h-18 bg-surface md:col-span-2, a grid row (never sticky or fixed)
<main> min-h-0 overflow-y-auto overscroll-contain pt-1 pb-6 md:px-6 md:pt-2 md:pb-12, plus the inline safe-area padding of Layout: the member app shell
Content column mx-auto flex w-full max-w-page flex-col gap-stack-loose md:gap-stack-group
Greeting text-headline-sm md:text-display-sm
Section heading text-title-lg
Task grid grid grid-cols-2 gap-grid lg:grid-cols-4
Task tile the clickable card on a pastel: relative isolate flex min-w-0 flex-col gap-stack rounded-card border border-transparent bg-pastel-peach text-on-pastel-peach p-card sm:p-card-medium transition-[box-shadow,border-color] duration-short-3 ease-standard hover:border-outline hover:shadow-elevation-3 before:absolute before:-inset-px before:-z-1 before:rounded-[inherit] before:bg-current before:opacity-0 has-[a:active]:before:opacity-(--opacity-state-pressed); the title and the hint together in flex flex-col gap-stack-tight. The hues cycle pastel-peach, pastel-lavender, pastel-mint, pastel-sand
Recently row flex min-h-18 items-center gap-4 px-row-inset sm:ps-row-inset-medium py-2
Navigation bar bg-surface-container pt-3 pb-[calc(1rem+env(safe-area-inset-bottom))] md:hidden
Navigation rail hidden w-24 bg-surface pt-3 pb-6 md:flex

Components used

Link · Top app bar · Logo lock-up · Language switcher · Avatar · Menu (account) · Navigation bar · Navigation rail · Banner (notices) · QR pass and ID card (Global ID) · Passport card and Game tiles (Games) · Card (tonal task tiles, the supporting card) · List (your apps, recently) · Button ("Show more", the main object's action) · Dialog and Bottom sheet ("Get help") · Snackbar · Skeleton · Footer (app footer).

Content

Element Rule Real lines (Global ID)
Greeting "Good {part of day}, {name}" by the time of day in the University's time zone (Asia/Beirut); the preferred name if there is one "Good morning, {name}" · "Good afternoon, {name}" · "Good evening, {name}"; Arabic "صباح الخير يا {name}"; French "Bonjour, {name}"
Date line The weekday, day, and month through Intl with Western digits, from 768px "Tuesday 27 October"
Tasks heading A question in the reader's words "What do you want to do?" · "ماذا تريد أن تفعل؟" · "Que voulez-vous faire ?" (U+202F before "?")
Task tiles A verb-first title that speaks as the person ("my"), or the name of the destination, 1–4 words; a hint line that says what it is for (D-BCP-16, D-BCP-21) "Show my ID" + "For gates, the library, and exams" · "Update my details" + "Phone, address, and emergency contact" · "Security" + "Your sign-in methods, devices, and alerts" · "Get help" + "Questions about your ID or signing in"
Main object Its own words, short and literal; an action that speaks as the person "Your scan code" · "Ready to scan" · "New code every 30 seconds" · "Turn on my pass"
Your apps A title, one sentence, and a link to the full list; each app by its own name "Your apps" · "You’re already signed in. Just pick one to open it." · "See all apps"; Arabic "تطبيقاتك" · "عرض كل التطبيقات"; French "Vos applications" · "Voir toutes les applications"
Recently One plain past-tense sentence per row; relative times only within 7 days (D-BCP-19) "Signed in on {device}" · "Mobile number changed" · "Face or fingerprint sign-in added" · "Your photo was approved"
Recently intro One sentence "The last few things that happened on your Global ID."
Help A person and a place "The ID office can help with your ID, with signing in, and with your details. You’ll find them at Global University, Beirut."
Show more "Show {count} more" on lists; never "Load more" or "See more" (D-BCP-21, D-CSN-18) "Show 3 more"
  • Navigation labels are one or two words and the same everywhere: "Home", "My ID", "Vault", "Me" ("الرئيسية", "هويتي", "الخزنة", "أنا"; "Accueil", "Mon ID", "Coffre-fort", "Moi") (Global ID).
  • English lists take the serial comma; Global ID's catalog writes the task hints and the help line without it today ("For gates, the library and exams") and gains it when the strings are next edited (D-BCP-17).
  • Headings and body never say "my"; buttons and tiles that act on the person's own things do ("Show my ID") (canonical §12.1).
  • Numbers and IDs are Western digits; the Global ID number is font-mono and translate="no": "GU-25-000123" (D-TYP-12, D-BCP-19).

States

State What the page does
Loading The shell and the greeting render at once on the server. The main object shows its own waiting state with words and aria-busy="true" ("Getting your scan code…"). Lists that take over a second show skeleton rows in their final layout, the region aria-busy="true" with one hidden "Loading {thing}…" (D-CSN-29)
Setup needed The main object becomes a card that says what is missing and holds the screen's one action: "Turn on your pass" + "Your phone makes your scan code, a new one every 30 seconds. It works without signal." + "Turn on my pass"; with no passkey yet, "Add a passkey first" + "Add a passkey" (Global ID)
Empty A section with nothing to show is left out (Global ID shows "Recently" only once something has happened); an empty list page uses the in-content empty state (Empty, error, and offline)
Attention A notice at the top of <main>, or a supporting card beside the main object from 1024px, with its own action and "Remind me tomorrow"; choosing it confirms with a snackbar ("We’ll remind you tomorrow." + "Undo") and moves focus back to the h1 (Global ID)
Error A background failure shows a snackbar with "Try again"; a failure of the main object says so in place: "Your scan code couldn’t be made." + "Try again" (Global ID). Nothing blocks the rest of the page
Offline The shell is cached; the main object says what still works ("Your pass isn’t on on this phone. Connect to the internet and turn it on from Home."); see Empty, error, and offline
Success A past-tense snackbar ("Your pass is on"), with "Undo" when the action can be reversed (D-CSN-25)

Accessibility

  • Landmarks. The top app bar is a <header>; the rail and the bar are each a labeled <nav> (only one shows at a time; Global ID names them "Global ID" and "Global ID app"); <main> holds the page; the app footer is the last row of <main> (D-CSN-13, D-CSN-15).
  • Headings. One h1 (the greeting), an h2 per section, h3 for tile titles. The main object's heading is an h2 (D-BCP-25).
  • Current place. The current destination carries aria-current="page", the filled icon, and the bold label, so it never relies on the pill's color (1.11:1 against the bar) (D-CSN-14).
  • Focus. A route change focuses the h1; when a supporting card goes away (snoozed, done), focus moves to the h1 instead of being lost (Global ID).
  • Tiles. Each tile has one link, its title, stretched over the tile with the card's radius for the ring; a tile that opens a dialog ("Get help") is a button drawn the same way. Never a card-sized <a> with other controls inside (D-CSN-04).
  • Bars and keyboard. The bottom bar hides while the on-screen keyboard is open; the snackbar host sits above the bar, so a message never covers a destination (D-LAY-17, D-CSN-25).
  • Help. "Get help" sits in the same place on every page (the account menu and the Home tile) (WCAG 3.2.6, canonical §13).
  • Motion. The ID card is calm on functional screens: no float, no seal turn, the sheen once on appearing and after each flip; the pass's live dot and corners stop under reduced motion and keep their words (D-SEM-18, D-SEM-21).

RTL and languages

  • The rail sits at the inline start (the right in Arabic); destinations keep their order, read from the right; the bar mirrors the same way (D-BCP-30).
  • chevron_right on rows and north_east on apps that leave mirror; home, badge, QR glyphs, and the countdown never do (D-BCP-33).
  • A name inside an Arabic greeting is user content: isolate it with <bdi> (or dir="auto" and its lang when known), so a Latin name does not reorder the sentence (D-BCP-30).
  • Arabic line heights make the bottom bar about 85px plus the inset; every bar and row uses minimum heights, never fixed ones (D-TYP-14, D-LAY-12).
  • French titles run longer ("Mettre à jour mes informations"): tile titles wrap, never truncate, at 360px (D-TYP-15).
  • Dates and times come from Intl in en-GB, ar-u-nu-latn, and fr with the 24-hour clock (D-TYP-16, D-BCP-19).

Do and don't

Do Don't
Make the bottom bar the last row of the h-dvh grid Fix the bar to the viewport over a scrolling document (Games' .student-nav, GG-2.13)
Two to five destinations in a bar or rail Wrap a row of header links onto three lines (Tamakkan's dashboard, TK-1.09)
One h1, the greeting Two h1s on one screen (Tamakkan's dashboard, TK-1.06)
One main object with one main action A grid of equal tiles with no main object, or two filled buttons
Up to five tasks, then "Show more" Every feature on Home at once
Notices at the top of <main> A modal that opens on arrival
A calm ID card on Home and My ID The marketing loops (float, seal turn, repeating sheen) on a functional screen (ID-1.14)
primary-ink for progress fills and the "on" switch track bg-primary as a progress or track color (ID-1.06)

Best current example

Global ID Home, signed in. The crawl reaches only signed-out pages, so the evidence is Global ID's source (its Home page and its app shell) and its approved design mock-ups (MobileHome, Main); see the Global ID audit:

  • The AppShell: a 100dvh grid with the top app bar, the bottom bar below 768px (Home, My ID, Vault, Me) and the rail from 768px (Home, My ID, Vault, Profile, Apps, Security: six, one more than a member app may have; see Navigation and information architecture), one scrolling <main> ending with the privacy link, and the snackbar host.
  • The date (from 768px) above "Good morning, {name}"; the scan-code pass shown by default with "Hide", and beside it from 1024px the emergency-contact card with its progress and "Remind me tomorrow".
  • "Your apps" when the person uses other apps ("You’re already signed in. Just pick one to open it.", up to four app tiles, and "See all apps"), above the tasks where the template places it after them; "What do you want to do?" with four tiles in two, then four columns ("Show my ID", "Update my details", "Security", "Get help", with "Global Games" first for players); and "Recently" with a tonal icon disc and one sentence per row.

What it still has to change: a skip link in AppShell (ID-1.02); the 22px page titles → text-headline-sm md:text-display-sm (ID-2.23); the Home tiles → rounded-card with hover and pressed layers (ID-2.10, ID-2.32); bg-primary progress and switch tracks → primary-ink (ID-1.06); the data-tint hook (ID-2.02); the apps tile's 2.76:1 focus outline → the family ring (ID-1.04); the card-sized tile links → one stretched title link per tile (ID-2.43); the account control after the language menu (ID-2.44); Apps out of the rail and into "Your apps" (ID-2.41).

Reference template

reference/templates/app-home.html builds Global ID Home in the app shell: the top app bar, the navigation bar below 768px and the rail from 768px, the greeting h1, the pass as the main object, the task tiles, "Your apps", and "Recently". It passes the audit gate in light, dark, RTL, and dark RTL at 390px and 1440px.