Task 3: Build LoginScreen component with typing animation
- Created LoginScreen.tsx with character-by-character username typing (30ms/char) - Password dots fill at 20ms per dot - Button shows pressed state before transition - Added 'login' phase to App.tsx flow - Added PMR colors and fonts to tailwind.config.js - Added Inter font family to index.html - Respects prefers-reduced-motion: instant completion in ~500ms
This commit is contained in:
@@ -33,11 +33,22 @@ export default {
|
||||
dim: '#3a6b45',
|
||||
grey: '#666666',
|
||||
},
|
||||
pmr: {
|
||||
sidebar: '#1E293B',
|
||||
banner: '#334155',
|
||||
content: '#F5F7FA',
|
||||
nhsblue: '#005EB8',
|
||||
green: '#22C55E',
|
||||
amber: '#F59E0B',
|
||||
red: '#EF4444',
|
||||
},
|
||||
},
|
||||
fontFamily: {
|
||||
primary: ['Plus Jakarta Sans', 'system-ui', 'sans-serif'],
|
||||
secondary: ['Inter Tight', 'system-ui', 'sans-serif'],
|
||||
mono: ['Fira Code', 'monospace'],
|
||||
inter: ['Inter', 'system-ui', 'sans-serif'],
|
||||
geist: ['Geist Mono', 'Fira Code', 'monospace'],
|
||||
},
|
||||
boxShadow: {
|
||||
'sm': '0 1px 3px rgba(0,0,0,0.06)',
|
||||
|
||||
Reference in New Issue
Block a user