- Plus de largeur maximale centrée (max-w-5xl) à côté de la barre latérale : les pages s'étendent sur tout l'écran, avec des marges confortables. - Grilles d'affiches (catalogue, listes) : 5 à 8 colonnes selon l'écran. - Accueil : bannière à hauteur limitée et titre plus grand sur PC. - Fiche et recherche « Ajouter » en pleine largeur (résultats sur 2-3 colonnes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
6 files changed
+16
-16
No files matched your search
+2
-2
@@ -64,8 +64,8 @@ export default function App() {
|
||||
return (
|
||||
<SocialProvider onOpenOwnItem={openItem}>
|
||||
<SideNav current={navTab} onChange={go} onAdd={openNew} />
|
||||
<div className="mx-auto min-h-dvh max-w-2xl lg:max-w-5xl lg:ps-60">
|
||||
<main className="safe-top px-4 pb-32 lg:pb-10">
|
||||
<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">
|
||||
{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={() => setRoulette(true)} onCalendar={() => setCalendar(true)} />}
|
||||
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
|
||||
|
||||
@@ -75,7 +75,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
||||
if (Math.abs(dx) > 45) go(current + (dx < 0 ? 1 : -1))
|
||||
}}
|
||||
>
|
||||
<button onClick={() => onOpen(item)} className="relative block aspect-[4/3] w-full bg-surface-2 sm:aspect-video" aria-label={t('card.open', { title: item.title })}>
|
||||
<button onClick={() => onOpen(item)} className="relative block aspect-[4/3] w-full bg-surface-2 sm:aspect-video lg:aspect-auto lg:h-[min(62vh,34rem)]" aria-label={t('card.open', { title: item.title })}>
|
||||
{items.map((it, k) => {
|
||||
const image = it.backdrop ?? it.poster
|
||||
return image ? (
|
||||
@@ -94,9 +94,9 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
||||
})}
|
||||
<span className="absolute inset-0 bg-bg/50" />
|
||||
</button>
|
||||
<div className="pointer-events-none absolute inset-x-0 bottom-0 p-5">
|
||||
<div className="pointer-events-none absolute inset-x-0 bottom-0 p-5 lg:p-10">
|
||||
<p className="eyebrow text-ink-2">{item.status === 'en_cours' ? t('homeHero.continue') : t('homeHero.next')}</p>
|
||||
<h2 className="mt-1.5 line-clamp-2 text-[1.9rem] font-bold leading-[1.1]">{item.title}</h2>
|
||||
<h2 className="mt-1.5 line-clamp-2 text-[1.9rem] font-bold leading-[1.1] lg:text-5xl">{item.title}</h2>
|
||||
{meta && <p className="mt-1.5 text-xs text-ink-2">{meta}</p>}
|
||||
<div className="pointer-events-auto mt-4 flex items-center gap-2">
|
||||
{episodic && next ? (
|
||||
|
||||
@@ -155,7 +155,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">
|
||||
<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">
|
||||
{members.map((item) => (
|
||||
<MediaCard key={item.id} item={item} onOpen={onOpen} />
|
||||
))}
|
||||
@@ -213,7 +213,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">
|
||||
<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">
|
||||
{lists.map((l) => {
|
||||
const members = items.filter((i) => i.listIds?.includes(l.id))
|
||||
return (
|
||||
|
||||
@@ -71,7 +71,7 @@ export default function AddTitle({
|
||||
return (
|
||||
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={t('title.addTitle')}>
|
||||
<header className="safe-top border-b border-line">
|
||||
<div className="mx-auto max-w-2xl px-3 pb-3 pt-2.5">
|
||||
<div className="mx-auto max-w-2xl px-3 pb-3 pt-2.5 lg:max-w-none lg: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} />
|
||||
@@ -97,7 +97,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">
|
||||
<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">
|
||||
{!hasKey && (
|
||||
<div className="mt-4 rounded-2xl border border-dashed border-line-strong p-4 text-sm text-ink-2">
|
||||
{t('search.animeOnly')}
|
||||
@@ -112,12 +112,12 @@ export default function AddTitle({
|
||||
{error && <p className="mt-4 text-sm text-accent">{error}</p>}
|
||||
|
||||
{results.length > 0 && (
|
||||
<ul className="divide-y divide-line">
|
||||
<ul className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
|
||||
{results.map((r) => {
|
||||
const mine = inLibrary(r)
|
||||
return (
|
||||
<li key={r.externalId}>
|
||||
<button onClick={() => (mine ? onOpenItem(mine) : onPick(r))} className="flex w-full items-center gap-3 py-3 text-start active:bg-surface">
|
||||
<button 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">
|
||||
{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" />
|
||||
) : (
|
||||
|
||||
@@ -261,7 +261,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
||||
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-6xl">
|
||||
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 lg:max-w-none lg: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>
|
||||
@@ -278,10 +278,10 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
||||
|
||||
<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-6xl">
|
||||
<div className="mx-auto max-w-2xl pb-[calc(10rem+env(safe-area-inset-bottom))] lg:max-w-none lg:px-6">
|
||||
{/* Image de scène + affiche */}
|
||||
{(backdrop ?? extras?.backdrop) ? (
|
||||
<img src={backdrop ?? extras?.backdrop} alt="" className="aspect-[16/8] w-full border-b border-line object-cover opacity-80 lg:aspect-auto lg:h-[22rem] lg:rounded-b-2xl lg:border-x" />
|
||||
<img src={backdrop ?? extras?.backdrop} alt="" className="aspect-[16/8] w-full border-b border-line object-cover opacity-80 lg:aspect-auto lg:h-[min(50vh,28rem)] lg:rounded-b-2xl lg:border-x" />
|
||||
) : (
|
||||
<div className="h-6" />
|
||||
)}
|
||||
@@ -309,7 +309,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
||||
{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-4 lg:grid lg:grid-cols-[minmax(0,1fr)_26rem] lg:items-start lg:gap-6">
|
||||
<div className="flex flex-col lg:mt-4 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">
|
||||
{/* Note moyenne du public */}
|
||||
{source && <PublicRating average={average} votes={extras?.votes} distribution={extras?.distribution} scale={settings.ratingScale} source={source} mine={item?.rating} />}
|
||||
|
||||
@@ -225,7 +225,7 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
<div className="mt-3 grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3">
|
||||
<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">
|
||||
{results.map((item) => (
|
||||
<MediaCard key={item.id} item={item} onOpen={onOpen} />
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user