- Écran de connexion : « Explorer sans compte ». Recherche, fiches, casting, pages des acteurs, où regarder… en lecture seule, dans un espace à part (vide, jamais mélangé à un compte ni aux données locales de l'appareil). - Noter, ajouter, écrire un avis, listes… ouvrent « Crée ton compte pour continuer » (Créer un compte / Connexion) ; rien n'est enregistré. - Bandeau discret + carte « Mon compte » dans les réglages. - Proxy tmdb : appels anonymes acceptés, limités à 200 / 10 min par IP (600 pour un compte). Redéployé (v12). 18 langues. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
28 files changed
+290
-25
No files matched your search
@@ -49,8 +49,8 @@ function Shell({ children, subtitle }: { children: ReactNode; subtitle: string }
|
||||
}
|
||||
|
||||
/** Écran de connexion / inscription (affiché quand les comptes sont activés et qu'on n'est pas connecté). */
|
||||
export default function AuthScreen({ notice }: { notice?: string }) {
|
||||
const [mode, setMode] = useState<Mode>('login')
|
||||
export default function AuthScreen({ notice, onExplore, initialMode = 'login' }: { notice?: string; /** Mode découverte : regarder l'app sans compte */ onExplore?: () => void; initialMode?: 'login' | 'signup' }) {
|
||||
const [mode, setMode] = useState<Mode>(initialMode)
|
||||
const [email, setEmail] = useState('')
|
||||
const [username, setUsername] = useState('')
|
||||
const [password, setPassword] = useState('')
|
||||
@@ -201,6 +201,12 @@ export default function AuthScreen({ notice }: { notice?: string }) {
|
||||
{mode === 'signup' && <p className="text-center text-xs leading-relaxed text-ink-3">{t('auth.consent')}</p>}
|
||||
</form>
|
||||
|
||||
{onExplore && mode !== 'forgot' && (
|
||||
<button type="button" onClick={onExplore} className="mt-4 w-full rounded-full py-2.5 text-sm font-medium text-ink-2 transition-colors hover:text-ink">
|
||||
{t('guest.explore')} <span className="text-accent rtl:-scale-x-100">→</span>
|
||||
</button>
|
||||
)}
|
||||
|
||||
<div className="mt-5 text-center text-sm">
|
||||
{mode === 'login' && (
|
||||
<button type="button" onClick={() => switchTo('forgot')} className="text-ink-3">
|
||||
|
||||
Reference in new issue
Block a user