mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-12 01:38:16 +02:00
- New Reader (desktop + mobile): loads full content on open, prefetches the next article, reading progress and time, "Aa" settings (light / sepia / dark / auto theme, serif / sans / Atkinson Hyperlegible font, size, line height, measure), Space-to-next, keyboard shortcuts, focus management, inert background, URL-driven (?a=) so Back closes it. - Dashboard: cursor pagination, unread/all filter, CSS grid (no masonry), no re-sorting under the reader, optimistic cache patches instead of refetch storms, "new articles" banner, error/offline states, j/k/o/m/s/v shortcuts and help dialog. - Cards: keyboard-openable, lazy <img>, memoized, touch-only swipe. - Focus mode: framer drag (drop @use-gesture), Read button, undo restores unread state, arrow keys. - WebSocket: single connection, backoff, cache patching, no console logs. - Contrast fixes (on-nature tokens), 44px targets, lang="fr", reduced motion, self-hosted fonts, theme applied before first paint. - Code splitting + vendor chunk, prompt-based PWA updates, smaller precache, offline cache for opened articles and images, caches cleared on logout; upgrade react-router (CVE), drop unused deps and assets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.1 KiB
TypeScript
26 lines
1.1 KiB
TypeScript
interface FocusEmptyStateProps {
|
|
onBack: () => void;
|
|
}
|
|
|
|
export function FocusEmptyState({ onBack }: FocusEmptyStateProps) {
|
|
return (
|
|
<div className="flex-1 flex flex-col items-center justify-center text-center space-y-8 px-6 animate-rise">
|
|
<div className="relative">
|
|
<div className="w-28 h-28 rounded-full bg-nature/10 flex items-center justify-center animate-bounce-slow">
|
|
<span className="text-5xl" aria-hidden="true">🌿</span>
|
|
</div>
|
|
<div className="absolute -top-1 -right-1 w-9 h-9 bg-nature text-on-nature rounded-full flex items-center justify-center font-bold border-4 border-carbon" aria-hidden="true">
|
|
✓
|
|
</div>
|
|
</div>
|
|
|
|
<div className="space-y-2">
|
|
<h1 className="text-4xl font-serif italic text-paper-white">C'est tout pour le moment !</h1>
|
|
<p className="text-paper-muted">Vous êtes à jour sur vos lectures.</p>
|
|
</div>
|
|
|
|
<button onClick={onBack} className="btn-primary py-3 px-8" autoFocus>Retour au tableau de bord</button>
|
|
</div>
|
|
);
|
|
}
|