feat(auth): streamline login with Zalo SDK and Claymorphism UI
Summary
Redesigns the authentication flow to use native Zalo Mini App login (getAccessToken and getPhoneNumber), replacing the traditional email/password form with a clean, Claymorphic one-tap experience.
Key Changes
-
Zalo Login Hook: Created
src/hooks/use-zalo-login.tsto orchestrate Zalo SDKgetAccessTokenandgetPhoneNumberretrieval and server authentication. -
Login Screen Redesign:
- Rewrote
src/pages/auth/login.tsxto a single-tap Zalo sign-in flow. - Replaced raw emojis with official 3D Claymorphic SVG icons (
WalletIcon,ReportIcon,AIAssistantIcon). - Applied design tokens (
rounded-clay,shadow-clay-raised,hover:shadow-clay-hover,active:shadow-clay-pressed).
- Rewrote
-
Service & i18n:
- Added
loginWithZalomethod toauth.service.ts. - Added localized strings for Zalo auth in
vi.jsonanden.json.
- Added