Tablettes et iPad, plus de zoom au doigt, préparation du Play Store
deploy / deploy (push) Successful in 1m29s

- Plus de zoom au doigt sur téléphone (pincer, double-toucher) : balise
  viewport pour Android, touch-action sur la page, gestes de Safari
  annulés sur iPhone et iPad. Le recadrage de la photo garde son
  pincement.
- Version tablette : dès 704 px (iPad, tablettes Android, téléphones
  en paysage), mise en page grand écran avec une barre latérale étroite
  (icône et libellé) à la place de la barre du bas ; barre complète
  à partir de 1024 px comme avant. Catalogue sur plus de colonnes,
  accueil et fiches en deux colonnes, tuiles des stats sur 2 colonnes
  en portrait.
- Manifeste : orientation libre (tablettes en paysage), identifiant
  et catégorie pour l'app Android.
- Guide Play Store : étapes pour fabriquer et publier l'app Android.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-12-02 14:42:39 +00:00
1 parent d99d6fe0f0
commit 6bcbc8da69
31 files changed
+167 -93

No files matched your search

+1
View File
@@ -96,3 +96,4 @@ npm run build # build de prod
- **Recadrage photo de profil / bannière (2 déc. 2026)** : `components/social/ImageCropper.tsx` (glisser, pincer, molette, curseur, flèches du clavier ; l'image couvre toujours le cadre), sortie JPEG sans métadonnées via `cropToJpeg` (`lib/image.ts`) : 400 × 400 pour la photo, 1500 × 500 pour la bannière. Ouvert par `EditProfile` après le choix d'une photo.
- **Bilan de l'année (2 déc. 2026)** : calcul dans `lib/recap.ts` (`yearRecap`, tout sur l'appareil ; les mois masqués dans les réglages des stats, `statsHiddenMonths`, ne comptent pas). Arrivée : le bilan d'une année s'ouvre à partir du 1er décembre de cette année-là (`recapUnlocked`) ; carte sur l'accueil et bouton des stats sans année choisie en décembre (année en cours) et janvier (année passée) (`recapSeasonYear`), carte masquable (clé `azuucine:recap-hint-<année>`) ; les années passées restent consultables en choisissant l'année dans les stats. Interface façon story (`components/YearRecap.tsx` + `YearRecap.css`, chargés à la demande) : une couleur par page, pages qui avancent seules (doigt posé ou bouton = pause, rien d'automatique si l'appareil demande moins d'animations), chiffres en compteur, entrées en cascade, pellicule et halos en fond. Image à partager : `renderRecapCard` dans `lib/shareCard.ts`. Skills d'animation : `.claude/skills/{animate,choreograph,motion-design,frontend-design}`.
- **Profil public (2 déc. 2026)** : lien `bobinoo.org/@pseudo` (`profileLink`, `profileFromPath` dans `lib/cloud/social.ts`). Connecté : le profil s'ouvre normalement. Sans compte : mode découverte le temps de la visite (`Root.tsx`, rien n'est retenu) et `ProfileView` en mode `guest`, qui lit `public_profile` (seule fonction ouverte à `anon`, voir `docs/database.md`) ; pas de bibliothèque complète, « S'abonner » et « Rejoindre Bobinoo » ouvrent la demande de compte. Opt-in : `profiles.public_link`, interrupteur « Profil visible sans compte » dans `EditProfile` (sans effet si le compte est privé). nginx sert `index.html` pour `/@pseudo` avec `X-Robots-Tag: noindex` (`deploy/nginx/site.conf`), le service worker aussi (`navigateFallbackAllowlist`). Les anciens liens `#/u/pseudo` marchent toujours.
- **Tablettes et zoom (2 déc. 2026)** : point de rupture `md` = 44rem (704 px, dans `@theme` de `index.css`) : à partir de là, mise en page grand écran (tablettes en portrait et paysage, téléphones en paysage, ordinateurs) avec barre latérale étroite (`SideNav`, 80 px) ; `lg` (1024 px) = barre latérale complète (240 px). Les classes grand écran s'écrivent donc `md:` ; `lg:` seulement pour ce qui dépend de la grande barre (décalages `lg:ps-60`…) ou pour un réglage plus large (tuiles des stats sur 4 colonnes). Manifeste : `orientation: 'any'`, `id: '/'` (ne plus changer). Pas de zoom au doigt : balise viewport (Android), `touch-action: pan-x pan-y` sur `html`, et `lib/noZoom.ts` (gestes de Safari) ; le recadrage photo garde son pincement (événements pointer).
+33
View File
@@ -104,6 +104,39 @@ Rien d'autre : pas de localisation, pas de contacts, pas d'identifiant publicita
- Bannière 1024 × 500 : `banniere-fr.png`, `banniere-en.png`.
- Captures 1080 × 1920 : `fr-1…7-*.png` pour la fiche française, `en-1…7-*.png` pour l'anglaise (compte de démo, supprimé depuis).
- Captures tablette (7 et 10 pouces) : à faire avec l'interface tablette (barre latérale étroite, depuis le 2 déc. 2026).
Sans elles, la fiche ne s'affiche pas comme « conçue pour les tablettes ».
## Avant publication
- Fichier `/.well-known/assetlinks.json` avec l'empreinte SHA-256 de la clé de signature de l'app Android (pour qu'elle s'ouvre sans barre d'adresse).
- Compte développeur personnel récent : test fermé avec au moins 12 testeurs pendant 14 jours avant la mise en production.
## Créer l'app Android et la publier, pas à pas
L'app Android est une « Trusted Web Activity » : une coquille qui ouvre bobinoo.org en plein écran, avec Chrome.
Le contenu se met donc à jour tout seul avec le site ; une nouvelle version sur le Play Store n'est utile que pour
changer l'icône, le nom ou les réglages de la coquille.
1. **Compte développeur** : https://play.google.com/console/signup (25 $, une seule fois). Compte personnel :
vérification d'identité (pièce d'identité) et d'un téléphone Android (appli Play Console).
2. **Fabriquer l'app** avec PWABuilder (rien à installer) : https://www.pwabuilder.com → saisir `https://bobinoo.org`
→ *Package for stores* → *Android* → *Google Play*. Réglages :
- Package ID : `org.bobinoo.app` (définitif : il ne pourra plus changer) ;
- App name / Launcher name : `Bobinoo` ; version : `1` / `1.0.0` ;
- couleurs : `#090909` (barre d'état, barre de navigation, écran de démarrage) ;
- clé de signature : *Create new*.
Le zip téléchargé contient `app-release-bundle.aab` (à envoyer au Play Store), un `.apk` pour essayer sur un
téléphone, `assetlinks.json`, et **la clé** (`signing.keystore` + `signing-key-info.txt`). La clé et ses mots de passe
sont à garder en lieu sûr (gestionnaire de mots de passe + copie hors ligne), jamais dans le dépôt : sans elle, plus
de mise à jour possible. (Autre outil, en ligne de commande : Bubblewrap, `npx @bubblewrap/cli init --manifest
https://bobinoo.org/manifest.webmanifest`.)
3. **Play Console** : *Créer une application* (gratuite, pas de jeu) → *Tester et publier* → *Test fermé* → nouvelle
version → envoyer le `.aab`. La signature d'application Google Play est activée par défaut.
4. **Lien app ↔ site** : *Intégrité de l'application* → *Signature de l'application* → copier l'empreinte SHA-256 de la
clé de signature de l'application (Google) ; l'empreinte de la clé d'importation est dans le `assetlinks.json` de
PWABuilder. Les deux vont dans `public/.well-known/assetlinks.json` (empreintes publiques, pas des secrets).
Sans ce fichier, l'app s'ouvre avec une barre d'adresse en haut.
5. **Fiche et questionnaires** : textes et réponses ci-dessus ; visuels dans `docs/store/`.
6. **Test fermé** : au moins 12 testeurs inscrits pendant 14 jours d'affilée (liste d'adresses Gmail, ou un groupe
Google), puis *Demander l'accès à la production* (petit questionnaire sur le test) ; vérification par Google en
quelques jours.
+2 -1
View File
@@ -2,7 +2,8 @@
<html lang="fr" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<!-- Pas de zoom au doigt (comme une appli installée) ; iPhone et iPad : voir src/lib/noZoom.ts -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<meta name="theme-color" content="#090909" />
<meta name="color-scheme" content="dark" />
<!-- Aucune info sur l'app n'est transmise aux sites d'images / API -->
+2 -2
View File
@@ -126,8 +126,8 @@ export default function App() {
<ToastProvider>
<SocialProvider onOpenOwnItem={openItem} onOpenSeed={openSeed}>
<SideNav current={navTab} onChange={go} onAdd={openNew} />
<div className="mx-auto min-h-dvh max-w-2xl lg:max-w-none lg:ps-60">
<main className="safe-top px-4 pb-32 lg:px-10 lg:pb-10 2xl:px-14">
<div className="mx-auto min-h-dvh max-w-2xl md:max-w-none md:ps-20 lg:ps-60">
<main className="safe-top px-4 pb-32 md:px-8 md:pb-10 lg:px-10 2xl:px-14">
{error && <p className="mt-4 rounded-xl border border-accent p-3 text-sm text-ink">{error}</p>}
{route === 'home' && <HomePage onOpen={openItem} onAdd={openNew} onNavigate={go} onRoulette={openRoulette} onCalendar={openCalendar} onOpenSeed={openSeed} />}
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
+1 -1
View File
@@ -38,7 +38,7 @@ export default function BottomNav({ current, onChange, onAdd }: Props) {
}
return (
<nav className="bottom-nav safe-bottom fixed inset-x-0 bottom-0 z-30 border-t border-line bg-bg lg:hidden">
<nav className="bottom-nav safe-bottom fixed inset-x-0 bottom-0 z-30 border-t border-line bg-bg md:hidden">
<div className="mx-auto flex max-w-2xl items-center px-2">
{ITEMS.slice(0, 2).map(button)}
<div className="flex flex-1 justify-center">
+1 -1
View File
@@ -125,7 +125,7 @@ export default function EpisodeList({ form, aired, onChange, fallbackImage }: Pr
</span>
</div>
<div ref={listRef} className="max-h-[26rem] space-y-1 overflow-y-auto lg:max-h-[60vh] pe-1">
<div ref={listRef} className="max-h-[26rem] space-y-1 overflow-y-auto md:max-h-[60vh] pe-1">
{rows.map((e) => {
const seen = e.number <= watchedHere
// Pas encore sorti : date à venir (TMDB), ou au-delà des épisodes diffusés
+6 -6
View File
@@ -145,7 +145,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
return (
<section
ref={section}
className="lg:grid lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)] lg:gap-8"
className="md:grid md:grid-cols-[minmax(0,1.15fr)_minmax(0,1fr)] md:gap-8 lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]"
aria-roledescription="carousel"
onTouchStart={(e) => {
touchX.current = e.touches[0].clientX
@@ -159,7 +159,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
if (Math.abs(dx) > 45) go(current + (dx < 0 ? 1 : -1))
}}
>
<button {...prefetchAttrs(item)} onClick={() => onOpen(item)} className="relative block aspect-video w-full overflow-hidden bg-surface-2 lg:aspect-auto lg:h-full lg:min-h-[22rem]" aria-label={t('card.open', { title: item.title })}>
<button {...prefetchAttrs(item)} onClick={() => onOpen(item)} className="relative block aspect-video w-full overflow-hidden bg-surface-2 md:aspect-auto md:h-full md:min-h-[22rem]" aria-label={t('card.open', { title: item.title })}>
{items.map((it, k) => {
const image = it.backdrop ?? it.poster
// Seules l'image affichée, la suivante (préparée) et la précédente (fondu) sont chargées
@@ -173,7 +173,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
}}
src={it.backdrop ? tmdbSized(image, 'w1280') : image}
srcSet={it.backdrop ? backdropSrcSet(image) : undefined}
sizes="(min-width: 64rem) 60vw, 100vw"
sizes="(min-width: 44rem) 60vw, 100vw"
alt=""
decoding={k === current ? 'auto' : 'async'}
fetchPriority={k === current ? 'high' : 'low'}
@@ -186,14 +186,14 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
) : null
})}
</button>
<div className="flex min-w-0 flex-col pt-4 lg:py-2">
<div className="flex min-w-0 flex-col pt-4 md:py-2">
<p className="flex flex-wrap gap-x-3 gap-y-0.5 text-sm text-ink-3">
<span className="font-medium text-accent">{state}</span>
{meta.map((m) => (
<span key={m}>{m}</span>
))}
</p>
<h2 ref={titleRef} className={cx('mt-1.5 line-clamp-2 text-[1.9rem] leading-[1.08] lg:text-[2.5rem]', twoLines && 'min-h-[2.16em]')}>{item.title}</h2>
<h2 ref={titleRef} className={cx('mt-1.5 line-clamp-2 text-[1.9rem] leading-[1.08] md:text-[2.5rem]', twoLines && 'min-h-[2.16em]')}>{item.title}</h2>
{progress && (
<div className="mt-4">
<div className="flex items-baseline justify-between gap-3 text-sm text-ink-2">
@@ -203,7 +203,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
<FilmStrip className="mt-2" done={progress.done} total={progress.total} label={t('episodes.seen', { done: progress.done, total: progress.total })} />
</div>
)}
<div className="mt-4 flex flex-wrap items-center gap-2 lg:mt-auto lg:pt-6">
<div className="mt-4 flex flex-wrap items-center gap-2 md:mt-auto md:pt-6">
{episodic && next ? (
<button
onClick={() => {
+2 -2
View File
@@ -214,7 +214,7 @@ export default function ImportWizard({ onClose }: { onClose: () => void }) {
return (
<div className="sheet sheet-in z-[60]" role="dialog" aria-modal="true" aria-label={t('import.title')}>
<header className="safe-top border-b border-line">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 lg:max-w-none lg:px-10">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 md:max-w-none md:px-10">
{step === 'input' || step === 'review' || step === 'preview' ? (
<button onClick={back} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2 rtl:-scale-x-100" aria-label={t('import.back')}>
<ArrowLeft size={21} />
@@ -230,7 +230,7 @@ export default function ImportWizard({ onClose }: { onClose: () => void }) {
</header>
<div className="sheet-scroll">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-5 lg:px-10">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-5 md:px-10">
{step === 'source' && (
<>
<p className="text-sm text-ink-2">{t('import.chooseSource')}</p>
+2 -2
View File
@@ -127,7 +127,7 @@ function ListDetail({ list, onBack, onOpen }: { list: CustomList; onBack: () =>
</ul>
</div>
) : members.length ? (
<div className="grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
<div className="grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 md:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
{members.map((item) => (
<MediaCard key={item.id} item={item} onOpen={onOpen} />
))}
@@ -186,7 +186,7 @@ export default function ListsView({ onOpen }: { onOpen: (item: MediaItem) => voi
text={t('lists.noneText')}
/>
) : (
<div className="grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
<div className="grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 md:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
{lists.map((l) => {
const members = items.filter((i) => i.listIds?.includes(l.id))
return (
+16 -10
View File
@@ -16,22 +16,28 @@ interface Props {
onAdd: () => void
}
/**
* Navigation sur grand écran. Tablette (et téléphone en paysage) : barre étroite, icône au-dessus du libellé.
* Ordinateur (à partir de 1024 px) : barre complète, logo en entier et libellés à côté des icônes.
*/
export default function SideNav({ current, onChange, onAdd }: Props) {
return (
<nav className="fixed inset-y-0 start-0 z-30 hidden w-60 flex-col border-e border-line bg-bg px-4 py-6 lg:flex">
<p className="px-2 font-bold text-[1.75rem] leading-none">
<nav className="no-scrollbar fixed inset-y-0 start-0 z-30 hidden w-20 flex-col items-center overflow-y-auto border-e border-line bg-bg pb-6 pt-[max(1.25rem,env(safe-area-inset-top))] md:flex lg:w-60 lg:items-stretch lg:px-4 lg:pt-6">
<p className="hidden px-2 text-[1.75rem] font-bold leading-none lg:block">
Bobin<span className="text-accent">oo</span>
</p>
<img src="/icons/favicon.svg" alt="Bobinoo" className="size-9 rounded-lg lg:hidden" />
<button
onClick={onAdd}
className="mt-6 flex w-full items-center justify-center gap-2 rounded-[4px] bg-accent-fill px-4 py-2.5 text-sm font-semibold text-on-accent transition active:scale-95"
aria-label={t('search.title')}
className="mt-6 grid size-12 shrink-0 place-items-center rounded-full bg-accent-fill text-on-accent transition active:scale-95 lg:flex lg:h-auto lg:w-full lg:items-center lg:justify-center lg:gap-2 lg:rounded-[4px] lg:px-4 lg:py-2.5 lg:text-sm lg:font-semibold"
>
<Search size={17} strokeWidth={2.4} />
{t('search.title')}
<Search strokeWidth={2.4} className="size-[22px] lg:size-[17px]" />
<span className="hidden lg:inline">{t('search.title')}</span>
</button>
<div className="mt-6 flex flex-col gap-1">
<div className="mt-6 flex w-full flex-col gap-1">
{ITEMS.map(({ tab, label, Icon }) => {
const active = current === tab
return (
@@ -40,12 +46,12 @@ export default function SideNav({ current, onChange, onAdd }: Props) {
onClick={() => onChange(tab)}
aria-current={active ? 'page' : undefined}
className={cx(
'flex w-full items-center gap-3 rounded-md border-s-2 px-3 py-2.5 text-sm font-medium transition-colors',
active ? 'border-accent bg-surface text-ink' : 'border-transparent text-ink-3 hover:text-ink',
'flex w-full flex-col items-center gap-1 border-s-2 px-1 py-2.5 text-[11px] font-medium transition-colors lg:flex-row lg:gap-3 lg:rounded-md lg:px-3 lg:text-sm',
active ? 'border-accent text-ink lg:bg-surface' : 'border-transparent text-ink-3 hover:text-ink',
)}
>
<Icon size={20} strokeWidth={active ? 2.2 : 1.6} />
{label}
<Icon size={20} strokeWidth={active ? 2.2 : 1.6} className="shrink-0" />
<span className="max-w-full truncate">{label}</span>
</button>
)
})}
+1 -1
View File
@@ -108,7 +108,7 @@ export default function SyncIndicator() {
return (
<div
className="pointer-events-none fixed inset-x-0 bottom-[calc(4.75rem+env(safe-area-inset-bottom))] z-20 flex justify-center px-4 lg:inset-x-auto lg:start-0 lg:bottom-5 lg:z-[31] lg:w-60 lg:justify-start"
className="pointer-events-none fixed inset-x-0 bottom-[calc(4.75rem+env(safe-area-inset-bottom))] z-20 flex justify-center px-4 md:bottom-5 md:ps-24 lg:inset-x-auto lg:start-0 lg:bottom-5 lg:ps-4 lg:z-[31] lg:w-60 lg:justify-start"
role="status"
aria-live="polite"
data-testid="sync-indicator"
+1 -1
View File
@@ -90,7 +90,7 @@ function ToastViewport({ toast, onDismiss, onShow }: { toast: ToastState | null;
role="status"
aria-live="polite"
aria-atomic="true"
className="pointer-events-none fixed inset-x-0 bottom-[calc(5.25rem+env(safe-area-inset-bottom))] z-[80] flex justify-center px-4 lg:bottom-6 lg:ps-64"
className="pointer-events-none fixed inset-x-0 bottom-[calc(5.25rem+env(safe-area-inset-bottom))] z-[80] flex justify-center px-4 md:bottom-6 md:ps-24 lg:ps-64"
>
{toast && (
<div
+4 -4
View File
@@ -31,13 +31,13 @@ function RankNumber({ rank, big }: { rank: number; big?: boolean }) {
function EmptySlot({ rank, onClick, big }: { rank: number; onClick?: () => void; big?: boolean }) {
// Top 5 d'un autre profil : simple emplacement vide
if (!onClick) return <div aria-hidden className={cx('aspect-[2/3] rounded-xl border border-dashed border-line', big ? 'w-32 lg:w-40' : 'w-full')} />
if (!onClick) return <div aria-hidden className={cx('aspect-[2/3] rounded-xl border border-dashed border-line', big ? 'w-32 md:w-40' : 'w-full')} />
return (
<button
onClick={onClick}
className={cx(
'grid aspect-[2/3] place-items-center rounded-xl border border-dashed border-line-strong text-ink-3 transition-colors active:bg-surface-2',
big ? 'w-32 lg:w-40' : 'w-full',
big ? 'w-32 md:w-40' : 'w-full',
)}
aria-label={t('top.pick', { rank })}
>
@@ -112,7 +112,7 @@ export default function TopFive({ onOpen, items: others }: { onOpen: (item: Medi
<RankNumber rank={1} big />
</span>
{first ? (
<button {...prefetchAttrs(first)} onClick={() => onOpen(first)} className="relative z-10 w-32 lg:w-40">
<button {...prefetchAttrs(first)} onClick={() => onOpen(first)} className="relative z-10 w-32 md:w-40">
<Poster src={first.poster} title={first.title} />
</button>
) : (
@@ -140,7 +140,7 @@ export default function TopFive({ onOpen, items: others }: { onOpen: (item: Medi
{/* N°2 à 5 : chiffres en contour qui dépassent derrière les affiches.
Sur grand écran, la rangée garde les proportions du mobile (affiches plus petites que le n°1). */}
<div className="mt-14 grid max-w-xl grid-cols-4 gap-x-2 lg:gap-x-4">
<div className="mt-14 grid max-w-xl grid-cols-4 gap-x-2 md:gap-x-4">
{[2, 3, 4, 5].map((rank) => {
const item = byRank.get(rank)
return (
+2 -2
View File
@@ -42,8 +42,8 @@ export default function GuestPrompt({ onSignIn, onSignUp, onClose }: { onSignIn:
/** Bandeau discret en haut de l'app en mode découverte. */
export function GuestBanner({ onSignIn }: { onSignIn: () => void }) {
return (
<div className="safe-top border-b border-line bg-surface lg:ps-60">
<div className="mx-auto flex max-w-2xl items-center gap-3 px-4 py-2 lg:max-w-none lg:px-10">
<div className="safe-top border-b border-line bg-surface md:ps-20 lg:ps-60">
<div className="mx-auto flex max-w-2xl items-center gap-3 px-4 py-2 md:max-w-none md:px-10">
<p className="min-w-0 flex-1 truncate text-xs text-ink-2">{t('guest.banner')}</p>
<button onClick={onSignIn} className="shrink-0 rounded-md bg-accent-fill px-3 py-1.5 text-xs font-semibold text-on-accent">
{t('auth.loginTab')}
+1 -1
View File
@@ -47,7 +47,7 @@ export default function SelectionBar({ selected, onDone }: Props) {
return (
<>
<div className="safe-bottom fixed inset-x-0 bottom-0 z-40 border-t border-line bg-bg lg:start-60 lg:bottom-6 lg:mx-auto lg:max-w-xl lg:rounded-2xl lg:border lg:pb-0">
<div className="safe-bottom fixed inset-x-0 bottom-0 z-40 border-t border-line bg-bg md:start-20 lg:start-60 md:bottom-6 md:mx-auto md:max-w-xl md:rounded-2xl md:border md:pb-0">
<div className="mx-auto grid max-w-2xl grid-cols-4 px-2" role="toolbar" aria-label={t('select.actions')}>
<BarButton icon={<CircleDot size={21} />} label={t('select.status')} onClick={() => setPanel('status')} disabled={none} />
<BarButton icon={<ListPlus size={21} />} label={t('select.list')} onClick={() => setPanel('list')} disabled={none} />
+8 -8
View File
@@ -92,7 +92,7 @@ export default function PersonSheet({
return (
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={name || t('person.title')}>
<header className="safe-top border-b border-line">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 lg:max-w-none lg:px-10">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 md:max-w-none md:px-10">
<button onClick={onClose} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
<ArrowLeft size={22} className="rtl:-scale-x-100" />
</button>
@@ -102,10 +102,10 @@ export default function PersonSheet({
</header>
<div className="sheet-scroll">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-6 lg:max-w-none lg:px-10">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-6 md:max-w-none md:px-10">
{/* En-tête : photo + identité */}
<div className="flex items-start gap-4 lg:gap-8">
<div className="w-28 shrink-0 lg:w-48">
<div className="flex items-start gap-4 md:gap-8">
<div className="w-28 shrink-0 md:w-48">
{photo ? (
<img src={photo} alt={name} className="aspect-[2/3] w-full rounded-xl border border-line bg-surface-2 object-cover" />
) : (
@@ -115,7 +115,7 @@ export default function PersonSheet({
)}
</div>
<div className="min-w-0 flex-1">
<h1 className="text-2xl leading-tight lg:text-5xl">{name}</h1>
<h1 className="text-2xl leading-tight md:text-5xl">{name}</h1>
{person?.department && <p className="eyebrow mt-2 text-accent">{person.department}</p>}
{life && life.length > 0 && <p className="mt-2 text-sm text-ink-2">{life.join(' · ')}</p>}
{person && library.n > 0 && (
@@ -125,14 +125,14 @@ export default function PersonSheet({
)}
{/* Biographie (bureau : à côté de la photo) */}
{person?.bio && (
<div className="mt-4 hidden max-w-3xl lg:block">
<div className="mt-4 hidden max-w-3xl md:block">
<Bio text={person.bio} open={bioOpen} onToggle={() => setBioOpen((v) => !v)} />
</div>
)}
</div>
</div>
{person?.bio && (
<div className="mt-5 lg:hidden">
<div className="mt-5 md:hidden">
<Bio text={person.bio} open={bioOpen} onToggle={() => setBioOpen((v) => !v)} />
</div>
)}
@@ -169,7 +169,7 @@ export default function PersonSheet({
{shown.length === 0 ? (
<p className="mt-8 text-center text-sm text-ink-3">{t('person.empty')}</p>
) : (
<ul className="mt-5 grid grid-cols-3 gap-x-3 gap-y-5 sm:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10">
<ul className="mt-5 grid grid-cols-3 gap-x-3 gap-y-5 sm:grid-cols-4 md:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10">
{shown.map((c) => {
const it = mine(c.result)
return (
+15 -15
View File
@@ -235,23 +235,23 @@ export default function ProfileView({ username, onClose, guest = false }: { user
) : (
<>
{/* Bannière + photo */}
<div className={cx('relative aspect-[3/1] w-full overflow-hidden bg-surface-2 lg:aspect-auto', profile.bannerUrl ? 'lg:h-[min(40vh,22rem)]' : 'lg:h-40')}>
<div className={cx('relative aspect-[3/1] w-full overflow-hidden bg-surface-2 md:aspect-auto', profile.bannerUrl ? 'md:h-[min(40vh,22rem)]' : 'md:h-40')}>
{profile.bannerUrl && <img src={profile.bannerUrl} alt="" className="size-full object-cover" />}
</div>
<div className="px-4 lg:px-10">
<div className="px-4 md:px-10">
{/* La photo chevauche la bannière ; les boutons restent en dessous (pt = partie de la photo posée sur la bannière + marge) */}
<div className="relative -mt-11 flex items-start justify-between gap-3 lg:-mt-14">
<div className="relative -mt-11 flex items-start justify-between gap-3 md:-mt-14">
<Avatar url={profile.avatarUrl} name={profile.displayName} size={88} className="border-4 border-bg" />
{profile.isMe ? (
<button onClick={social.openEdit} className="btn btn-ghost mt-[3.5rem] px-4 py-2 text-sm lg:mt-[4.25rem]">
<button onClick={social.openEdit} className="btn btn-ghost mt-[3.5rem] px-4 py-2 text-sm md:mt-[4.25rem]">
{t('social.editProfile')}
</button>
) : guest ? (
<button onClick={requestAccount} className="btn btn-primary mt-[3.5rem] px-4 py-2 text-sm lg:mt-[4.25rem]">
<button onClick={requestAccount} className="btn btn-primary mt-[3.5rem] px-4 py-2 text-sm md:mt-[4.25rem]">
<UserPlus size={15} /> {t('social.follow')}
</button>
) : (
<div className="mt-[3.5rem] flex items-center gap-1 lg:mt-[4.25rem]">
<div className="mt-[3.5rem] flex items-center gap-1 md:mt-[4.25rem]">
{blocked ? (
<button onClick={doUnblock} disabled={busy} className="btn btn-ghost px-4 py-2 text-sm">
{busy ? <Loader2 size={15} className="animate-spin" /> : <UserCheck size={15} />}
@@ -301,15 +301,15 @@ export default function ProfileView({ username, onClose, guest = false }: { user
</span>
)}
</p>
{profile.bio && <p className="mt-3 whitespace-pre-line text-sm leading-relaxed text-ink-2 lg:max-w-3xl lg:text-base">{profile.bio}</p>}
{profile.bio && <p className="mt-3 whitespace-pre-line text-sm leading-relaxed text-ink-2 md:max-w-3xl md:text-base">{profile.bio}</p>}
{blocked && (
<p className="mt-4 flex items-start gap-2.5 rounded-2xl border border-line px-4 py-3 text-sm text-ink-2 lg:max-w-2xl">
<p className="mt-4 flex items-start gap-2.5 rounded-2xl border border-line px-4 py-3 text-sm text-ink-2 md:max-w-2xl">
<Ban size={16} className="mt-0.5 shrink-0 text-accent" />
{t('block.notice')}
</p>
)}
<div className="mt-5 flex divide-x divide-line rounded-2xl border border-line py-3 lg:max-w-2xl">
<div className="mt-5 flex divide-x divide-line rounded-2xl border border-line py-3 md:max-w-2xl">
<Stat value={profile.visible ? (profile.seen ?? 0) : undefined} label={t('social.seen')} />
<Stat value={profile.followers} label={t('social.followers', { count: profile.followers })} onClick={profile.visible && !guest ? () => social.openFollowList(profile, 'followers') : undefined} />
<Stat value={profile.following} label={t('social.followingCount', { count: profile.following })} onClick={profile.visible && !guest ? () => social.openFollowList(profile, 'following') : undefined} />
@@ -330,7 +330,7 @@ export default function ProfileView({ username, onClose, guest = false }: { user
</div>
) : (
<>
<div className={cx('mt-6 grid gap-1 rounded-md border border-line p-1 lg:max-w-md', tabs.length === 3 ? 'grid-cols-3' : 'grid-cols-2')}>
<div className={cx('mt-6 grid gap-1 rounded-md border border-line p-1 md:max-w-md', tabs.length === 3 ? 'grid-cols-3' : 'grid-cols-2')}>
{tabs.map((v) => (
<button
key={v}
@@ -345,7 +345,7 @@ export default function ProfileView({ username, onClose, guest = false }: { user
<>
<ProfileTab profile={profile} topByCategory={topByCategory} onOpen={openItem} />
{guest && (
<div className="mt-10 rounded-2xl border border-line px-5 py-6 text-center lg:max-w-2xl">
<div className="mt-10 rounded-2xl border border-line px-5 py-6 text-center md:max-w-2xl">
<p className="font-semibold">{t('social.publicCtaTitle')}</p>
<p className="mx-auto mt-1 max-w-sm text-sm text-ink-3">{t('social.publicCtaText', { name: profile.displayName })}</p>
<button onClick={requestAccount} className="btn btn-primary mx-auto mt-4 flex px-5 py-2.5">
@@ -402,7 +402,7 @@ function ProfileTab({ profile, topByCategory, onOpen }: { profile: Profile; topB
{firsts.length > 0 && (
<>
<SectionTitle>{t('social.top1')}</SectionTitle>
<div className="grid grid-cols-5 gap-2 lg:grid-cols-8 lg:gap-3 xl:grid-cols-10">
<div className="grid grid-cols-5 gap-2 md:grid-cols-8 md:gap-3 xl:grid-cols-10">
{firsts.map(({ item, category }) => (
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} caption={category} />
))}
@@ -413,7 +413,7 @@ function ProfileTab({ profile, topByCategory, onOpen }: { profile: Profile; topB
{profile.watching.length > 0 && (
<>
<SectionTitle>{t('social.watching')}</SectionTitle>
<div className="grid grid-cols-4 gap-2.5 sm:grid-cols-5 lg:grid-cols-8 lg:gap-3 xl:grid-cols-10">
<div className="grid grid-cols-4 gap-2.5 sm:grid-cols-5 md:grid-cols-8 md:gap-3 xl:grid-cols-10">
{profile.watching.map((item) => (
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} />
))}
@@ -423,7 +423,7 @@ function ProfileTab({ profile, topByCategory, onOpen }: { profile: Profile; topB
<SectionTitle>{t('social.recent')}</SectionTitle>
{recent.length ? (
<div className="grid grid-cols-5 gap-2 lg:grid-cols-8 lg:gap-3 xl:grid-cols-10">
<div className="grid grid-cols-5 gap-2 md:grid-cols-8 md:gap-3 xl:grid-cols-10">
{recent.map((item) => (
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} />
))}
@@ -502,7 +502,7 @@ function LibraryTab({ profile, onOpen }: { profile: Profile; onOpen: (i: MediaIt
))}
</div>
{list.length ? (
<div className="grid grid-cols-3 gap-3 sm:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10">
<div className="grid grid-cols-3 gap-3 sm:grid-cols-4 md:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10">
{list.map((item) => (
<PosterTile key={item.id} item={item} onOpen={() => onOpen(item)} />
))}
+4 -4
View File
@@ -208,7 +208,7 @@ export function SharedListsSection() {
) : data.lists.length === 0 ? (
<p className="rounded-2xl border border-dashed border-line-strong p-4 text-sm text-ink-3">{t('shared.none')}</p>
) : (
<div className="grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
<div className="grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 md:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
{data.lists.map((l) => (
<button key={l.id} onClick={() => social.openSharedList(l.id)} className="text-start">
<PosterMosaic posters={l.posters} />
@@ -278,7 +278,7 @@ export function SharedListSheet({ id, onClose }: { id: string; onClose: () => vo
<EmptyState title={t('shared.notFound')} text={error} />
</div>
) : (
<div className="px-4 pt-5 lg:px-8">
<div className="px-4 pt-5 md:px-8">
{/* Nom + compteurs */}
<div className="flex items-start justify-between gap-3">
{renaming ? (
@@ -325,7 +325,7 @@ export function SharedListSheet({ id, onClose }: { id: string; onClose: () => vo
</button>
)}
</div>
<ul className="no-scrollbar -mx-4 flex gap-4 overflow-x-auto px-4 pb-1 lg:mx-0 lg:flex-wrap lg:px-0">
<ul className="no-scrollbar -mx-4 flex gap-4 overflow-x-auto px-4 pb-1 md:mx-0 md:flex-wrap md:px-0">
{[...accepted, ...pending].map((m) => (
<li key={m.id} className="relative w-16 shrink-0 text-center">
<button onClick={() => social.openProfile(m.username)} className="block w-full" aria-label={m.displayName}>
@@ -369,7 +369,7 @@ export function SharedListSheet({ id, onClose }: { id: string; onClose: () => vo
<EmptyState title={t('lists.emptyTitle')} text={t('shared.emptyText')} />
</div>
) : (
<div className="mt-5 grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
<div className="mt-5 grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 md:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
{list.items.map((it) => (
<SharedItemCard
key={it.externalId}
+2 -2
View File
@@ -14,7 +14,7 @@ export default function Sheet({ title, onClose, right, children, label, elevated
return (
<div className={cx('sheet sheet-in', elevated && 'z-[70]')} role="dialog" aria-modal="true" aria-label={label}>
<header className="safe-top border-b border-line">
<div className={cx('mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5', wide && 'lg:max-w-none lg:px-8')}>
<div className={cx('mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5', wide && 'md:max-w-none md:px-8')}>
<button onClick={onClose} className="grid size-10 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
<X size={22} />
</button>
@@ -23,7 +23,7 @@ export default function Sheet({ title, onClose, right, children, label, elevated
</div>
</header>
<div className="sheet-scroll">
<div className={cx('mx-auto max-w-2xl pb-[calc(6rem+env(safe-area-inset-bottom))]', wide && 'lg:max-w-none')}>{children}</div>
<div className={cx('mx-auto max-w-2xl pb-[calc(6rem+env(safe-area-inset-bottom))]', wide && 'md:max-w-none')}>{children}</div>
</div>
</div>
)
+2 -2
View File
@@ -12,7 +12,7 @@ export function StatTile({ label, value, hint }: { label: string; value: ReactNo
return (
<div className="card min-w-0 p-4">
<p className="text-xs text-ink-3">{label}</p>
<p className="mt-1.5 truncate font-bold text-[1.85rem] leading-none tabular-nums lg:text-[2.2rem]">{value}</p>
<p className="mt-1.5 truncate font-bold text-[1.85rem] leading-none tabular-nums md:text-[2.2rem]">{value}</p>
{hint && <p className="mt-0.5 truncate text-xs text-ink-2">{hint}</p>}
</div>
)
@@ -87,7 +87,7 @@ export function Columns({
/** Bloc titré de la page. */
export function Panel({ title, action, children, className }: { title: string; action?: ReactNode; children: ReactNode; className?: string }) {
return (
<section className={cx('card p-4 lg:p-5', className)}>
<section className={cx('card p-4 md:p-5', className)}>
<div className="mb-4 flex items-center justify-between gap-3">
<h2 className="eyebrow text-ink-2">{title}</h2>
{action}
+2 -2
View File
@@ -35,7 +35,7 @@ export default function StatsSettings({ onClose, initialYear }: { onClose: () =>
return (
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={t('stats.settings')}>
<header className="safe-top border-b border-line">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 lg:max-w-3xl">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 md:max-w-3xl">
<button onClick={onClose} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
<X size={22} />
</button>
@@ -45,7 +45,7 @@ export default function StatsSettings({ onClose, initialYear }: { onClose: () =>
</header>
<div className="sheet-scroll">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-5 lg:max-w-3xl">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-5 md:max-w-3xl">
<div className="flex items-center justify-between gap-3">
<h3 className="eyebrow text-ink-2">{year ? t('stats.monthByMonth', { year }) : t('stats.last12')}</h3>
<select value={year} onChange={(e) => setYear(e.target.value)} className="field w-auto py-2 pe-8 text-sm" aria-label={t('stats.period')}>
+8 -8
View File
@@ -93,12 +93,12 @@ export default function AddTitle({
]
const titleList = (list: SearchResult[]) => (
<ul className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
<ul className="divide-y divide-line md:grid md:grid-cols-2 md:gap-x-10 md:divide-y-0 xl:grid-cols-3">
{list.map((r) => {
const mine = inLibrary(r)
return (
<li key={r.externalId}>
<button data-prefetch={r.externalId} onClick={() => (mine ? onOpenItem(mine) : onPick(r))} className="flex w-full items-center gap-3 py-3 text-start active:bg-surface lg:border-b lg:border-line">
<button data-prefetch={r.externalId} onClick={() => (mine ? onOpenItem(mine) : onPick(r))} className="flex w-full items-center gap-3 py-3 text-start active:bg-surface md:border-b md:border-line">
{r.thumb ? (
<img src={r.thumb} alt="" loading="lazy" className="h-[5.25rem] w-14 shrink-0 rounded-lg border border-line bg-surface-2 object-cover" />
) : (
@@ -123,10 +123,10 @@ export default function AddTitle({
)
const personList = (list: PersonHit[]) => (
<ul className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
<ul className="divide-y divide-line md:grid md:grid-cols-2 md:gap-x-10 md:divide-y-0 xl:grid-cols-3">
{list.map((p) => (
<li key={p.id}>
<button onClick={() => onOpenPerson(p)} className="flex w-full items-center gap-3 py-2.5 text-start active:bg-surface lg:border-b lg:border-line">
<button onClick={() => onOpenPerson(p)} className="flex w-full items-center gap-3 py-2.5 text-start active:bg-surface md:border-b md:border-line">
{p.photo ? (
<img src={p.photo} alt="" loading="lazy" className="size-14 shrink-0 rounded-full border border-line bg-surface-2 object-cover" />
) : (
@@ -145,9 +145,9 @@ export default function AddTitle({
)
const memberList = (list: ProfileCard[]) => (
<div className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
<div className="divide-y divide-line md:grid md:grid-cols-2 md:gap-x-10 md:divide-y-0 xl:grid-cols-3">
{list.map((m) => (
<div key={m.id} className="lg:border-b lg:border-line">
<div key={m.id} className="md:border-b md:border-line">
{/* Les profils s'ouvrent sous les fenêtres de l'app : on referme la recherche pour que le profil soit visible */}
<PersonRow person={m} onOpen={onClose} />
</div>
@@ -176,7 +176,7 @@ export default function AddTitle({
return (
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={t('search.title')}>
<header className="safe-top border-b border-line">
<div className="mx-auto max-w-2xl px-3 pb-3 pt-2.5 lg:max-w-none lg:px-10">
<div className="mx-auto max-w-2xl px-3 pb-3 pt-2.5 md:max-w-none md:px-10">
<div className="flex items-center gap-2">
<button onClick={onClose} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
<X size={22} />
@@ -211,7 +211,7 @@ export default function AddTitle({
</header>
<div className="sheet-scroll">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-2 lg:max-w-none lg:px-10">
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-2 md:max-w-none md:px-10">
{!hasKey && (tab === 'all' || tab === 'titles' || tab === 'people') && (
<div className="mt-4 rounded-2xl border border-dashed border-line-strong p-4 text-sm text-ink-2">
{t('search.animeOnly')}
+11 -11
View File
@@ -363,7 +363,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
return (
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={title}>
<header className="safe-top border-b border-line bg-bg">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 lg:max-w-none lg:px-8">
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 md:max-w-none md:px-8">
<button onClick={onClose} className="grid size-10 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
<X size={22} />
</button>
@@ -380,7 +380,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
<div className="sheet-scroll">
{/* Grande marge en bas : rien ne reste caché sous une barre des tâches ou la barre d'accueil du téléphone */}
<div className="mx-auto max-w-2xl pb-[calc(10rem+env(safe-area-inset-bottom))] lg:max-w-none">
<div className="mx-auto max-w-2xl pb-[calc(10rem+env(safe-area-inset-bottom))] md:max-w-none">
{/* Image de scène en grand (nette sur tous les écrans), qui se fond dans le fond, avec l'affiche et le titre posés dessus */}
{heroImage ? (
<img
@@ -389,18 +389,18 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
sizes="100vw"
alt=""
// Téléphone : l'image garde son format 16/9 (avant, recadrée dans un cadre plus haut, elle était agrandie et floue)
className="hero-fade aspect-video w-full object-cover object-[center_25%] lg:aspect-auto lg:h-[72vh] lg:max-h-[48rem]"
className="hero-fade aspect-video w-full object-cover object-[center_25%] md:aspect-auto md:h-[72vh] md:max-h-[48rem]"
/>
) : (
<div className="h-6" />
)}
<div className={cx('relative flex items-end gap-4 px-4 lg:gap-8 lg:px-10', heroImage && '-mt-28 lg:-mt-64')}>
<div className="w-28 shrink-0 lg:w-52">
<div className={cx('relative flex items-end gap-4 px-4 md:gap-8 md:px-10', heroImage && '-mt-28 md:-mt-64')}>
<div className="w-28 shrink-0 md:w-52">
<Poster src={poster} title={title} />
</div>
<div className="min-w-0 flex-1 pb-1">
<h1 className="text-2xl leading-tight lg:text-5xl lg:leading-[1.05]">{title}</h1>
{data.originalTitle && <p className="mt-1 truncate text-sm text-ink-2 lg:text-base">{data.originalTitle}</p>}
<h1 className="text-2xl leading-tight md:text-5xl md:leading-[1.05]">{title}</h1>
{data.originalTitle && <p className="mt-1 truncate text-sm text-ink-2 md:text-base">{data.originalTitle}</p>}
{metaLine.length > 0 && (
<p className="mt-2 flex flex-wrap gap-x-3 gap-y-0.5 text-sm text-ink-2">
{metaLine.map((m, k) => (
@@ -409,7 +409,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
</p>
)}
{extras && extras.directors.length > 0 && (
<p className="mt-2 text-sm text-ink-2 lg:text-base">
<p className="mt-2 text-sm text-ink-2 md:text-base">
{extras.directorKind === 'director' ? t('title.directedBy') : t('title.createdBy')}{' '}
{(extras.directorPeople ?? extras.directors.map((name) => ({ name, personId: undefined }))).map((d, k) => (
<span key={d.name}>
@@ -449,8 +449,8 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
{metaError && !item && <p className="mx-4 mt-4 text-sm text-accent">{metaError}</p>}
{/* Téléphone : une colonne. Ordinateur : deux colonnes (infos à gauche, mes actions et épisodes à droite). */}
<div className="flex flex-col lg:mt-8 lg:px-6 lg:grid lg:grid-cols-[minmax(0,1fr)_28rem] xl:grid-cols-[minmax(0,1fr)_32rem] lg:items-start lg:gap-6">
<div className="order-1 lg:col-start-2 lg:row-start-1">
<div className="flex flex-col md:mt-8 md:px-6 md:grid md:grid-cols-[minmax(0,1fr)_28rem] xl:grid-cols-[minmax(0,1fr)_32rem] md:items-start md:gap-6">
<div className="order-1 md:col-start-2 md:row-start-1">
{/* Note moyenne du public */}
{source && (
<PublicRating
@@ -589,7 +589,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
</div>
<div className="order-2 min-w-0 lg:col-start-1 lg:row-start-1">
<div className="order-2 min-w-0 md:col-start-1 md:row-start-1">
{/* Mon avis */}
<section className="mx-4 mt-4">
{item?.notes ? (
+12 -1
View File
@@ -22,6 +22,10 @@
/* Voile sombre derrière les fenêtres (identique dans toutes les apparences) */
--color-scrim: rgb(0 0 0 / 0.7);
/* Grand écran dès 704 px : tablettes (iPad, Android) en portrait et en paysage, téléphones en paysage,
ordinateurs. Barre latérale étroite jusqu'à 1024 px (lg), complète au-delà. */
--breakpoint-md: 44rem;
--font-sans: 'Epilogue Variable', 'Epilogue', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
/* Coins droits partout (les classes rounded-xl / 2xl existantes suivent) ; affiches à peine arrondies */
@@ -42,6 +46,13 @@
color: var(--color-ink);
color-scheme: dark;
}
/* Pas de zoom au doigt : défilement seulement (le pincement et le double-toucher sont coupés) ;
iOS ne grossit pas non plus le texte en passant en paysage */
html {
touch-action: pan-x pan-y;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
font-family: var(--font-sans);
font-synthesis: none;
@@ -318,7 +329,7 @@
-webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
@media (min-width: 64rem) {
@media (min-width: 44rem) {
.hero-fade {
-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
-webkit-mask-composite: source-in;
+13
View File
@@ -0,0 +1,13 @@
/**
* Pas de zoom au doigt dans l'app (pincer, double-toucher) : elle doit se comporter comme une appli installée.
* - Android / Chrome : la balise viewport (maximum-scale=1, user-scalable=no) suffit.
* - iPhone / iPad : Safari ignore cette balise depuis iOS 10 ; on annule ses gestes de pincement (événements
* « gesture* », propres à Safari). Le double-toucher est déjà coupé en CSS (touch-action sur html).
* Les écrans qui gèrent eux-mêmes le pincement (recadrage de la photo de profil) passent par les événements
* « pointer », qui ne sont pas touchés : leur zoom continue de marcher.
* Le zoom d'accessibilité du système (Réglages > Accessibilité > Zoom) reste disponible.
*/
export function disablePinchZoom(): void {
const stop = (e: Event) => e.preventDefault()
for (const type of ['gesturestart', 'gesturechange', 'gestureend']) document.addEventListener(type, stop, { passive: false })
}
+4
View File
@@ -8,6 +8,7 @@ import Root from './Root'
import { applySavedTheme } from './lib/theme'
import ErrorBoundary from './components/ErrorBoundary'
import { installFriendlyNetworkErrors } from './lib/netErrors'
import { disablePinchZoom } from './lib/noZoom'
// Police embarquée dans l'app (Epilogue, variable) : aucun appel à Google Fonts, fonctionne hors-ligne
import '@fontsource-variable/epilogue/wght.css'
import './index.css'
@@ -15,6 +16,9 @@ import './index.css'
// Thème choisi (couleur + clair/sombre/étoilé) appliqué tout de suite, sans attendre le chargement de l'app
applySavedTheme()
// Pas de zoom au doigt (pincer, double-toucher), comme dans une appli installée
disablePinchZoom()
// Erreurs réseau : message traduit au lieu du texte brut du navigateur (« Load failed »…)
installFriendlyNetworkErrors()
+1 -1
View File
@@ -340,7 +340,7 @@ export default memo(function CatalogPage({ onOpen, onAdd }: Props) {
}
/>
) : (
<div className="mt-3 grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
<div className="mt-3 grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 md:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
{results.slice(0, gridCount).map((item) => (
<SelectableCard
key={item.id}
+1 -1
View File
@@ -223,7 +223,7 @@ export default memo(function HomePage({ onOpen, onAdd, onNavigate, onRoulette, o
{loading && items.length === 0 ? (
// Bibliothèque pas encore lue : la place de la bannière est réservée (rien ne saute ensuite)
<div className="aspect-video w-full bg-surface-2 lg:aspect-auto lg:h-[22rem]" aria-hidden />
<div className="aspect-video w-full bg-surface-2 md:aspect-auto md:h-[22rem]" aria-hidden />
) : items.length === 0 ? (
<>
<EmptyState
+1 -1
View File
@@ -5,7 +5,7 @@ export default function NotFoundPage({ onHome }: { onHome: () => void }) {
return (
<div className="grid min-h-[70dvh] place-items-center text-center">
<div className="max-w-md px-2">
<p aria-hidden="true" className="text-8xl font-extrabold tracking-tighter text-line-strong lg:text-9xl">
<p aria-hidden="true" className="text-8xl font-extrabold tracking-tighter text-line-strong md:text-9xl">
4<span className="text-accent">0</span>4
</p>
<h1 className="mt-5 text-2xl font-bold">{t('notFound.title')}</h1>
+3 -2
View File
@@ -142,6 +142,7 @@ function StatsBody({
return (
<div className="mt-5 space-y-4 pb-6">
{/* Les chiffres clés */}
{/* 2 par ligne sur tablette (valeurs longues comme « 3 j 14 h »), 4 sur ordinateur */}
<div className="grid grid-cols-2 gap-3 lg:grid-cols-4">
<StatTile label={t('stats.timeSpent')} value={formatDuration(s.totalMinutes)} hint={timeHint} />
<StatTile label={isFilm ? t('stats.filmsSeen') : t('stats.finished')} value={s.completed} hint={!isFilm && s.inProgress ? `${s.inProgress} · ${STATUSES[1].label}` : rewatches ? `${rewatches} · ${t('stats.rewatched')}` : undefined} />
@@ -153,11 +154,11 @@ function StatsBody({
<StatTile label={t('stats.avgRating')} value={s.avgRating ? formatRating(Math.round(s.avgRating * 10) / 10) : '—'} hint={s.ratedCount ? t('stats.rated', { count: s.ratedCount }) : undefined} />
</div>
<div className="grid gap-4 lg:grid-cols-2">
<div className="grid gap-4 md:grid-cols-2">
{/* Activité mois par mois */}
<Panel
title={year ? t('stats.monthByMonth', { year }) : t('stats.last12')}
className="lg:col-span-2"
className="md:col-span-2"
action={
<button onClick={onSettings} className="-me-2 grid size-9 place-items-center rounded-full text-ink-3 transition-colors hover:text-ink" aria-label={t('stats.settings')}>
<Settings2 size={18} />
+5 -1
View File
@@ -111,9 +111,13 @@ export default defineConfig(({ mode }) => {
theme_color: '#090909',
background_color: '#090909',
display: 'standalone',
orientation: 'portrait',
// Libre : tablettes en paysage comme en portrait (Android ignore de toute façon le verrou sur grand écran)
orientation: 'any',
// Identité stable de l'app installée (Android, Play Store) : ne plus jamais la changer
id: '/',
start_url: '.',
scope: '.',
categories: ['entertainment'],
icons: [
{ src: 'icons/icon-192.png', sizes: '192x192', type: 'image/png' },
{ src: 'icons/icon-512.png', sizes: '512x512', type: 'image/png' },