- 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
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# Bobinoo (ex-Kino, ex-AzuuCine) — contexte projet (lu automatiquement par Claude Code)
|
||||
|
||||
PWA de suivi de films, séries, animes, K-dramas et C-dramas. Interface en français
|
||||
(18 langues). Thème « salle obscure » chaud par défaut (clair = papier crème), accent ambre, sans dégradés. Une seule police embarquée : Inter. Accent fixe (pas de couleur au choix) ; apparences : auto / clair / sombre uniquement. Pas d'étiquettes en capitales espacées.
|
||||
(18 langues). Thème « Encre » (28 nov. 2026) : blanc pur / noir profond, une seule touche de vert d'eau (accent fixe), coins droits, filets fins, titres de section soulignés ; seul élément décoratif : le billet « Reprendre ». Police embarquée : Epilogue. Apparences : auto / clair / sombre. Pas d'étiquettes en capitales espacées.
|
||||
|
||||
## Stack
|
||||
- **Vite + React 19 + TypeScript**, **Tailwind CSS v4**, PWA (vite-plugin-pwa, service worker auto-update).
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#14120f" />
|
||||
<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 -->
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"name": "azuucine",
|
||||
"version": "2.2.0",
|
||||
"dependencies": {
|
||||
"@fontsource/inter": "^5.3.0",
|
||||
"@fontsource-variable/epilogue": "^5.3.0",
|
||||
"lucide-react": "^0.468.0",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0"
|
||||
@@ -2057,10 +2057,10 @@
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource/inter": {
|
||||
"node_modules/@fontsource-variable/epilogue": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.3.0.tgz",
|
||||
"integrity": "sha512-RofMylZmjlJEfELXeNHFWBRcSs75rGU/6bV2S2jfnvv/3rPXPGe0LgUJTklcHZ9lM4OZmAVFhcJPnACfb91A3g==",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/epilogue/-/epilogue-5.3.0.tgz",
|
||||
"integrity": "sha512-atoQ7bIqgDLX+zlxbxmYpNZ7nqkwwZczkhJhWdaX+UBZufhPWP3vrcKaLVaNcCbRyHeSoX/y/HJNGjKhewEsAg==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"audit": "npm audit --omit=dev"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/inter": "^5.3.0",
|
||||
"@fontsource-variable/epilogue": "^5.3.0",
|
||||
"lucide-react": "^0.468.0",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0"
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
<style>
|
||||
:root { color-scheme: dark; }
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; background: #14120f; color: #f1eadd; font: 16px/1.6 system-ui, -apple-system, sans-serif; text-align: center; }
|
||||
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; background: #090909; color: #f2f2f0; font: 16px/1.6 system-ui, -apple-system, sans-serif; text-align: center; }
|
||||
main { padding: 48px 20px; max-width: 520px; }
|
||||
.code { font-size: clamp(6rem, 28vw, 11rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0; color: #2f2a23; }
|
||||
.code span { color: #f0a63a; }
|
||||
.code { font-size: clamp(6rem, 28vw, 11rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0; color: #2b2b2b; }
|
||||
.code span { color: #53bfb6; }
|
||||
h1 { font-size: 1.5rem; margin: 20px 0 8px; }
|
||||
p { color: #bcb2a1; margin: 0 0 28px; }
|
||||
a.btn { display: inline-block; background: #f0a63a; color: #17130d; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 4px; }
|
||||
p { color: #c4c4c4; margin: 0 0 28px; }
|
||||
a.btn { display: inline-block; background: #53bfb6; color: #062b28; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 4px; }
|
||||
a.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
|
||||
.en { margin-top: 36px; font-size: .85rem; color: #948a79; }
|
||||
.en a { color: #f0a63a; }
|
||||
.en { margin-top: 36px; font-size: .85rem; color: #989898; }
|
||||
.en a { color: #53bfb6; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.2 KiB |
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect width="512" height="512" rx="112" fill="#14120f"/><circle cx="256" cy="256" r="172.0" fill="#f0a63a"/><circle cx="256.0" cy="164.0" r="36.0" fill="#14120f"/><circle cx="343.5" cy="227.6" r="36.0" fill="#14120f"/><circle cx="310.1" cy="330.4" r="36.0" fill="#14120f"/><circle cx="201.9" cy="330.4" r="36.0" fill="#14120f"/><circle cx="168.5" cy="227.6" r="36.0" fill="#14120f"/><circle cx="256" cy="256" r="18.0" fill="#14120f"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><rect width="512" height="512" rx="112" fill="#0d0d0d"/><circle cx="256" cy="256" r="172.0" fill="#53bfb6"/><circle cx="256.0" cy="164.0" r="36.0" fill="#0d0d0d"/><circle cx="343.5" cy="227.6" r="36.0" fill="#0d0d0d"/><circle cx="310.1" cy="330.4" r="36.0" fill="#0d0d0d"/><circle cx="201.9" cy="330.4" r="36.0" fill="#0d0d0d"/><circle cx="168.5" cy="227.6" r="36.0" fill="#0d0d0d"/><circle cx="256" cy="256" r="18.0" fill="#0d0d0d"/></svg>
|
||||
|
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 502 B |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@@ -7,16 +7,16 @@
|
||||
<meta name="robots" content="index" />
|
||||
<style>
|
||||
:root { color-scheme: dark; }
|
||||
body { margin: 0; background: #14120f; color: #f1eadd; font: 16px/1.65 system-ui, -apple-system, sans-serif; }
|
||||
body { margin: 0; background: #090909; color: #f2f2f0; font: 16px/1.65 system-ui, -apple-system, sans-serif; }
|
||||
main { max-width: 680px; margin: 0 auto; padding: 48px 20px 80px; }
|
||||
h1 { font-size: 2rem; margin: 0 0 4px; }
|
||||
h1 span { color: #f0a63a; }
|
||||
h1 span { color: #53bfb6; }
|
||||
h2 { font-size: 1.1rem; margin: 36px 0 8px; }
|
||||
h3 { font-size: 1rem; margin: 20px 0 4px; }
|
||||
p, li { color: #bcb2a1; }
|
||||
a { color: #f0a63a; }
|
||||
a:focus-visible { outline: 2px solid #f0a63a; outline-offset: 2px; }
|
||||
.muted { color: #948a79; font-size: .875rem; }
|
||||
p, li { color: #c4c4c4; }
|
||||
a { color: #53bfb6; }
|
||||
a:focus-visible { outline: 2px solid #53bfb6; outline-offset: 2px; }
|
||||
.muted { color: #989898; font-size: .875rem; }
|
||||
hr { border: 0; border-top: 1px solid #222; margin: 48px 0; }
|
||||
nav a { margin-right: 16px; }
|
||||
</style>
|
||||
@@ -58,7 +58,7 @@
|
||||
<li><strong>TMDB</strong> — <em>This product uses the TMDB API but is not endorsed or certified by TMDB.</em> Les informations et images des films et séries proviennent de <a href="https://www.themoviedb.org">The Movie Database (TMDB)</a>.</li>
|
||||
<li><strong>AniList</strong> — les informations et images des animes proviennent de <a href="https://anilist.co">AniList</a>.</li>
|
||||
<li><strong>JustWatch</strong> — les offres de streaming (« Où regarder ») proviennent de <a href="https://www.justwatch.com">JustWatch</a>, via TMDB.</li>
|
||||
<li><strong>Police Inter</strong> — Rasmus Andersson, licence SIL Open Font License 1.1.</li>
|
||||
<li><strong>Police Epilogue</strong> — Etcetera Type Co, licence SIL Open Font License 1.1.</li>
|
||||
<li><strong>Icônes Lucide</strong> — licence ISC.</li>
|
||||
<li><strong>Logiciels libres</strong> — React (MIT), Vite (MIT), Tailwind CSS (MIT), Workbox (MIT).</li>
|
||||
<li>Les affiches, images et marques des œuvres appartiennent à leurs ayants droit respectifs.</li>
|
||||
|
||||
@@ -7,20 +7,20 @@
|
||||
<meta name="robots" content="index" />
|
||||
<style>
|
||||
:root { color-scheme: dark; }
|
||||
body { margin: 0; background: #14120f; color: #f1eadd; font: 16px/1.65 system-ui, -apple-system, sans-serif; }
|
||||
body { margin: 0; background: #090909; color: #f2f2f0; font: 16px/1.65 system-ui, -apple-system, sans-serif; }
|
||||
main { max-width: 680px; margin: 0 auto; padding: 48px 20px 80px; }
|
||||
h1 { font-size: 2rem; margin: 0 0 4px; }
|
||||
h1 span { color: #f0a63a; }
|
||||
h1 span { color: #53bfb6; }
|
||||
h2 { font-size: 1.1rem; margin: 36px 0 8px; }
|
||||
p, li { color: #bcb2a1; }
|
||||
a { color: #f0a63a; }
|
||||
a:focus-visible { outline: 2px solid #f0a63a; outline-offset: 2px; }
|
||||
.muted { color: #948a79; font-size: .875rem; }
|
||||
p, li { color: #c4c4c4; }
|
||||
a { color: #53bfb6; }
|
||||
a:focus-visible { outline: 2px solid #53bfb6; outline-offset: 2px; }
|
||||
.muted { color: #989898; font-size: .875rem; }
|
||||
hr { border: 0; border-top: 1px solid #222; margin: 48px 0; }
|
||||
nav a { margin-right: 16px; }
|
||||
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
|
||||
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #222; vertical-align: top; color: #bcb2a1; }
|
||||
th { color: #f1eadd; }
|
||||
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #222; vertical-align: top; color: #c4c4c4; }
|
||||
th { color: #f2f2f0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
if (!theme) return
|
||||
document.documentElement.setAttribute('data-theme', theme)
|
||||
var meta = document.querySelector('meta[name="theme-color"]')
|
||||
if (meta) meta.setAttribute('content', theme === 'light' ? '#f1ebdf' : '#14120f')
|
||||
if (meta) meta.setAttribute('content', theme === 'light' ? '#fefdfb' : '#090909')
|
||||
var scheme = document.querySelector('meta[name="color-scheme"]')
|
||||
if (scheme) scheme.setAttribute('content', theme)
|
||||
} catch (e) {
|
||||
|
||||
@@ -98,7 +98,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
||||
|
||||
return (
|
||||
<section
|
||||
className="card overflow-hidden lg:grid lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]"
|
||||
className="lg:grid lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)] lg:gap-8"
|
||||
aria-roledescription="carousel"
|
||||
onTouchStart={(e) => (touchX.current = e.touches[0].clientX)}
|
||||
onTouchEnd={(e) => {
|
||||
@@ -129,7 +129,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
||||
) : null
|
||||
})}
|
||||
</button>
|
||||
<div className="flex min-w-0 flex-col p-4 sm:p-5 lg:p-8">
|
||||
<div className="flex min-w-0 flex-col pt-4 lg: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) => (
|
||||
|
||||
@@ -27,7 +27,7 @@ function Progress({ item }: { item: MediaItem }) {
|
||||
{size ? `/${size}` : ''}
|
||||
</div>
|
||||
{size ? (
|
||||
<div className="mt-1.5 h-1 overflow-hidden rounded-[1px] bg-film-frame">
|
||||
<div className="mt-1.5 h-1 overflow-hidden rounded-[1px] bg-line">
|
||||
<div className="h-full bg-accent-fill" style={{ width: `${pct}%` }} />
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
@@ -27,11 +27,11 @@ export function StatTile({ label, value, hint, className }: { label: string; val
|
||||
)
|
||||
}
|
||||
|
||||
/** Titre de section : gras, sans capitales ni filet. */
|
||||
/** Titre de section : texte simple souligné d'un filet noir (style « Encre »). */
|
||||
export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) {
|
||||
return (
|
||||
<div className="mb-3.5 mt-10 flex items-baseline justify-between gap-3">
|
||||
<h2 className="text-[1.3rem] leading-tight text-ink">{children}</h2>
|
||||
<div className="mb-4 mt-10 flex items-end justify-between gap-3 border-b border-ink pb-2">
|
||||
<h2 className="text-[1.15rem] font-semibold leading-tight text-ink">{children}</h2>
|
||||
{action}
|
||||
</div>
|
||||
)
|
||||
@@ -56,7 +56,7 @@ export function FilmStrip({ done, total, label, className }: { done: number; tot
|
||||
>
|
||||
<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'} />
|
||||
<i key={k} className={k < lit ? 'bg-accent-fill' : 'bg-line'} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,40 +1,34 @@
|
||||
@import 'tailwindcss';
|
||||
|
||||
/*
|
||||
* Thème Bobinoo — une salle de cinéma : fond « salle obscure » chaud (ou papier crème en clair),
|
||||
* une seule couleur d'accent, l'ambre (fixe).
|
||||
* Aplats et filets de 1px, coins presque droits (billets, jaquettes, pellicule).
|
||||
* Une seule police, Inter, pour tout.
|
||||
* Thème Bobinoo « Encre » : blanc pur et noir (ou noir profond et blanc en sombre), une seule touche
|
||||
* de vert d'eau pour les actions. Minimaliste : peu de cartes, des filets fins, coins droits.
|
||||
* Police : Epilogue (embarquée). Seul élément décoratif gardé : le billet « Reprendre ».
|
||||
*/
|
||||
@theme {
|
||||
--color-bg: #14120f;
|
||||
--color-surface: #1d1a16;
|
||||
--color-surface-2: #26221c;
|
||||
--color-line: #2f2a23;
|
||||
--color-line-strong: #453e33;
|
||||
--color-ink: #f1eadd;
|
||||
--color-ink-2: #bcb2a1;
|
||||
--color-ink-3: #948a79;
|
||||
/* Accent pour texte / icônes / filets (version plus foncée en thème clair, pour rester lisible) */
|
||||
--color-accent: #f0a63a;
|
||||
/* Accent plein (boutons) */
|
||||
--color-accent-fill: #f0a63a;
|
||||
/* Texte posé sur un bouton plein (clair ou sombre selon la couleur) */
|
||||
--color-on-accent: #17130d;
|
||||
--color-bg: #090909;
|
||||
--color-surface: #121212;
|
||||
--color-surface-2: #1b1b1b;
|
||||
--color-line: #2b2b2b;
|
||||
--color-line-strong: #424242;
|
||||
--color-ink: #f2f2f0;
|
||||
--color-ink-2: #c4c4c4;
|
||||
--color-ink-3: #989898;
|
||||
--color-accent: #53bfb6;
|
||||
--color-accent-fill: #53bfb6;
|
||||
--color-on-accent: #062b28;
|
||||
/* Voile sombre derrière les fenêtres (identique dans toutes les apparences) */
|
||||
--color-scrim: rgb(0 0 0 / 0.7);
|
||||
/* Pellicule (progression des épisodes) : sombre, et couleur papier en thème clair */
|
||||
--color-film: #0b0a08;
|
||||
--color-film-frame: #2e2820;
|
||||
|
||||
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
||||
--font-sans: 'Epilogue Variable', 'Epilogue', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
||||
|
||||
/* Coins presque droits partout (les classes rounded-xl / 2xl existantes suivent) */
|
||||
--radius-md: 0.3125rem;
|
||||
--radius-lg: 0.375rem;
|
||||
--radius-xl: 0.375rem;
|
||||
--radius-2xl: 0.5rem;
|
||||
--radius-3xl: 0.5rem;
|
||||
/* Coins droits partout (les classes rounded-xl / 2xl existantes suivent) ; affiches à peine arrondies */
|
||||
--radius-sm: 0.125rem;
|
||||
--radius-md: 0.125rem;
|
||||
--radius-lg: 0.125rem;
|
||||
--radius-xl: 0.125rem;
|
||||
--radius-2xl: 0.125rem;
|
||||
--radius-3xl: 0.125rem;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
@@ -78,33 +72,35 @@
|
||||
* Apparences (thèmes de fond). Le bloc @theme ci-dessus reste la palette SOMBRE
|
||||
* par défaut (utilitaires Tailwind bg-bg/text-ink/border-line), et « dark » est
|
||||
* donc l'apparence par défaut. On redéfinit ici UNIQUEMENT les jetons de palette
|
||||
* pour chaque apparence (l'accent compris, plus foncé en clair pour rester lisible).
|
||||
* pour chaque apparence (l'accent compris).
|
||||
*/
|
||||
:root[data-theme='light'] {
|
||||
--color-bg: #f1ebdf;
|
||||
--color-surface: #fbf7ef;
|
||||
--color-surface-2: #e9e1d2;
|
||||
--color-line: #dcd2c0;
|
||||
--color-line-strong: #c4b8a3;
|
||||
--color-ink: #1e1a15;
|
||||
--color-ink-2: #5a5246;
|
||||
--color-ink-3: #6e6557;
|
||||
--color-accent: #8f5410;
|
||||
/* Pellicule claire, couleur papier : les images vues gardent l'accent */
|
||||
--color-film: #e2d8c5;
|
||||
--color-film-frame: #cdc0a8;
|
||||
--color-bg: #fefdfb;
|
||||
--color-surface: #fefdfb;
|
||||
--color-surface-2: #f4f3f1;
|
||||
--color-line: #dbdbd8;
|
||||
--color-line-strong: #bebebb;
|
||||
--color-ink: #0d0d0d;
|
||||
--color-ink-2: #383838;
|
||||
--color-ink-3: #525252;
|
||||
--color-accent: #00746d;
|
||||
--color-accent-fill: #00746d;
|
||||
--color-on-accent: #ffffff;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] {
|
||||
--color-bg: #14120f;
|
||||
--color-surface: #1d1a16;
|
||||
--color-surface-2: #26221c;
|
||||
--color-line: #2f2a23;
|
||||
--color-line-strong: #453e33;
|
||||
--color-ink: #f1eadd;
|
||||
--color-ink-2: #bcb2a1;
|
||||
--color-ink-3: #948a79;
|
||||
--color-bg: #090909;
|
||||
--color-surface: #121212;
|
||||
--color-surface-2: #1b1b1b;
|
||||
--color-line: #2b2b2b;
|
||||
--color-line-strong: #424242;
|
||||
--color-ink: #f2f2f0;
|
||||
--color-ink-2: #c4c4c4;
|
||||
--color-ink-3: #989898;
|
||||
--color-accent: #53bfb6;
|
||||
--color-accent-fill: #53bfb6;
|
||||
--color-on-accent: #062b28;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
@@ -112,17 +108,17 @@
|
||||
claire ne doit pas voir la palette sombre le temps d'une frame. */
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root:not([data-theme]) {
|
||||
--color-bg: #f1ebdf;
|
||||
--color-surface: #fbf7ef;
|
||||
--color-surface-2: #e9e1d2;
|
||||
--color-line: #dcd2c0;
|
||||
--color-line-strong: #c4b8a3;
|
||||
--color-ink: #1e1a15;
|
||||
--color-ink-2: #5a5246;
|
||||
--color-ink-3: #6e6557;
|
||||
--color-accent: #8f5410;
|
||||
--color-film: #e2d8c5;
|
||||
--color-film-frame: #cdc0a8;
|
||||
--color-bg: #fefdfb;
|
||||
--color-surface: #fefdfb;
|
||||
--color-surface-2: #f4f3f1;
|
||||
--color-line: #dbdbd8;
|
||||
--color-line-strong: #bebebb;
|
||||
--color-ink: #0d0d0d;
|
||||
--color-ink-2: #383838;
|
||||
--color-ink-3: #525252;
|
||||
--color-accent: #00746d;
|
||||
--color-accent-fill: #00746d;
|
||||
--color-on-accent: #ffffff;
|
||||
color-scheme: light;
|
||||
}
|
||||
}
|
||||
@@ -155,7 +151,7 @@
|
||||
@apply border-ink bg-ink text-bg;
|
||||
}
|
||||
.btn {
|
||||
@apply inline-flex items-center justify-center gap-2 rounded-[4px] border border-transparent px-5 py-2.5 text-[15px] font-semibold transition-colors active:scale-[0.98] disabled:opacity-40;
|
||||
@apply inline-flex items-center justify-center gap-2 rounded-sm border border-transparent px-5 py-2.5 text-[15px] font-semibold transition-colors active:scale-[0.98] disabled:opacity-40;
|
||||
}
|
||||
.btn-primary {
|
||||
@apply bg-accent-fill text-on-accent;
|
||||
@@ -169,31 +165,12 @@
|
||||
.card {
|
||||
@apply rounded-2xl border border-line bg-surface;
|
||||
}
|
||||
/* Pellicule : bande sombre, perforations dessinées en haut et en bas */
|
||||
/* Progression des épisodes : une fine barre découpée, un segment par épisode (regroupés au-delà de 40) */
|
||||
.film-strip {
|
||||
position: relative;
|
||||
height: 29px;
|
||||
padding: 7px 6px;
|
||||
border-radius: 2px;
|
||||
background: var(--color-film);
|
||||
height: 6px;
|
||||
}
|
||||
.film-strip i {
|
||||
display: block;
|
||||
border-radius: 1px;
|
||||
}
|
||||
.film-strip::before,
|
||||
.film-strip::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset-inline: 6px;
|
||||
height: 3px;
|
||||
background: repeating-linear-gradient(90deg, var(--color-film-frame) 0 6px, transparent 6px 11px);
|
||||
}
|
||||
.film-strip::before {
|
||||
top: 2px;
|
||||
}
|
||||
.film-strip::after {
|
||||
bottom: 2px;
|
||||
}
|
||||
/* Billet « Reprendre » : talon détachable (pointillés + deux encoches) */
|
||||
.ticket-stub {
|
||||
|
||||
@@ -12,7 +12,7 @@ import { safePosterUrl } from './security'
|
||||
|
||||
const W = 1080
|
||||
const H = 1350
|
||||
const FONT = "'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
|
||||
const FONT = "'Epilogue Variable', 'Epilogue', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
|
||||
|
||||
function cssVar(name: string, fallback: string) {
|
||||
const v = getComputedStyle(document.documentElement).getPropertyValue(name).trim()
|
||||
@@ -21,14 +21,14 @@ function cssVar(name: string, fallback: string) {
|
||||
|
||||
function colors() {
|
||||
return {
|
||||
bg: '#14120f',
|
||||
surface: '#1d1a16',
|
||||
line: '#2f2a23',
|
||||
ink: '#f1eadd',
|
||||
ink2: '#bcb2a1',
|
||||
ink3: '#948a79',
|
||||
accent: cssVar('--color-accent', '#f0a63a'),
|
||||
fill: cssVar('--color-accent-fill', '#f0a63a'),
|
||||
bg: '#090909',
|
||||
surface: '#121212',
|
||||
line: '#2b2b2b',
|
||||
ink: '#f2f2f0',
|
||||
ink2: '#c4c4c4',
|
||||
ink3: '#989898',
|
||||
accent: cssVar('--color-accent', '#53bfb6'),
|
||||
fill: cssVar('--color-accent-fill', '#53bfb6'),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ function drawBrand(ctx: CanvasRenderingContext2D, y: number) {
|
||||
|
||||
async function newCanvas() {
|
||||
try {
|
||||
await Promise.all([document.fonts.load(`700 40px Inter`), document.fonts.load(`400 40px Inter`), document.fonts.load(`600 40px Inter`)])
|
||||
await Promise.all([document.fonts.load(`700 40px 'Epilogue Variable'`), document.fonts.load(`400 40px 'Epilogue Variable'`), document.fonts.load(`600 40px 'Epilogue Variable'`)])
|
||||
} catch {
|
||||
/* police système en secours */
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@ import type { ThemeMode } from '../types'
|
||||
|
||||
/** Couleur de fond de chaque apparence (barre du navigateur / de l'app installée). */
|
||||
const CANVAS: Record<Exclude<ThemeMode, 'auto'>, string> = {
|
||||
light: '#f1ebdf',
|
||||
dark: '#14120f',
|
||||
light: '#fefdfb',
|
||||
dark: '#090909',
|
||||
}
|
||||
|
||||
/** Anciennes apparences (Nuit, Étoilé) : relues comme « sombre ». */
|
||||
|
||||
@@ -8,11 +8,8 @@ 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 (Inter, jeu « latin ») : aucun appel à Google Fonts, fonctionne hors-ligne
|
||||
import '@fontsource/inter/latin-400.css'
|
||||
import '@fontsource/inter/latin-500.css'
|
||||
import '@fontsource/inter/latin-600.css'
|
||||
import '@fontsource/inter/latin-700.css'
|
||||
// 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
|
||||
|
||||
@@ -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} />
|
||||
</>
|
||||
)}
|
||||
|
||||
|
||||
@@ -94,8 +94,8 @@ export default defineConfig(({ mode }) => {
|
||||
short_name: 'Bobinoo',
|
||||
description: 'Mon journal privé de films, séries, animes et dramas',
|
||||
lang: 'fr',
|
||||
theme_color: '#14120f',
|
||||
background_color: '#14120f',
|
||||
theme_color: '#090909',
|
||||
background_color: '#090909',
|
||||
display: 'standalone',
|
||||
orientation: 'portrait',
|
||||
start_url: '.',
|
||||
|
||||