da50f3b5ea
- Design tokens (ds.ts, theme.ts, scoreTheme.ts): new warm palette (#152642 navy, #f9f8f6 warm white, #e8e7e4 borders, #b8975a gold accent), flat score tier badges replacing CSS gradients, Inter + DM Serif Display typography - Card components: white-background cards, DM Serif score numbers, max-2 badge chips with +N overflow tooltip, editorial score badge positioning - Layout shell: gold left-accent nav active state, 64px top bar, outlined workspace chip, DM Serif page titles - Shared atoms: GenericBadge (outlined/solid variants), ResultFilterBar (simplified chip styles), DecisionContextPanel (dot metrics, no left accent) - Global replacement (118 files): #1e3a5f→#152642, #e2e8f0→#e8e7e4, #f4f6f9→#f9f8f6 — all handled via Node.js for proper UTF-8 safety Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
61 lines
1.5 KiB
TypeScript
61 lines
1.5 KiB
TypeScript
import { Box, Button, Typography } from '@mui/material'
|
|
import { Clock } from 'lucide-react'
|
|
import { useNavigate } from 'react-router'
|
|
import { useSessionStore } from '../../stores/sessionStore'
|
|
|
|
export function SessionExpired() {
|
|
const { logout } = useSessionStore()
|
|
const navigate = useNavigate()
|
|
|
|
function handleRelogin() {
|
|
logout()
|
|
navigate('/auth/login')
|
|
}
|
|
|
|
return (
|
|
<Box
|
|
sx={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
minHeight: '100vh',
|
|
gap: 2,
|
|
bgcolor: '#f8fafc',
|
|
p: 4,
|
|
}}
|
|
>
|
|
<Box
|
|
sx={{
|
|
width: 56,
|
|
height: 56,
|
|
borderRadius: '50%',
|
|
bgcolor: 'rgba(245,158,11,0.1)',
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
}}
|
|
>
|
|
<Clock size={28} color="#f59e0b" />
|
|
</Box>
|
|
|
|
<Box sx={{ textAlign: 'center', maxWidth: 380 }}>
|
|
<Typography variant="h6" sx={{ fontWeight: 600, mb: 0.5 }}>
|
|
Sitzung abgelaufen
|
|
</Typography>
|
|
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
|
Ihre Sitzung ist abgelaufen. Bitte melden Sie sich erneut an.
|
|
</Typography>
|
|
</Box>
|
|
|
|
<Button
|
|
variant="contained"
|
|
onClick={handleRelogin}
|
|
sx={{ mt: 1, bgcolor: '#152642', textTransform: 'none' }}
|
|
>
|
|
Erneut anmelden
|
|
</Button>
|
|
</Box>
|
|
)
|
|
}
|