- Logo « Ki » + « no » en couleur d'accent (menu, accueil, connexion, cartes de partage). - Titre, manifeste PWA, pages légales / confidentialité / 404, textes des 18 langues, notifications push. - Noms des fichiers téléchargés : kino-sauvegarde-….json, kino-….png. - Identifiants techniques inchangés (clés de stockage, bases IndexedDB, SQL azuu_*, dossiers du VPS) pour garder les données. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
45 files changed
+242
-240
No files matched your search
@@ -178,13 +178,13 @@ function drawBrand(ctx: CanvasRenderingContext2D, y: number) {
|
||||
ctx.textBaseline = 'alphabetic'
|
||||
ctx.textAlign = 'left'
|
||||
ctx.font = `700 34px ${FONT}`
|
||||
const a = 'Azuu'
|
||||
const total = ctx.measureText('AzuuCine').width
|
||||
const a = 'Ki'
|
||||
const total = ctx.measureText('Kino').width
|
||||
const x = (W - total) / 2
|
||||
ctx.fillStyle = c.ink
|
||||
ctx.fillText(a, x, y)
|
||||
ctx.fillStyle = c.accent
|
||||
ctx.fillText('Cine', x + ctx.measureText(a).width, y)
|
||||
ctx.fillText('no', x + ctx.measureText(a).width, y)
|
||||
}
|
||||
|
||||
async function newCanvas() {
|
||||
@@ -234,7 +234,7 @@ const hiRes = (url?: string) => (url?.startsWith('https://image.tmdb.org/t/p/w34
|
||||
/**
|
||||
* Affiche d'une fiche, façon « poster minimaliste » :
|
||||
* image en haut, gros titre en capitales + année, puis une fiche technique
|
||||
* (durée, réalisation, production, casting, genres, ma note) — aux couleurs d'AzuuCine.
|
||||
* (durée, réalisation, production, casting, genres, ma note) — aux couleurs de Kino.
|
||||
*/
|
||||
export async function renderItemCard(item: MediaItem, scale: RatingScale, credits?: CardCredits): Promise<Blob> {
|
||||
const { canvas, ctx } = await newCanvas()
|
||||
@@ -351,12 +351,12 @@ export async function renderItemCard(item: MediaItem, scale: RatingScale, credit
|
||||
ctx.textAlign = 'left'
|
||||
ctx.textBaseline = 'alphabetic'
|
||||
ctx.font = `800 30px ${FONT}`
|
||||
const brandW = ctx.measureText('AzuuCine').width
|
||||
const brandW = ctx.measureText('Kino').width
|
||||
const bx = ix + iw - brandW
|
||||
ctx.fillStyle = c.ink
|
||||
ctx.fillText('Azuu', bx, fy + 11)
|
||||
ctx.fillText('Ki', bx, fy + 11)
|
||||
ctx.fillStyle = c.accent
|
||||
ctx.fillText('Cine', bx + ctx.measureText('Azuu').width, fy + 11)
|
||||
ctx.fillText('no', bx + ctx.measureText('Ki').width, fy + 11)
|
||||
|
||||
return toBlob(canvas)
|
||||
}
|
||||
@@ -461,4 +461,4 @@ export const slug = (s: string) =>
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9]+/g, '-')
|
||||
.replace(/^-|-$/g, '')
|
||||
.slice(0, 40) || 'azuucine'
|
||||
.slice(0, 40) || 'kino'
|
||||
Reference in new issue
Block a user