Refonte de l'interface et nouveau nom : Bobinoo
- Thème « salle de cinéma » : fond salle obscure chaud (clair = papier crème), accent ambre par défaut (l'ancien rouge par défaut passe à l'ambre, préréglage Rouge conservé), coins presque droits - Polices embarquées : Gloock (titres), Onest (texte), Sometype Mono (codes d'épisode) ; Inter retirée - Accueil : bannière en carte avec pellicule d'épisodes, billets « Reprendre » avec talon +1, jaquettes VHS pour « À voir » ; pellicule aussi sur la fiche et le revisionnage - Plus de petites capitales espacées ni de titres bicolores ; métadonnées sans points médians - Nouvelle icône (bobine), pages légales/404 et carte de partage aux nouvelles couleurs - Kino → Bobinoo partout (18 langues, PWA, pages légales) ; identifiants techniques inchangés Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
80 files changed
+697
-544
No files matched your search
+39
-13
@@ -1,16 +1,16 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { cx } from '../lib/utils'
|
||||
|
||||
/** En-tête de page : titre en gras, moitié blanc / moitié rouge. */
|
||||
export function PageHeader({ title, accent, subtitle, action }: { title: string; accent?: string; subtitle?: string; action?: ReactNode }) {
|
||||
/** En-tête de page : titre en Gloock. La partie « accent » n'est colorée que pour le logo (wordmark). */
|
||||
export function PageHeader({ title, accent, subtitle, action, wordmark }: { title: string; accent?: string; subtitle?: string; action?: ReactNode; wordmark?: boolean }) {
|
||||
return (
|
||||
<header className="flex items-end justify-between gap-3 pb-5 pt-7">
|
||||
<div className="min-w-0">
|
||||
<h1 className="text-[1.9rem] leading-tight">
|
||||
<h1 className={cx('leading-[1.05]', wordmark ? 'text-[2.15rem]' : 'text-[2rem]')}>
|
||||
{title}
|
||||
{accent && <span className="text-accent">{accent}</span>}
|
||||
{accent && <span className={wordmark ? 'text-accent' : undefined}>{accent}</span>}
|
||||
</h1>
|
||||
{subtitle && <p className="mt-1 text-sm text-ink-3">{subtitle}</p>}
|
||||
{subtitle && <p className="mt-1.5 text-sm text-ink-3">{subtitle}</p>}
|
||||
</div>
|
||||
{action}
|
||||
</header>
|
||||
@@ -21,26 +21,52 @@ export function StatTile({ label, value, hint, className }: { label: string; val
|
||||
return (
|
||||
<div className={cx('card p-4', className)}>
|
||||
<div className="eyebrow">{label}</div>
|
||||
<div className="mt-2 text-2xl font-bold leading-none tabular-nums">{value}</div>
|
||||
{hint && <div className="mt-1.5 text-xs text-ink-3">{hint}</div>}
|
||||
<div className="mt-2 font-display text-[1.85rem] leading-none tabular-nums">{value}</div>
|
||||
{hint && <div className="mt-2 text-xs text-ink-3">{hint}</div>}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** Titre de section façon Letterboxd : petites capitales grises + filet. */
|
||||
/** Titre de section : Gloock, sans capitales ni filet. */
|
||||
export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) {
|
||||
return (
|
||||
<div className="mb-4 mt-9 flex items-center justify-between gap-3 border-b border-line pb-2">
|
||||
<h2 className="eyebrow text-ink-2">{children}</h2>
|
||||
<div className="mb-3.5 mt-10 flex items-baseline justify-between gap-3">
|
||||
<h2 className="text-[1.45rem] leading-tight text-ink">{children}</h2>
|
||||
{action}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Progression en pellicule : une image par épisode (regroupées au-delà de 40), perforations en haut et en bas.
|
||||
* La pellicule reste sombre dans tous les thèmes ; les images vues prennent l'accent.
|
||||
*/
|
||||
export function FilmStrip({ done, total, label, className }: { done: number; total: number; label?: string; className?: string }) {
|
||||
if (!total) return null
|
||||
const frames = Math.min(total, 40)
|
||||
const lit = Math.round((Math.min(done, total) / total) * frames)
|
||||
return (
|
||||
<div
|
||||
role="progressbar"
|
||||
aria-valuemin={0}
|
||||
aria-valuemax={total}
|
||||
aria-valuenow={Math.min(done, total)}
|
||||
aria-label={label}
|
||||
className={cx('film-strip', className)}
|
||||
>
|
||||
<div className="grid h-full gap-[2px]" style={{ gridTemplateColumns: `repeat(${frames}, minmax(0, 1fr))` }}>
|
||||
{Array.from({ length: frames }, (_, k) => (
|
||||
<i key={k} className={k < lit ? 'bg-accent-fill' : 'bg-film-frame'} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export function LinkArrow({ onClick, children }: { onClick: () => void; children: ReactNode }) {
|
||||
return (
|
||||
<button onClick={onClick} className="shrink-0 text-xs font-medium text-ink-3 transition-colors hover:text-ink">
|
||||
{children} <span className="inline-block text-accent rtl:-scale-x-100">→</span>
|
||||
<button onClick={onClick} className="shrink-0 text-sm font-medium text-ink-2 underline-offset-4 transition-colors hover:text-ink hover:underline">
|
||||
{children}
|
||||
</button>
|
||||
)
|
||||
}
|
||||
@@ -48,7 +74,7 @@ export function LinkArrow({ onClick, children }: { onClick: () => void; children
|
||||
export function EmptyState({ title, text, action }: { title: string; text?: string; action?: ReactNode }) {
|
||||
return (
|
||||
<div className="card mt-4 flex flex-col items-center px-6 py-12 text-center">
|
||||
<p className="text-lg font-semibold">{title}</p>
|
||||
<p className="font-display text-[1.5rem] leading-tight">{title}</p>
|
||||
{text && <p className="mt-2 max-w-xs text-sm text-ink-2">{text}</p>}
|
||||
{action && <div className="mt-6">{action}</div>}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user