- 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
This commit is contained in:
22 files changed
+119
-154
No files matched your search
+6
-15
@@ -15,7 +15,7 @@ import type { SearchResult } from '../lib/catalogApi'
|
||||
import { CACHE_EVENT, isCaughtUp, loadAiring, needsCheck, refreshAiring, saveAiring, trackable } from '../lib/airing'
|
||||
import { useOnResume } from '../lib/onResume'
|
||||
import { calendarEvents } from '../lib/releases'
|
||||
import { cx, todayISO } from '../lib/utils'
|
||||
import { todayISO } from '../lib/utils'
|
||||
import { useMedia } from '../store'
|
||||
import type { MediaItem } from '../types'
|
||||
|
||||
@@ -29,7 +29,6 @@ interface Props {
|
||||
onCalendar: () => void
|
||||
}
|
||||
|
||||
/** Rangée d'affiches. `shelf` : jaquettes de vidéoclub, avec le titre écrit sur la tranche. */
|
||||
// Rang aléatoire par titre, tiré une fois par lancement de l'app
|
||||
const shuffle = new Map<string, number>()
|
||||
function shuffleRank(id: string): number {
|
||||
@@ -38,21 +37,13 @@ function shuffleRank(id: string): number {
|
||||
return r
|
||||
}
|
||||
|
||||
function PosterStrip({ items, onOpen, shelf }: { items: MediaItem[]; onOpen: (item: MediaItem) => void; shelf?: boolean }) {
|
||||
/** Rangée d'affiches. */
|
||||
function PosterStrip({ items, onOpen }: { items: MediaItem[]; onOpen: (item: MediaItem) => void }) {
|
||||
return (
|
||||
<div className="no-scrollbar -mx-4 flex gap-3 overflow-x-auto px-4 pb-1">
|
||||
{items.map((item) => (
|
||||
<button key={item.id} onClick={() => onOpen(item)} className={cx('shrink-0 text-start', shelf ? 'w-[8.6rem]' : 'w-32')}>
|
||||
{shelf ? (
|
||||
<span className="flex overflow-hidden rounded-[3px] bg-film">
|
||||
<span aria-hidden="true" className="code flex w-4 shrink-0 items-center justify-center overflow-hidden whitespace-nowrap py-1 text-[9px] text-ink-3 [writing-mode:vertical-rl] rotate-180">
|
||||
{item.title}
|
||||
</span>
|
||||
<Poster src={item.poster} title={item.title} className="min-w-0 flex-1 rounded-none border-0" />
|
||||
</span>
|
||||
) : (
|
||||
<Poster src={item.poster} title={item.title} />
|
||||
)}
|
||||
<button key={item.id} onClick={() => onOpen(item)} className="w-32 shrink-0 text-start">
|
||||
<Poster src={item.poster} title={item.title} />
|
||||
<p className="mt-2 truncate text-sm font-semibold leading-snug">{item.title}</p>
|
||||
<p className="flex gap-2 truncate text-xs text-ink-3">
|
||||
<span>{TYPE_BY_VALUE[item.type].label}</span>
|
||||
@@ -254,7 +245,7 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
{toWatch.length > 0 && (
|
||||
<>
|
||||
<SectionTitle action={seeAll}>{t('status.a_voir')}</SectionTitle>
|
||||
<PosterStrip items={toWatch} onOpen={onOpen} shelf />
|
||||
<PosterStrip items={toWatch} onOpen={onOpen} />
|
||||
</>
|
||||
)}
|
||||
|
||||
|
||||
Reference in new issue
Block a user