Files
ipal-kit/docs/dev/login-page/README.md
T

5.8 KiB
Raw Blame History

The panel's sign-in screens: design notes and screenshots

Design record of whiteLabel.signIn (the user-facing page is white-label.md → "The sign-in screens"). The goal: IAPL's sign-in looks like IAWL's (the WordPress sibling), and both have a place for the client's logo.

Files here

Made with node scripts/login-page-shots.mjs (headless Chromium, 1280 × 800 and 390 × 844) against the reference site; after-* from a production build with signIn: { allScreens: true }, before-* from main (1.17.0).

Files What
before-*.png IAPL 1.17.0: login (light, dark, phone, Polish, wrong password), forgot password, 2FA code, 2FA setup; -logo = with a logo set
after-*-name.png the new look with no logo set: the site's name
after-*-logo.png the new look with a logo (placeholder-logo.png, drawn for these pictures)
after-first-user-*.png create first user on an empty database (no site name yet: the host is shown)
legacy-unedited-*.png the reference site as it was at v1.16.7, unedited, built against this plugin: login has the look (through AdminLogo), forgot password and create first user are Payload's own until the project sets allScreens
iawl-*.png IAWL's sign-in page, copied from its repository (docs/reviews/white-label/, made 2026-11-24). Two later changes are not in them: the languages are plain links now (no drop-down with a button), and messages are square boxes with a straight bar
placeholder-logo*.png the placeholder logos (dark text; white text for logoMadeFor: 'dark')

Screens: login-{light,dark,phone,phone-dark,pl}, login-error-{light,phone}, forgot-{light,dark,phone}, 2fa-code-{light,dark,phone}, 2fa-setup-{light,dark,phone}, first-user-{light,dark,phone} (needs a database without users: --only=first-user). The files are 8-bit PNGs (re-encoded to keep the folder small).

What defines IAWL's sign-in page (read from plugin/assets/sign-in/sign-in.css, SignInLook.php, Logo.php, LanguageSwitcher.php)

  • Layout: two columns, 5 : 6. Left: a dark panel (#060606) inset 10 px from the window's edge, 20 px corners, a faint grid (3.5 × 2.5 rem cells, 4 % white lines) and two blue glows (rgb(0 158 246), 22–24 %). Right: a white page with the form, 28 rem wide, centred in its column. No card around the form.
  • On the panel, at the bottom: a label "ADMINISTRATION PANEL" (mono, 14 px, 600, upper case, 0.05 em tracking, #b2b2b2, a 5 px blue square before it), then the logo on a white plate (12 px corners, 16 × 20 px padding; the logo fits 240 × 72) or the site's name as text (weight 500, −0.03 em, clamp 36–60 px). Both link to the site.
  • Form: labels above fields, 48 px fields with a 1 px #80868f border and 6 px corners, a full-width 50 px blue button (#0070c0, hover #005a9e, white text), links #006bb8 underlined, focus ring 2 px #017bd0.
  • Under the form: links (lost password, back to the site), the languages as links, a hairline, and the credit "Technology support: Intecion.com" (13 px, muted, centred).
  • Messages: boxes above the form with a 4 px bar on the leading edge: red for errors, green for success.
  • Phone (≤ 52 rem): the panel is a band above the form, bottom corners rounded, the logo 192 × 56.
  • Theme: none: the panel is always dark, the form always light. Fonts: Outfit / Inter / Roboto Mono from local files, part of the credit (off with credit => false). Script: one optional file, the grid light that follows the mouse.
  • States: WordPress's own (errors, lost password, reset with the strength meter, logged out, interim frame); IAWL changes the look only.

How IAPL maps it

Element IAPL Same as IAWL?
Split, panel inset and corners, grid, glows, colours the same numbers (css.ts) yes
Label, plate, logo box, name as text, link to the site the same yes
Button, link, focus and border colours; field and button heights; 28 rem column the same yes
Phone band at 52 rem the same yes
Languages links, on the panel (top corner; under the brand on a phone), because the form's markup is Payload's and differs per screen place differs
Credit line under the login form, hairline above (login only, as before) IAWL: every screen
Dark theme the form's side follows the admin theme; the panel stays dark IAWL has no dark form
Fonts the admin's own font stack and the system's mono; no font file differs (no extra request before sign-in)
Grid light (script) not built: no script on the sign-in page differs
Messages Payload's own toasts and field errors, unchanged differs
Field look Payload's fields with the shared border colour and height close

Decisions

  1. Carried by components every site already has. A new admin component needs a new import-map entry, and a provider missing from the map blanks the whole panel. So AdminLogo prints the panel on the login screen and SafeTotpView in front of the 2FA screens; only allScreens adds a provider (SignInLook), guarded at start.
  2. The panel is one self-contained element, fixed on a desktop and in the flow on a phone, hidden by its own CSS off the minimal template. It therefore works wherever it is printed (inside the login form's wrapper, before a 2FA view, at the top of the body).
  3. No new stored data. Logo and name are Site settings fields that exist since 1.0: no migration. The plate switch (logoMadeFor) and the accent are code options; putting them in the panel would add columns on SQL.
  4. Payload draws its admin screens in the browser (the server's HTML body is empty until React runs), so "no flash" means: the panel, its stylesheet and the form appear in the same step. The e2e spec checks that the form's template is never in the page without them.