feat(input): expand Araso Han/Eng contractions, acronyms, typo recovery, and fast cursor-tail replacement
This commit is contained in:
parent
51bf664302
commit
f403111256
80 changed files with 1449 additions and 458 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { useRouter } from 'next/navigation'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { d3roPalette } from '@d3ro/ui/theme'
|
||||
import { d3roFontMono, d3roFontSans, d3roFocusRing, d3roPalette } from '@d3ro/ui/theme'
|
||||
import { Box, Stack, Alert } from '@mui/material'
|
||||
import { useI18n } from '@d3ro/i18n'
|
||||
import { getSupabaseBrowserClient, isSupabaseConfigured } from '@/lib/supabase-browser'
|
||||
|
|
@ -95,7 +95,7 @@ export default function LoginPage(): React.ReactElement {
|
|||
justifyContent: 'center',
|
||||
bgcolor: d3roPalette.bg.app,
|
||||
p: 2,
|
||||
fontFamily: '"Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif'
|
||||
fontFamily: d3roFontSans
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
|
|
@ -143,10 +143,9 @@ export default function LoginPage(): React.ReactElement {
|
|||
m: 0,
|
||||
fontSize: '22px',
|
||||
fontWeight: 500,
|
||||
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',
|
||||
letterSpacing: '0.25em',
|
||||
color: d3roPalette.text.primary,
|
||||
textIndent: '0.25em'
|
||||
fontFamily: d3roFontMono,
|
||||
letterSpacing: '0.02em',
|
||||
color: d3roPalette.text.primary
|
||||
}}
|
||||
>
|
||||
D3RO-VOICE
|
||||
|
|
@ -154,11 +153,10 @@ export default function LoginPage(): React.ReactElement {
|
|||
<Box
|
||||
sx={{
|
||||
mt: 1,
|
||||
fontSize: '9px',
|
||||
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',
|
||||
letterSpacing: '0.18em',
|
||||
color: d3roPalette.text.label,
|
||||
textTransform: 'uppercase'
|
||||
fontSize: '11px',
|
||||
fontFamily: d3roFontSans,
|
||||
letterSpacing: 0,
|
||||
color: d3roPalette.text.label
|
||||
}}
|
||||
>
|
||||
{t('login.subtitle') ?? 'Precision Voice Intelligence'}
|
||||
|
|
@ -300,10 +298,10 @@ export default function LoginPage(): React.ReactElement {
|
|||
<Box sx={{ flex: 1, height: '1px', bgcolor: d3roPalette.border.default }} />
|
||||
<Box
|
||||
sx={{
|
||||
fontSize: '10px',
|
||||
fontFamily: 'ui-monospace, monospace',
|
||||
fontSize: '11px',
|
||||
fontFamily: d3roFontSans,
|
||||
color: d3roPalette.text.label,
|
||||
letterSpacing: '0.1em'
|
||||
letterSpacing: 0
|
||||
}}
|
||||
>
|
||||
{t('login.or') ?? '또는'}
|
||||
|
|
@ -317,11 +315,12 @@ export default function LoginPage(): React.ReactElement {
|
|||
<Box>
|
||||
<Box
|
||||
component="label"
|
||||
htmlFor="login-email"
|
||||
sx={{
|
||||
display: 'block',
|
||||
fontSize: '10px',
|
||||
fontFamily: 'ui-monospace, monospace',
|
||||
letterSpacing: '0.15em',
|
||||
fontSize: '11px',
|
||||
fontFamily: d3roFontMono,
|
||||
letterSpacing: 0,
|
||||
color: d3roPalette.text.label,
|
||||
mb: 0.75,
|
||||
pl: 0.5
|
||||
|
|
@ -330,6 +329,7 @@ export default function LoginPage(): React.ReactElement {
|
|||
EMAIL
|
||||
</Box>
|
||||
<Box
|
||||
id="login-email"
|
||||
component="input"
|
||||
type="email"
|
||||
required
|
||||
|
|
@ -345,12 +345,12 @@ export default function LoginPage(): React.ReactElement {
|
|||
px: 2,
|
||||
fontSize: '14px',
|
||||
color: d3roPalette.text.primary,
|
||||
outline: 'none',
|
||||
boxSizing: 'border-box',
|
||||
transition: 'border-color 0.15s ease',
|
||||
'&:focus': {
|
||||
borderColor: d3roPalette.accent.main
|
||||
},
|
||||
'&:focus-visible': d3roFocusRing,
|
||||
'&::placeholder': {
|
||||
color: 'color-mix(in srgb, var(--d3-text-label) 40%, transparent)'
|
||||
}
|
||||
|
|
@ -361,11 +361,12 @@ export default function LoginPage(): React.ReactElement {
|
|||
<Box>
|
||||
<Box
|
||||
component="label"
|
||||
htmlFor="login-password"
|
||||
sx={{
|
||||
display: 'block',
|
||||
fontSize: '10px',
|
||||
fontFamily: 'ui-monospace, monospace',
|
||||
letterSpacing: '0.15em',
|
||||
fontSize: '11px',
|
||||
fontFamily: d3roFontMono,
|
||||
letterSpacing: 0,
|
||||
color: d3roPalette.text.label,
|
||||
mb: 0.75,
|
||||
pl: 0.5
|
||||
|
|
@ -374,6 +375,7 @@ export default function LoginPage(): React.ReactElement {
|
|||
PASSWORD
|
||||
</Box>
|
||||
<Box
|
||||
id="login-password"
|
||||
component="input"
|
||||
type="password"
|
||||
required
|
||||
|
|
@ -389,12 +391,12 @@ export default function LoginPage(): React.ReactElement {
|
|||
px: 2,
|
||||
fontSize: '14px',
|
||||
color: d3roPalette.text.primary,
|
||||
outline: 'none',
|
||||
boxSizing: 'border-box',
|
||||
transition: 'border-color 0.15s ease',
|
||||
'&:focus': {
|
||||
borderColor: d3roPalette.accent.main
|
||||
},
|
||||
'&:focus-visible': d3roFocusRing,
|
||||
'&::placeholder': {
|
||||
color: 'color-mix(in srgb, var(--d3-text-label) 40%, transparent)'
|
||||
}
|
||||
|
|
@ -403,28 +405,27 @@ export default function LoginPage(): React.ReactElement {
|
|||
</Box>
|
||||
</Stack>
|
||||
|
||||
{/* Primary Orange CTA Button */}
|
||||
{/* Primary CTA Button */}
|
||||
<Box
|
||||
component="button"
|
||||
type="submit"
|
||||
disabled={signingIn}
|
||||
sx={{
|
||||
width: '100%',
|
||||
bgcolor: d3roPalette.accent.main,
|
||||
bgcolor: d3roPalette.accent.solid,
|
||||
border: 'none',
|
||||
borderRadius: '12px',
|
||||
py: 1.75,
|
||||
fontSize: '14px',
|
||||
fontWeight: 500,
|
||||
letterSpacing: '0.05em',
|
||||
color: d3roPalette.bg.app,
|
||||
letterSpacing: 0,
|
||||
color: d3roPalette.accent.ink,
|
||||
cursor: signingIn ? 'not-allowed' : 'pointer',
|
||||
boxShadow: '0 0 25px var(--d3-accent-glow)',
|
||||
transition: 'all 0.15s ease',
|
||||
'&:hover': {
|
||||
filter: 'brightness(1.08)',
|
||||
boxShadow: '0 0 30px var(--d3-accent-glow)'
|
||||
bgcolor: d3roPalette.accent.solidHover
|
||||
},
|
||||
'&:focus-visible': d3roFocusRing,
|
||||
'&:active': {
|
||||
transform: 'scale(0.99)'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue