Skip to content

Polish login screen layout and sign-in buttons#30

Open
tpaulshippy wants to merge 1 commit into
mainfrom
feat/login-screen-polish
Open

Polish login screen layout and sign-in buttons#30
tpaulshippy wants to merge 1 commit into
mainfrom
feat/login-screen-polish

Conversation

@tpaulshippy

Copy link
Copy Markdown
Owner

Summary

Visual/layout-only polish of the login screen (front/app/login.tsx, front/components/GoogleSignInButton.tsx, front/components/AppleSignInButton.tsx). No auth logic changed — OAuth flows, token handling, and deep linking are identical.

  • Layout: Sign-in buttons are now vertically centered in the available space with 24px horizontal padding and a 16px gap. Previously the Apple button rendered at its natural (unstyled) image size, spanned edge-to-edge, and clipped at the viewport bottom.
  • Buttons: Both buttons are full-width within the padding and 50px tall. Brand image assets are kept, but sized with contain fit — no distortion or clipping. The Apple button now sits on a neutral themed card (cardBackground + border colors) so it looks intentional in dark mode instead of a harsh mismatched block.
  • Tagline: Added a muted, themed "Safe AI tutors for your kids" tagline under the logo.
  • Developer Options: The section was already gated behind __DEV__ in the source; that gate is preserved intact. Note: the static web export is a production build (__DEV__ === false), so the dev-only branch can't be visually verified from the exported bundle — it simply doesn't render there, as the after screenshots confirm.

Verified with npm run lint (0 errors) and jest (28 passed; the _layout-test.tsx suite failure is pre-existing on origin/main and unrelated).

Screenshots (390x844, light & dark)

Light

Before After
before-light after-light

Dark

Before After
before-dark after-dark

Screenshots committed to this branch under docs/screenshots/ for review; drop them before merging if undesired.

- Vertically center sign-in buttons with 24px padding and 16px gap;
  fixes Apple button rendering at natural size and clipping at viewport
- Size both brand image buttons to 50px height with contain fit
  (no distortion/clipping); put Apple button on a neutral themed card
  so it looks intentional in dark mode
- Add muted tagline under the logo
- Developer Options already gated behind __DEV__; auth logic unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant