From 551d7ce1105ac57ecbfa820b01551e47510e0b94 Mon Sep 17 00:00:00 2001 From: Nathael Bonnal Date: Sun, 15 Nov 2026 23:56:57 +0100 Subject: [PATCH 1/3] refactor(ui): move the pixel sprites into the shared ui package --- .../src/components/pixel/pixel-sprite.tsx | 52 +------ apps/blog/src/components/pixel/sprites.ts | 147 +----------------- .../src/components/pixel/pixel-sprite.tsx | 52 +------ apps/website/src/components/pixel/sprites.ts | 147 +----------------- packages/ui/package.json | 2 + packages/ui/src/pixel/pixel-sprite.tsx | 51 ++++++ packages/ui/src/pixel/sprites.ts | 146 +++++++++++++++++ 7 files changed, 203 insertions(+), 394 deletions(-) create mode 100644 packages/ui/src/pixel/pixel-sprite.tsx create mode 100644 packages/ui/src/pixel/sprites.ts diff --git a/apps/blog/src/components/pixel/pixel-sprite.tsx b/apps/blog/src/components/pixel/pixel-sprite.tsx index 4eaccf1..50b6114 100644 --- a/apps/blog/src/components/pixel/pixel-sprite.tsx +++ b/apps/blog/src/components/pixel/pixel-sprite.tsx @@ -1,51 +1 @@ -import type { Sprite } from './sprites' - -/** - * Dessine un sprite en SVG net (crispEdges). La taille vient de la classe : le - * viewBox suit la grille, donc un pixel du sprite reste un carré parfait. - */ -export function PixelSprite({ - sprite, - className, - title, - x, - y, - width: w, - height: h, -}: { - sprite: Sprite - className?: string - /** Placement quand le sprite est imbriqué dans un autre SVG. */ - x?: number - y?: number - width?: number - height?: number - /** Sans titre, le sprite est décoratif et masqué aux lecteurs d'écran. */ - title?: string -}) { - const width = Math.max(...sprite.rows.map((r) => r.length)) - const height = sprite.rows.length - - return ( - - {sprite.rows.flatMap((row, y) => - [...row].map((char, x) => - char === '.' ? null : ( - - ), - ), - )} - - ) -} +export { PixelSprite } from '@explainer/ui/pixel/pixel-sprite' diff --git a/apps/blog/src/components/pixel/sprites.ts b/apps/blog/src/components/pixel/sprites.ts index 04a4c1c..b6df1b3 100644 --- a/apps/blog/src/components/pixel/sprites.ts +++ b/apps/blog/src/components/pixel/sprites.ts @@ -1,146 +1 @@ -/** - * Les sprites du site, dessinés à la main sur une grille. Une ligne par rangée - * de pixels, un caractère par pixel, « . » pour transparent. La palette dit - * quelle couleur prend chaque caractère. - * - * Le crabe reprend exactement public/logo.svg (9 × 9) : c'est l'unité de base - * de toute la direction artistique. - */ -export interface Sprite { - rows: string[] - palette: Record -} - -const RUST = { D: '#a83e08', O: '#f2670f', E: '#1c1917' } - -export const crab: Sprite = { - rows: [ - '.........', - '..D...D..', - '.DD...DD.', - '.D.E.E.D.', - '.DOOOOOD.', - 'OOOOOOOOO', - '.OOOOOOO.', - 'D.OOOOO.D', - '.........', - ], - palette: RUST, -} - -/** Ferriskey : une clé dorée. */ -export const key: Sprite = { - rows: [ - '.GGG.......', - 'GYYYG......', - 'GY.YGGGGGGG', - 'GYYYGYYYYYG', - '.GGG...G.GG', - '.......G.G.', - ], - palette: { G: '#b7791f', Y: '#f3b544' }, -} - -const MOD = { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' } - -/** Compass : le moteur de flux d'authentification. */ -export const compassSprite: Sprite = { - rows: ['..OOOOO..', '.O.....O.', 'O.....Y.O', 'O....YY.O', 'O...DD..O', 'O.YYD...O', 'O.Y.....O', '.O.....O.', '..OOOOO..'], - palette: MOD, -} - -/** Trident : l'authentification multi-facteurs. */ -export const tridentSprite: Sprite = { - rows: ['O...O...O', 'O...O...O', 'O...O...O', 'OO..O..OO', '.OOOOOOO.', '....O....', '....O....', '....O....', '....O....'], - palette: MOD, -} - -/** Abyss : la fédération d'identités, deux cadres qui s'emboîtent. */ -export const abyssSprite: Sprite = { - rows: ['.........', '.OOOOO...', '.O...O...', '.O..DDDDD', '.OOODO..D', '....D...D', '....D...D', '....DDDDD', '.........'], - palette: MOD, -} - -/** Aegis : le bouclier des scopes et des mappers. */ -export const aegisSprite: Sprite = { - rows: ['OOOOOOOOO', 'ODDDYDDDO', 'ODDDYDDDO', 'OYYYYYYYO', 'ODDDYDDDO', '.ODDYDDO.', '..ODYDO..', '...ODO...', '....O....'], - palette: MOD, -} - -/** SeaWatch : l'œil de l'audit. */ -export const seawatchSprite: Sprite = { - rows: ['.........', '..OOOOO..', '.O.....O.', 'O..DDD..O', 'O.DYYYD.O', 'O..DDD..O', '.O.....O.', '..OOOOO..', '.........'], - palette: MOD, -} - -/** Webhooks : l'éclair des événements. */ -export const webhooksSprite: Sprite = { - rows: ['.....OO..', '....OO...', '...OO....', '..OOOOO..', '....OO...', '...OO....', '..OO.....', '.OO......', '.........'], - palette: MOD, -} - -/** Chariot élévateur, tourné vers la droite : le mât et les fourches sont à droite. */ -export const forklift: Sprite = { - rows: [ - '.........D..', - '.........D..', - '.OOOOOO..D..', - '.OWWWWO..D..', - '.OWWWWOOOD..', - '.OOOOOOOOD..', - '.OOOOOOOODDD', - '..KKK..KKK..', - '..KKK..KKK..', - ], - palette: { O: '#f2670f', D: '#7a2d06', W: '#bcd2ff', K: '#1c1917' }, -} - -/** Camion de livraison, cabine à droite. */ -export const truck: Sprite = { - rows: [ - 'DDDDDDDDDDDDD.......', - 'DOOOOOOOOOOOD.......', - 'DOOOOOOOOOOOD.DDDD..', - 'DOOOYYYYYOOOD.DWWDD.', - 'DOOOOOOOOOOODDDWWDDD', - 'DOOOOOOOOOOODDDDDDDD', - 'DDDDDDDDDDDDDDDDDDDD', - '..KKK.......KKK.KKK.', - '..KKK.......KKK.KKK.', - ], - palette: { O: '#ffb547', D: '#7a2d06', Y: '#f2670f', W: '#bcd2ff', K: '#1c1917' }, -} - -/** Organizations : un immeuble. */ -export const orgSprite: Sprite = { - rows: ['.OOOOOOO.', '.OYOYOYO.', '.OOOOOOO.', '.OYOYOYO.', '.OOOOOOO.', '.OYOYOYO.', '.OOODOOO.', '.OOODOOO.', 'DDDDDDDDD'], - palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, -} - -/** Politiques Cedar : une feuille avec une coche. */ -export const policySprite: Sprite = { - rows: ['.OOOOOO..', '.O....OO.', '.O.OOO.O.', '.O.....O.', '.O..YY.O.', '.O.YY..O.', '.OYY...O.', '.O.....O.', '.OOOOOOO.'], - palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, -} - -/** Serveur MCP : une prise. */ -export const mcpSprite: Sprite = { - rows: ['..O...O..', '..O...O..', '.OOOOOOO.', '.OYYYYYO.', '.OYYYYYO.', '..OOOOO..', '...OOO...', '...DOD...', '...D.D...'], - palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, -} - -/** Le crabe qui dort, pour le pied de page : yeux fermés, pinces baissées. */ -export const crabAsleep: Sprite = { - rows: ['.........', '.........', '.DD...DD.', '.D.....D.', '.DOEOEOD.', 'OOOOOOOOO', '.OOOOOOO.', 'D.OOOOO.D', '.........'], - palette: { D: '#a83e08', O: '#f2670f', E: '#1c1917' }, -} - -/** Cadenas fermé, puis ouvert : l'arrivée de la clé au bout du mot. */ -export const padlockClosed: Sprite = { - rows: ['..OOO..', '.O...O.', '.O...O.', 'OOOOOOO', 'OOODOOO', 'OOODOOO', 'OOOOOOO'], - palette: { O: '#f3b544', D: '#7a2d06' }, -} -export const padlockOpen: Sprite = { - rows: ['..OOO..', '.O...O.', '.O.....', 'OOOOOOO', 'OOODOOO', 'OOODOOO', 'OOOOOOO'], - palette: { O: '#f3b544', D: '#7a2d06' }, -} +export * from '@explainer/ui/pixel/sprites' diff --git a/apps/website/src/components/pixel/pixel-sprite.tsx b/apps/website/src/components/pixel/pixel-sprite.tsx index 4eaccf1..50b6114 100644 --- a/apps/website/src/components/pixel/pixel-sprite.tsx +++ b/apps/website/src/components/pixel/pixel-sprite.tsx @@ -1,51 +1 @@ -import type { Sprite } from './sprites' - -/** - * Dessine un sprite en SVG net (crispEdges). La taille vient de la classe : le - * viewBox suit la grille, donc un pixel du sprite reste un carré parfait. - */ -export function PixelSprite({ - sprite, - className, - title, - x, - y, - width: w, - height: h, -}: { - sprite: Sprite - className?: string - /** Placement quand le sprite est imbriqué dans un autre SVG. */ - x?: number - y?: number - width?: number - height?: number - /** Sans titre, le sprite est décoratif et masqué aux lecteurs d'écran. */ - title?: string -}) { - const width = Math.max(...sprite.rows.map((r) => r.length)) - const height = sprite.rows.length - - return ( - - {sprite.rows.flatMap((row, y) => - [...row].map((char, x) => - char === '.' ? null : ( - - ), - ), - )} - - ) -} +export { PixelSprite } from '@explainer/ui/pixel/pixel-sprite' diff --git a/apps/website/src/components/pixel/sprites.ts b/apps/website/src/components/pixel/sprites.ts index 04a4c1c..b6df1b3 100644 --- a/apps/website/src/components/pixel/sprites.ts +++ b/apps/website/src/components/pixel/sprites.ts @@ -1,146 +1 @@ -/** - * Les sprites du site, dessinés à la main sur une grille. Une ligne par rangée - * de pixels, un caractère par pixel, « . » pour transparent. La palette dit - * quelle couleur prend chaque caractère. - * - * Le crabe reprend exactement public/logo.svg (9 × 9) : c'est l'unité de base - * de toute la direction artistique. - */ -export interface Sprite { - rows: string[] - palette: Record -} - -const RUST = { D: '#a83e08', O: '#f2670f', E: '#1c1917' } - -export const crab: Sprite = { - rows: [ - '.........', - '..D...D..', - '.DD...DD.', - '.D.E.E.D.', - '.DOOOOOD.', - 'OOOOOOOOO', - '.OOOOOOO.', - 'D.OOOOO.D', - '.........', - ], - palette: RUST, -} - -/** Ferriskey : une clé dorée. */ -export const key: Sprite = { - rows: [ - '.GGG.......', - 'GYYYG......', - 'GY.YGGGGGGG', - 'GYYYGYYYYYG', - '.GGG...G.GG', - '.......G.G.', - ], - palette: { G: '#b7791f', Y: '#f3b544' }, -} - -const MOD = { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' } - -/** Compass : le moteur de flux d'authentification. */ -export const compassSprite: Sprite = { - rows: ['..OOOOO..', '.O.....O.', 'O.....Y.O', 'O....YY.O', 'O...DD..O', 'O.YYD...O', 'O.Y.....O', '.O.....O.', '..OOOOO..'], - palette: MOD, -} - -/** Trident : l'authentification multi-facteurs. */ -export const tridentSprite: Sprite = { - rows: ['O...O...O', 'O...O...O', 'O...O...O', 'OO..O..OO', '.OOOOOOO.', '....O....', '....O....', '....O....', '....O....'], - palette: MOD, -} - -/** Abyss : la fédération d'identités, deux cadres qui s'emboîtent. */ -export const abyssSprite: Sprite = { - rows: ['.........', '.OOOOO...', '.O...O...', '.O..DDDDD', '.OOODO..D', '....D...D', '....D...D', '....DDDDD', '.........'], - palette: MOD, -} - -/** Aegis : le bouclier des scopes et des mappers. */ -export const aegisSprite: Sprite = { - rows: ['OOOOOOOOO', 'ODDDYDDDO', 'ODDDYDDDO', 'OYYYYYYYO', 'ODDDYDDDO', '.ODDYDDO.', '..ODYDO..', '...ODO...', '....O....'], - palette: MOD, -} - -/** SeaWatch : l'œil de l'audit. */ -export const seawatchSprite: Sprite = { - rows: ['.........', '..OOOOO..', '.O.....O.', 'O..DDD..O', 'O.DYYYD.O', 'O..DDD..O', '.O.....O.', '..OOOOO..', '.........'], - palette: MOD, -} - -/** Webhooks : l'éclair des événements. */ -export const webhooksSprite: Sprite = { - rows: ['.....OO..', '....OO...', '...OO....', '..OOOOO..', '....OO...', '...OO....', '..OO.....', '.OO......', '.........'], - palette: MOD, -} - -/** Chariot élévateur, tourné vers la droite : le mât et les fourches sont à droite. */ -export const forklift: Sprite = { - rows: [ - '.........D..', - '.........D..', - '.OOOOOO..D..', - '.OWWWWO..D..', - '.OWWWWOOOD..', - '.OOOOOOOOD..', - '.OOOOOOOODDD', - '..KKK..KKK..', - '..KKK..KKK..', - ], - palette: { O: '#f2670f', D: '#7a2d06', W: '#bcd2ff', K: '#1c1917' }, -} - -/** Camion de livraison, cabine à droite. */ -export const truck: Sprite = { - rows: [ - 'DDDDDDDDDDDDD.......', - 'DOOOOOOOOOOOD.......', - 'DOOOOOOOOOOOD.DDDD..', - 'DOOOYYYYYOOOD.DWWDD.', - 'DOOOOOOOOOOODDDWWDDD', - 'DOOOOOOOOOOODDDDDDDD', - 'DDDDDDDDDDDDDDDDDDDD', - '..KKK.......KKK.KKK.', - '..KKK.......KKK.KKK.', - ], - palette: { O: '#ffb547', D: '#7a2d06', Y: '#f2670f', W: '#bcd2ff', K: '#1c1917' }, -} - -/** Organizations : un immeuble. */ -export const orgSprite: Sprite = { - rows: ['.OOOOOOO.', '.OYOYOYO.', '.OOOOOOO.', '.OYOYOYO.', '.OOOOOOO.', '.OYOYOYO.', '.OOODOOO.', '.OOODOOO.', 'DDDDDDDDD'], - palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, -} - -/** Politiques Cedar : une feuille avec une coche. */ -export const policySprite: Sprite = { - rows: ['.OOOOOO..', '.O....OO.', '.O.OOO.O.', '.O.....O.', '.O..YY.O.', '.O.YY..O.', '.OYY...O.', '.O.....O.', '.OOOOOOO.'], - palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, -} - -/** Serveur MCP : une prise. */ -export const mcpSprite: Sprite = { - rows: ['..O...O..', '..O...O..', '.OOOOOOO.', '.OYYYYYO.', '.OYYYYYO.', '..OOOOO..', '...OOO...', '...DOD...', '...D.D...'], - palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, -} - -/** Le crabe qui dort, pour le pied de page : yeux fermés, pinces baissées. */ -export const crabAsleep: Sprite = { - rows: ['.........', '.........', '.DD...DD.', '.D.....D.', '.DOEOEOD.', 'OOOOOOOOO', '.OOOOOOO.', 'D.OOOOO.D', '.........'], - palette: { D: '#a83e08', O: '#f2670f', E: '#1c1917' }, -} - -/** Cadenas fermé, puis ouvert : l'arrivée de la clé au bout du mot. */ -export const padlockClosed: Sprite = { - rows: ['..OOO..', '.O...O.', '.O...O.', 'OOOOOOO', 'OOODOOO', 'OOODOOO', 'OOOOOOO'], - palette: { O: '#f3b544', D: '#7a2d06' }, -} -export const padlockOpen: Sprite = { - rows: ['..OOO..', '.O...O.', '.O.....', 'OOOOOOO', 'OOODOOO', 'OOODOOO', 'OOOOOOO'], - palette: { O: '#f3b544', D: '#7a2d06' }, -} +export * from '@explainer/ui/pixel/sprites' diff --git a/packages/ui/package.json b/packages/ui/package.json index e1775d7..785816f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -7,6 +7,8 @@ ".": "./src/index.ts", "./components/*": "./src/components/*.tsx", "./lib/*": "./src/lib/*.ts", + "./pixel/pixel-sprite": "./src/pixel/pixel-sprite.tsx", + "./pixel/sprites": "./src/pixel/sprites.ts", "./styles/globals.css": "./src/styles/globals.css" }, "dependencies": { diff --git a/packages/ui/src/pixel/pixel-sprite.tsx b/packages/ui/src/pixel/pixel-sprite.tsx new file mode 100644 index 0000000..4eaccf1 --- /dev/null +++ b/packages/ui/src/pixel/pixel-sprite.tsx @@ -0,0 +1,51 @@ +import type { Sprite } from './sprites' + +/** + * Dessine un sprite en SVG net (crispEdges). La taille vient de la classe : le + * viewBox suit la grille, donc un pixel du sprite reste un carré parfait. + */ +export function PixelSprite({ + sprite, + className, + title, + x, + y, + width: w, + height: h, +}: { + sprite: Sprite + className?: string + /** Placement quand le sprite est imbriqué dans un autre SVG. */ + x?: number + y?: number + width?: number + height?: number + /** Sans titre, le sprite est décoratif et masqué aux lecteurs d'écran. */ + title?: string +}) { + const width = Math.max(...sprite.rows.map((r) => r.length)) + const height = sprite.rows.length + + return ( + + {sprite.rows.flatMap((row, y) => + [...row].map((char, x) => + char === '.' ? null : ( + + ), + ), + )} + + ) +} diff --git a/packages/ui/src/pixel/sprites.ts b/packages/ui/src/pixel/sprites.ts new file mode 100644 index 0000000..04a4c1c --- /dev/null +++ b/packages/ui/src/pixel/sprites.ts @@ -0,0 +1,146 @@ +/** + * Les sprites du site, dessinés à la main sur une grille. Une ligne par rangée + * de pixels, un caractère par pixel, « . » pour transparent. La palette dit + * quelle couleur prend chaque caractère. + * + * Le crabe reprend exactement public/logo.svg (9 × 9) : c'est l'unité de base + * de toute la direction artistique. + */ +export interface Sprite { + rows: string[] + palette: Record +} + +const RUST = { D: '#a83e08', O: '#f2670f', E: '#1c1917' } + +export const crab: Sprite = { + rows: [ + '.........', + '..D...D..', + '.DD...DD.', + '.D.E.E.D.', + '.DOOOOOD.', + 'OOOOOOOOO', + '.OOOOOOO.', + 'D.OOOOO.D', + '.........', + ], + palette: RUST, +} + +/** Ferriskey : une clé dorée. */ +export const key: Sprite = { + rows: [ + '.GGG.......', + 'GYYYG......', + 'GY.YGGGGGGG', + 'GYYYGYYYYYG', + '.GGG...G.GG', + '.......G.G.', + ], + palette: { G: '#b7791f', Y: '#f3b544' }, +} + +const MOD = { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' } + +/** Compass : le moteur de flux d'authentification. */ +export const compassSprite: Sprite = { + rows: ['..OOOOO..', '.O.....O.', 'O.....Y.O', 'O....YY.O', 'O...DD..O', 'O.YYD...O', 'O.Y.....O', '.O.....O.', '..OOOOO..'], + palette: MOD, +} + +/** Trident : l'authentification multi-facteurs. */ +export const tridentSprite: Sprite = { + rows: ['O...O...O', 'O...O...O', 'O...O...O', 'OO..O..OO', '.OOOOOOO.', '....O....', '....O....', '....O....', '....O....'], + palette: MOD, +} + +/** Abyss : la fédération d'identités, deux cadres qui s'emboîtent. */ +export const abyssSprite: Sprite = { + rows: ['.........', '.OOOOO...', '.O...O...', '.O..DDDDD', '.OOODO..D', '....D...D', '....D...D', '....DDDDD', '.........'], + palette: MOD, +} + +/** Aegis : le bouclier des scopes et des mappers. */ +export const aegisSprite: Sprite = { + rows: ['OOOOOOOOO', 'ODDDYDDDO', 'ODDDYDDDO', 'OYYYYYYYO', 'ODDDYDDDO', '.ODDYDDO.', '..ODYDO..', '...ODO...', '....O....'], + palette: MOD, +} + +/** SeaWatch : l'œil de l'audit. */ +export const seawatchSprite: Sprite = { + rows: ['.........', '..OOOOO..', '.O.....O.', 'O..DDD..O', 'O.DYYYD.O', 'O..DDD..O', '.O.....O.', '..OOOOO..', '.........'], + palette: MOD, +} + +/** Webhooks : l'éclair des événements. */ +export const webhooksSprite: Sprite = { + rows: ['.....OO..', '....OO...', '...OO....', '..OOOOO..', '....OO...', '...OO....', '..OO.....', '.OO......', '.........'], + palette: MOD, +} + +/** Chariot élévateur, tourné vers la droite : le mât et les fourches sont à droite. */ +export const forklift: Sprite = { + rows: [ + '.........D..', + '.........D..', + '.OOOOOO..D..', + '.OWWWWO..D..', + '.OWWWWOOOD..', + '.OOOOOOOOD..', + '.OOOOOOOODDD', + '..KKK..KKK..', + '..KKK..KKK..', + ], + palette: { O: '#f2670f', D: '#7a2d06', W: '#bcd2ff', K: '#1c1917' }, +} + +/** Camion de livraison, cabine à droite. */ +export const truck: Sprite = { + rows: [ + 'DDDDDDDDDDDDD.......', + 'DOOOOOOOOOOOD.......', + 'DOOOOOOOOOOOD.DDDD..', + 'DOOOYYYYYOOOD.DWWDD.', + 'DOOOOOOOOOOODDDWWDDD', + 'DOOOOOOOOOOODDDDDDDD', + 'DDDDDDDDDDDDDDDDDDDD', + '..KKK.......KKK.KKK.', + '..KKK.......KKK.KKK.', + ], + palette: { O: '#ffb547', D: '#7a2d06', Y: '#f2670f', W: '#bcd2ff', K: '#1c1917' }, +} + +/** Organizations : un immeuble. */ +export const orgSprite: Sprite = { + rows: ['.OOOOOOO.', '.OYOYOYO.', '.OOOOOOO.', '.OYOYOYO.', '.OOOOOOO.', '.OYOYOYO.', '.OOODOOO.', '.OOODOOO.', 'DDDDDDDDD'], + palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, +} + +/** Politiques Cedar : une feuille avec une coche. */ +export const policySprite: Sprite = { + rows: ['.OOOOOO..', '.O....OO.', '.O.OOO.O.', '.O.....O.', '.O..YY.O.', '.O.YY..O.', '.OYY...O.', '.O.....O.', '.OOOOOOO.'], + palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, +} + +/** Serveur MCP : une prise. */ +export const mcpSprite: Sprite = { + rows: ['..O...O..', '..O...O..', '.OOOOOOO.', '.OYYYYYO.', '.OYYYYYO.', '..OOOOO..', '...OOO...', '...DOD...', '...D.D...'], + palette: { O: '#3b6cf0', D: '#1e3a8a', Y: '#bcd2ff' }, +} + +/** Le crabe qui dort, pour le pied de page : yeux fermés, pinces baissées. */ +export const crabAsleep: Sprite = { + rows: ['.........', '.........', '.DD...DD.', '.D.....D.', '.DOEOEOD.', 'OOOOOOOOO', '.OOOOOOO.', 'D.OOOOO.D', '.........'], + palette: { D: '#a83e08', O: '#f2670f', E: '#1c1917' }, +} + +/** Cadenas fermé, puis ouvert : l'arrivée de la clé au bout du mot. */ +export const padlockClosed: Sprite = { + rows: ['..OOO..', '.O...O.', '.O...O.', 'OOOOOOO', 'OOODOOO', 'OOODOOO', 'OOOOOOO'], + palette: { O: '#f3b544', D: '#7a2d06' }, +} +export const padlockOpen: Sprite = { + rows: ['..OOO..', '.O...O.', '.O.....', 'OOOOOOO', 'OOODOOO', 'OOODOOO', 'OOOOOOO'], + palette: { O: '#f3b544', D: '#7a2d06' }, +} From 539f7026fe6ac509484dcccabb12012be5db9f85 Mon Sep 17 00:00:00 2001 From: Nathael Bonnal Date: Sun, 15 Nov 2026 23:58:00 +0100 Subject: [PATCH 2/3] feat(ui): share the blog footer with the website and docs --- apps/blog/src/i18n/ui.ts | 8 - apps/blog/src/layouts/base.astro | 6 +- apps/docs/src/layouts/base.astro | 8 + apps/docs/src/layouts/docs.astro | 4 + apps/website/src/components/site-footer.astro | 231 ------------------ apps/website/src/i18n/ui.ts | 6 - apps/website/src/pages/404.astro | 7 +- apps/website/src/pages/index.astro | 5 +- apps/website/src/pages/modules/[module].astro | 4 +- apps/website/src/pages/modules/index.astro | 4 +- apps/website/src/pages/release-notes.astro | 5 +- packages/ui/package.json | 1 + .../ui}/src/components/site-footer.astro | 46 ++-- packages/ui/src/lib/footer.ts | 24 ++ 14 files changed, 74 insertions(+), 285 deletions(-) delete mode 100644 apps/website/src/components/site-footer.astro rename {apps/blog => packages/ui}/src/components/site-footer.astro (82%) create mode 100644 packages/ui/src/lib/footer.ts diff --git a/apps/blog/src/i18n/ui.ts b/apps/blog/src/i18n/ui.ts index 04c0980..fd5ec2a 100644 --- a/apps/blog/src/i18n/ui.ts +++ b/apps/blog/src/i18n/ui.ts @@ -16,10 +16,6 @@ export const ui = { 'rss.title': 'Explainer Blog', 'rss.description': 'Latest articles from the Explainer blog', - // Footer - 'footer.text': '© 2025 Ferriskey · Apache 2.0', - 'footer.tagline': 'Open-source identity and access management, written in Rust.', - // Post layout 'post.back': 'Back to writing', 'post.published': 'Published', @@ -65,10 +61,6 @@ export const ui = { 'rss.title': 'Blog Explainer', 'rss.description': 'Les derniers articles du blog Explainer', - // Footer - 'footer.text': '© 2025 Ferriskey · Apache 2.0', - 'footer.tagline': 'Gestion des identités et des accès open source, écrite en Rust.', - // Post layout 'post.back': "Retour aux articles", 'post.published': 'Publié le', diff --git a/apps/blog/src/layouts/base.astro b/apps/blog/src/layouts/base.astro index a777ddb..936acb5 100644 --- a/apps/blog/src/layouts/base.astro +++ b/apps/blog/src/layouts/base.astro @@ -2,8 +2,7 @@ import '../styles/globals.css' import { ClientRouter } from 'astro:transitions' import { BlogNavbar } from '../components/blog-navbar' -import SiteFooter from '../components/site-footer.astro' -import { useTranslations } from '../i18n/utils' +import SiteFooter from '@explainer/ui/components/site-footer.astro' interface Props { title: string @@ -15,7 +14,6 @@ interface Props { } const { title, description = 'The FerrisKey blog: identity, security and Rust.', thumbnail, locale = 'en', locales = ['en'], localeSwitchUrls = {} } = Astro.props -const t = useTranslations(locale) const thumbnailPath = thumbnail ?? `${Astro.url.pathname.replace(/\/$/, '')}/thumbnail.png` // og:image/twitter:image must be absolute: Discord and most link-preview bots won't resolve a relative path. const thumbnailUrl = Astro.site ? new URL(thumbnailPath, Astro.site).toString() : thumbnailPath @@ -64,6 +62,6 @@ const appUrlOverrides = {
- + diff --git a/apps/docs/src/layouts/base.astro b/apps/docs/src/layouts/base.astro index 9b1dc12..41b20f6 100644 --- a/apps/docs/src/layouts/base.astro +++ b/apps/docs/src/layouts/base.astro @@ -1,6 +1,7 @@ --- import '../styles/globals.css' import { ClientRouter } from 'astro:transitions' +import SiteFooter from '@explainer/ui/components/site-footer.astro' interface Props { title: string @@ -8,6 +9,12 @@ interface Props { } const { title, description } = Astro.props + +const appUrlOverrides = { + website: import.meta.env.PUBLIC_WEBSITE_URL, + docs: import.meta.env.PUBLIC_DOCS_URL, + blog: import.meta.env.PUBLIC_BLOG_URL, +} --- @@ -42,5 +49,6 @@ const { title, description } = Astro.props + diff --git a/apps/docs/src/layouts/docs.astro b/apps/docs/src/layouts/docs.astro index f4756f4..d03797d 100644 --- a/apps/docs/src/layouts/docs.astro +++ b/apps/docs/src/layouts/docs.astro @@ -6,6 +6,7 @@ import { Sidebar } from '../components/sidebar' import { TableOfContents, type TocHeading } from '../components/toc' import { fetchContributors, sortContributors } from '@explainer/ui' import { Pagination } from '../components/pagination' +import SiteFooter from '@explainer/ui/components/site-footer.astro' import type { NavItem, ProjectInfo, BreadcrumbItem } from '../lib/docs' interface Props { @@ -164,5 +165,8 @@ const appUrlOverrides = { +
+ +
diff --git a/apps/website/src/components/site-footer.astro b/apps/website/src/components/site-footer.astro deleted file mode 100644 index 6cc896b..0000000 --- a/apps/website/src/components/site-footer.astro +++ /dev/null @@ -1,231 +0,0 @@ ---- -import { PixelSprite } from './pixel/pixel-sprite' -import { crab, crabAsleep } from './pixel/sprites' - -interface Props { - docsHref?: string - blogHref?: string -} -const { docsHref = '/', blogHref = '/' } = Astro.props - -const columns = [ - { - key: 'footer.product', - title: 'Product', - links: [ - { label: 'Documentation', href: docsHref }, - { label: 'Release notes', href: '/release-notes' }, - { label: 'Roadmap', href: 'https://github.com/orgs/ferriskey/projects/1' }, - ], - }, - { - key: 'footer.community', - title: 'Community', - links: [ - { label: 'GitHub', href: 'https://github.com/ferriskey/ferriskey' }, - { label: 'Discussions', href: 'https://github.com/ferriskey/ferriskey/discussions' }, - { label: 'Contributing', href: 'https://github.com/ferriskey/ferriskey/blob/main/CONTRIBUTING.md' }, - ], - }, - { - key: 'footer.project', - title: 'Project', - links: [ - { label: 'Blog', href: blogHref }, - { label: 'Governance', href: 'https://github.com/ferriskey/ferriskey/blob/main/GOVERNANCE.md' }, - { label: 'Security', href: 'https://github.com/ferriskey/ferriskey/blob/main/SECURITY.md' }, - ], - }, -] - -// « FerrisKey » en caisses : une grille de 49 × 9, une caisse par pixel allumé. -const GLYPHS: Record = { - F: { top: 0, rows: ['11111', '10000', '10000', '11110', '10000', '10000', '10000'] }, - K: { top: 0, rows: ['10001', '10010', '10100', '11000', '10100', '10010', '10001'] }, - e: { top: 2, rows: ['01110', '10001', '11111', '10000', '01110'] }, - r: { top: 2, rows: ['10110', '11001', '10000', '10000', '10000'] }, - i: { top: 0, rows: ['1', '0', '1', '1', '1', '1', '1'] }, - s: { top: 2, rows: ['01111', '10000', '01110', '00001', '11110'] }, - y: { top: 2, rows: ['10001', '10001', '10001', '01111', '00001', '00001', '01110'] }, -} -const WORD = 'FerrisKey' -const crates: { x: number; y: number }[] = [] -let cursor = 0 -for (const ch of WORD) { - const g = GLYPHS[ch] - g.rows.forEach((row, r) => { - row.split('').forEach((v, c) => { - if (v === '1') crates.push({ x: cursor + c, y: g.top + r }) - }) - }) - cursor += g.rows[0].length + 1 -} -const COLS = cursor - 1 -const ROWS = 9 -const RAIL = -6 -const DROP_FROM = -4.6 -const COL_STEP = 0.07 -const ROW_STEP = 0.035 -const SWEEP = (COLS - 1) * COL_STEP -const cells = crates.map((c) => ({ - ...c, - dy: DROP_FROM - c.y, - delay: +(c.x * COL_STEP + (ROWS - 1 - c.y) * ROW_STEP).toFixed(3), -})) ---- - -
-
- - -

- © 2025 Ferriskey · Apache 2.0 - Fait en Rust -

- - -
-
- - - - - - - - - - - - - - - - - - - - - - - {cells.map((c) => ( - - - - - - ))} - - - -
-
-
-
- - - - diff --git a/apps/website/src/i18n/ui.ts b/apps/website/src/i18n/ui.ts index f11a3b0..0ecc96c 100644 --- a/apps/website/src/i18n/ui.ts +++ b/apps/website/src/i18n/ui.ts @@ -2,9 +2,6 @@ export const defaultLang = 'en' as const export const ui = { en: { - // Footer - 'footer.text': '© 2025 Ferriskey · Apache 2.0', - // Nav 'nav.features': 'Features', 'nav.modules': 'Modules', @@ -302,9 +299,6 @@ export const ui = { 'cta.github': 'View on GitHub', }, fr: { - // Footer - 'footer.text': '© 2025 Ferriskey · Apache 2.0', - // Nav 'nav.features': 'Fonctionnalités', 'nav.modules': 'Modules', diff --git a/apps/website/src/pages/404.astro b/apps/website/src/pages/404.astro index 393b2e3..303bd59 100644 --- a/apps/website/src/pages/404.astro +++ b/apps/website/src/pages/404.astro @@ -1,6 +1,7 @@ --- import Base from '../layouts/base.astro' import { WebsiteNavbar } from '../components/website-navbar' +import SiteFooter from '@explainer/ui/components/site-footer.astro' const appUrlOverrides = { website: import.meta.env.PUBLIC_WEBSITE_URL, @@ -26,9 +27,5 @@ const appUrlOverrides = { -
-
- © 2025 Ferriskey · Apache 2.0 -
-
+ diff --git a/apps/website/src/pages/index.astro b/apps/website/src/pages/index.astro index d13bfaa..a879a76 100644 --- a/apps/website/src/pages/index.astro +++ b/apps/website/src/pages/index.astro @@ -6,7 +6,7 @@ import UseCasesSection from '../components/use-cases-section.astro' import CapabilitiesSection from '../components/capabilities-section.astro' import ProblemsSection from '../components/problems-section.astro' import CommunitySection from '../components/community-section.astro' -import SiteFooter from '../components/site-footer.astro' +import SiteFooter from '@explainer/ui/components/site-footer.astro' import UiShowcaseSection from '../components/ui-showcase-section.astro' import CoreTeamSection from '../components/core-team-section.astro' import SponsorsSection from '../components/sponsors-section.astro' @@ -22,7 +22,6 @@ const appUrlOverrides = { } const docsHref = `${appUrlOverrides.docs ?? ''}/en/discover/getting-started` -const blogHref = appUrlOverrides.blog ?? '/' const translations = ui.fr const thumbnails = { en: '/thumbnail.png', fr: '/thumbnails/fr/thumbnail.png' } --- @@ -41,7 +40,7 @@ const thumbnails = { en: '/thumbnail.png', fr: '/thumbnails/fr/thumbnail.png' } - + diff --git a/apps/website/src/lib/legal.ts b/apps/website/src/lib/legal.ts new file mode 100644 index 0000000..fbf5f1a --- /dev/null +++ b/apps/website/src/lib/legal.ts @@ -0,0 +1,26 @@ +import { contactEmail } from '@explainer/ui/lib/footer' + +/** `null` = information still missing: the page shows a visible placeholder until it is filled in. */ +type Field = string | null + +/** + * FerrisKey has no legal entity yet: the site is published by a natural person acting on a + * non-professional basis (LCEN art. 1-1, III), who may withhold their home address and phone. + */ +export const publisher = { + name: 'Nathaël Bonnal' as Field, + email: contactEmail, +} + +export const host = { + name: 'OVH SAS (OVHcloud)' as Field, + address: '2 rue Kellermann, 59100 Roubaix, France' as Field, + phone: '+33 9 72 10 10 07' as Field, +} + +export const retention = { + serverLogs: { fr: '12 mois' as Field, en: '12 months' as Field }, + emails: { fr: '3 ans après le dernier échange', en: '3 years after the last exchange' }, +} + +export const lastUpdated = '2026-11-15' diff --git a/apps/website/src/pages/legal.astro b/apps/website/src/pages/legal.astro new file mode 100644 index 0000000..dd1b179 --- /dev/null +++ b/apps/website/src/pages/legal.astro @@ -0,0 +1,105 @@ +--- +import Legal from '../layouts/legal.astro' +import V from '../components/legal-value.astro' +import { host, publisher } from '../lib/legal' +--- + + + +

+ Conformément à l'article 1-1 de la loi n° 2004-575 du 21 juin 2004 pour la confiance dans l'économie numérique (LCEN), voici les + informations relatives à l'éditeur et à l'hébergeur des sites ferriskey.rs, docs.ferriskey.rs et blog.ferriskey.rs. +

+ +

Éditeur du site

+

+ FerrisKey est un projet open source sans structure juridique. Le site est édité à titre non professionnel par + , conformément à l'article 1-1, III de la LCEN. Ses coordonnées personnelles ont été + communiquées à l'hébergeur. +

+
+
Email
{publisher.email}
+
+ +

Directeur de la publication

+

+ +

Hébergement

+
+
Hébergeur
+
Adresse
+
Téléphone
+
+ +

Propriété intellectuelle

+

+ Le logiciel FerrisKey est distribué sous licence Apache 2.0. + Son code source est disponible sur GitHub. +

+

+ Sauf mention contraire, les textes, illustrations et éléments graphiques de ce site appartiennent à l'équipe FerrisKey. Les logos des sponsors + et partenaires restent la propriété de leurs titulaires respectifs. Les avatars des contributeurs appartiennent à leurs auteurs. +

+ +

Liens externes

+

+ Ce site contient des liens vers des sites tiers (GitHub, réseaux sociaux, sites des partenaires). L'éditeur n'a aucun contrôle sur + leur contenu et décline toute responsabilité à leur égard. +

+ +

Données personnelles

+

Le traitement des données personnelles est décrit dans la politique de confidentialité.

+ +

Droit applicable

+

Les présentes mentions légales sont soumises au droit français.

+
+ + +

+ In accordance with article 1-1 of French law no. 2004-575 of 21 June 2004 on confidence in the digital economy (LCEN), here is the + information about the publisher and the hosting provider of ferriskey.rs, docs.ferriskey.rs and blog.ferriskey.rs. +

+ +

Publisher

+

+ FerrisKey is an open-source project with no legal entity. The site is published on a non-professional basis by + , under article 1-1, III of the LCEN. Their personal details have been provided to the + hosting provider. +

+
+
Email
{publisher.email}
+
+ +

Publication director

+

+ +

Hosting

+
+
Hosting provider
+
Address
+
Phone
+
+ +

Intellectual property

+

+ The FerrisKey software is distributed under the Apache 2.0 license. + Its source code is available on GitHub. +

+

+ Unless stated otherwise, the texts, illustrations and graphic elements of this site belong to the FerrisKey team. Sponsor and partner logos + remain the property of their respective owners. Contributor avatars belong to their authors. +

+ +

External links

+

+ This site links to third-party sites (GitHub, social networks, partner sites). The publisher has no control over their content and + accepts no responsibility for it. +

+ +

Personal data

+

How personal data is processed is described in the privacy policy.

+ +

Governing law

+

This legal notice is governed by French law.

+
+
diff --git a/apps/website/src/pages/privacy.astro b/apps/website/src/pages/privacy.astro new file mode 100644 index 0000000..d4b7ace --- /dev/null +++ b/apps/website/src/pages/privacy.astro @@ -0,0 +1,187 @@ +--- +import Legal from '../layouts/legal.astro' +import V from '../components/legal-value.astro' +import { publisher, retention } from '../lib/legal' +--- + + + +

+ Cette politique décrit les données personnelles traitées lors de la visite de ferriskey.rs, docs.ferriskey.rs et blog.ferriskey.rs, + conformément au Règlement général sur la protection des données (RGPD) et à la loi Informatique et Libertés. +

+

+ Le site n'a pas de compte utilisateur, pas de formulaire, pas de mesure d'audience et pas de publicité. Les données traitées se + limitent à ce qui est décrit ci-dessous. +

+ +

Responsable du traitement

+

+ , éditeur du site à titre non professionnel. Contact : + {publisher.email}. +

+ +

Données traitées

+ +

Journaux techniques du serveur

+
    +
  • Données : adresse IP, date et heure, page demandée, code de réponse, navigateur (user agent), page d'origine.
  • +
  • Finalité : faire fonctionner le site, le sécuriser et diagnostiquer les incidents.
  • +
  • Base légale : intérêt légitime de l'éditeur (article 6.1.f du RGPD).
  • +
  • Durée de conservation : .
  • +
+ +

Emails envoyés à l'adresse de contact

+
    +
  • Données : adresse email, nom, contenu du message et toute information que vous choisissez d'y mettre.
  • +
  • Finalité : répondre à votre demande.
  • +
  • Base légale : intérêt légitime de l'éditeur à répondre aux messages reçus (article 6.1.f du RGPD).
  • +
  • Durée de conservation : .
  • +
+ +

Contributeurs affichés

+
    +
  • + Données : identifiant GitHub, avatar, lien vers le profil et nombre de contributions, issus de l'API publique de + GitHub au moment de la génération du site. +
  • +
  • Finalité : reconnaître publiquement les personnes qui contribuent au projet open source.
  • +
  • Base légale : intérêt légitime de l'éditeur (article 6.1.f du RGPD).
  • +
  • + Durée de conservation : tant que la contribution existe dans le dépôt public. Vous pouvez demander à ne plus + apparaître en écrivant à l'adresse de contact. +
  • +
+ +

Cookies et stockage local

+

Le site dépose seulement les deux éléments suivants. Ils gardent un choix que vous avez fait et ne servent pas à vous suivre :

+
    +
  • Cookie locale : la langue choisie (français ou anglais). Durée : 12 mois.
  • +
  • Stockage local theme : le thème choisi (clair, sombre ou système). Durée : jusqu'à ce que vous vidiez les données du navigateur.
  • +
+

+ Ces traceurs sont exemptés de consentement selon les lignes directrices de la CNIL. C'est pour cela que le site n'affiche pas de + bandeau cookies. Les boutons de partage du blog sont de simples liens : ils ne chargent aucun script des réseaux sociaux. +

+ +

Services tiers

+

+ Les avatars des contributeurs sont chargés depuis avatars.githubusercontent.com, un service de GitHub, Inc. (États-Unis). + Quand votre navigateur affiche ces images, GitHub reçoit votre adresse IP et votre user agent. GitHub est certifié dans le cadre du + Data Privacy Framework UE–États-Unis, qui + encadre ce transfert. Voir la + déclaration de confidentialité de GitHub. +

+

Les polices et tous les autres fichiers du site sont servis depuis nos propres serveurs.

+ +

Destinataires

+

+ Les données sont accessibles uniquement à l'équipe FerrisKey et à l'hébergeur du site, qui agit comme sous-traitant. Elles ne sont + jamais vendues ni utilisées à des fins publicitaires. +

+ +

Vos droits

+

+ Vous disposez d'un droit d'accès, de rectification, d'effacement, de limitation, d'opposition et de portabilité sur vos données. Pour + les exercer, écrivez à {publisher.email}. Nous répondons dans un délai d'un mois. +

+

+ Si vous estimez que vos droits ne sont pas respectés, vous pouvez adresser une réclamation à la CNIL : + cnil.fr/fr/plaintes, ou 3 place de Fontenoy, + TSA 80715, 75334 Paris Cedex 07. +

+ +

Modifications

+

Cette politique peut évoluer. La date de dernière mise à jour figure en haut de la page.

+
+ + +

+ This policy describes the personal data processed when you visit ferriskey.rs, docs.ferriskey.rs and blog.ferriskey.rs, in + accordance with the General Data Protection Regulation (GDPR) and the French Data Protection Act. +

+

+ The site has no user accounts, no forms, no audience measurement and no advertising. The data processed is limited to what is + described below. +

+ +

Data controller

+

+ , publisher of the site on a non-professional basis. Contact: + {publisher.email}. +

+ +

Data processed

+ +

Server logs

+
    +
  • Data: IP address, date and time, requested page, response code, browser (user agent), referring page.
  • +
  • Purpose: running the site, securing it and diagnosing incidents.
  • +
  • Legal basis: legitimate interest of the publisher (GDPR article 6.1.f).
  • +
  • Retention: .
  • +
+ +

Emails sent to the contact address

+
    +
  • Data: email address, name, message content and any information you choose to include.
  • +
  • Purpose: answering your request.
  • +
  • Legal basis: legitimate interest of the publisher in answering the messages it receives (GDPR article 6.1.f).
  • +
  • Retention: .
  • +
+ +

Displayed contributors

+
    +
  • + Data: GitHub username, avatar, profile link and contribution count, taken from the public GitHub API when the site + is built. +
  • +
  • Purpose: publicly acknowledging the people who contribute to the open-source project.
  • +
  • Legal basis: legitimate interest of the publisher (GDPR article 6.1.f).
  • +
  • + Retention: as long as the contribution exists in the public repository. You can ask to be removed by writing to the + contact address. +
  • +
+ +

Cookies and local storage

+

The site only stores the following two items. They keep a choice you made and are not used to track you:

+
    +
  • locale cookie: the chosen language (French or English). Lifetime: 12 months.
  • +
  • theme local storage: the chosen theme (light, dark or system). Lifetime: until you clear your browser data.
  • +
+

+ These items are exempt from consent under the CNIL guidelines, which is why the site shows no cookie banner. The blog's share buttons + are plain links: they load no social network script. +

+ +

Third-party services

+

+ Contributor avatars are loaded from avatars.githubusercontent.com, a service of GitHub, Inc. (United States). When your + browser displays these images, GitHub receives your IP address and user agent. GitHub is certified under the + EU–US Data Privacy Framework, which covers + this transfer. See the + GitHub privacy statement. +

+

Fonts and every other file of the site are served from our own servers.

+ +

Recipients

+

+ The data is only accessible to the FerrisKey team and to the hosting provider, acting as a processor. It is never sold or used for + advertising. +

+ +

Your rights

+

+ You have the right to access, rectify, erase, restrict, object to and port your data. To exercise these rights, write to + {publisher.email}. We answer within one month. +

+

+ If you believe your rights are not respected, you can file a complaint with the CNIL, the French data protection authority: + cnil.fr/en/complaints, or 3 place de Fontenoy, + TSA 80715, 75334 Paris Cedex 07, France. +

+ +

Changes

+

This policy may change. The date of the last update is shown at the top of the page.

+
+
diff --git a/packages/ui/src/components/site-footer.astro b/packages/ui/src/components/site-footer.astro index df0ca5b..2f6ea6c 100644 --- a/packages/ui/src/components/site-footer.astro +++ b/packages/ui/src/components/site-footer.astro @@ -43,6 +43,11 @@ const columns = [ }, ] +const legalLinks = [ + { key: 'footer.legal', label: copy.legal, href: appHref(websiteUrl, '/legal') }, + { key: 'footer.privacy', label: copy.privacy, href: appHref(websiteUrl, '/privacy') }, +] + const year = new Date().getFullYear() --- @@ -82,10 +87,15 @@ const year = new Date().getFullYear() ))} -

- © {year} FerrisKey · Apache 2.0 +

+

+ © {year} FerrisKey · Apache 2.0 + {legalLinks.map((l) => ( + {l.label} + ))} +

Fait en Rust -

+
diff --git a/packages/ui/src/lib/footer.ts b/packages/ui/src/lib/footer.ts index ef9a192..9ad62f1 100644 --- a/packages/ui/src/lib/footer.ts +++ b/packages/ui/src/lib/footer.ts @@ -7,6 +7,8 @@ export const footerCopy = { project: 'Project', contact: 'Contact us', tagline: 'Open-source identity and access management, written in Rust.', + legal: 'Legal notice', + privacy: 'Privacy policy', }, fr: { product: 'Produit', @@ -14,6 +16,8 @@ export const footerCopy = { project: 'Projet', contact: 'Nous contacter', tagline: 'Gestion des identités et des accès open source, écrite en Rust.', + legal: 'Mentions légales', + privacy: 'Politique de confidentialité', }, } as const satisfies Record>