2FA screens: plain en/pl texts and tab title; CookieButton moves up above the footer

- TOTP_TEXTS (admin-ux.md wording) merged over @clocklimited/payload-2fa's
  long, informal texts; the project's i18n.translations still win;
  twoFactor.texts: false keeps the package's. Setup/verify screens titled
  "Two-step verification" / "Weryfikacja dwuetapowa" instead of "Payload".
- CookieButton: position via --ipal-cookie-button-offset / -inset and
  --ipal-z-header; lifts above the footer (avoid, default COOKIE_BUTTON_AVOID)
  while it is on screen; side prop; className still replaces the look.
- dev: a footer in the frontend layout to check the button against.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 15:34:01 +01:00
co-authored by Claude Opus 5.5
parent d992d131a2
commit 2886c89d8a
15 changed files with 281 additions and 11 deletions
+6
View File
@@ -15,6 +15,12 @@ export default async function LocaleLayout({ children, params }: Props) {
<body>
<SiteProviders banner={<CookieBanner controls="switch" equalChoice settings="detailed" />} logEndpoint="/api/ipal/consent" shell={await getSiteShell(locale)} stats={{ locale }}>
<main>{children}</main>
{/* A footer with links in the bottom-left corner: CookieButton must not cover them. */}
<footer style={{ borderTop: '1px solid #e5e5e5', display: 'flex', gap: '1.5rem', marginTop: '60vh', padding: '1.5rem 1rem' }}>
<a href={`/${locale}`}>Home</a>
<a href={`/${locale}/kontakt`}>Kontakt</a>
<a href={`/${locale}/polityka-prywatnosci`}>Polityka prywatności</a>
</footer>
</SiteProviders>
</body>
</html>