deploy / deploy (push) Successful in 39s
- Blanc pur et noir (noir profond et blanc en sombre), accent vert d'eau, coins droits, filets fins - Police Epilogue (embarquée, variable) à la place d'Inter ; mentions légales à jour - Titres de section soulignés d'un filet ; bannière d'accueil sans cadre ; « À voir » en affiches simples - Progression des épisodes en fine barre découpée (plus de pellicule) ; billet « Reprendre » conservé - Icône, barre du navigateur, pages légales / 404 et carte de partage aux nouvelles couleurs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
import { enableDesktopCarousels } from './lib/dragScroll'
|
|
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import { registerSW } from 'virtual:pwa-register'
|
|
import { initialLang, loadLang } from './i18n'
|
|
import { LangProvider } from './i18n/react'
|
|
import Root from './Root'
|
|
import { applySavedTheme } from './lib/theme'
|
|
import ErrorBoundary from './components/ErrorBoundary'
|
|
import { installErrorReporting } from './lib/errorReporter'
|
|
// Police embarquée dans l'app (Epilogue, variable) : aucun appel à Google Fonts, fonctionne hors-ligne
|
|
import '@fontsource-variable/epilogue/wght.css'
|
|
import './index.css'
|
|
|
|
// Thème choisi (couleur + clair/sombre/étoilé) appliqué tout de suite, sans attendre le chargement de l'app
|
|
applySavedTheme()
|
|
|
|
// Remontée des erreurs (sans donnée perso) : à brancher avant tout le reste
|
|
installErrorReporting()
|
|
|
|
// Service worker : cache l'app pour un fonctionnement hors-ligne et la met à jour automatiquement.
|
|
registerSW({ immediate: true })
|
|
|
|
// Carrousels : molette et glisser à la souris sur ordinateur
|
|
enableDesktopCarousels()
|
|
|
|
// La langue est chargée avant le premier affichage (le français est inclus, les autres arrivent en un instant)
|
|
loadLang(initialLang())
|
|
.catch(() => loadLang('fr'))
|
|
.finally(() => {
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<LangProvider>
|
|
<ErrorBoundary>
|
|
<Root />
|
|
</ErrorBoundary>
|
|
</LangProvider>
|
|
</StrictMode>,
|
|
)
|
|
})
|