From faffad58228a9a5e1db8b4966883e92339178d45 Mon Sep 17 00:00:00 2001 From: Kylian Bardini Date: Tue, 17 Nov 2026 07:57:21 +0100 Subject: [PATCH 01/75] =?UTF-8?q?=F0=9F=9A=80=20perf(ui):=20the=20hover=20?= =?UTF-8?q?pixels=20drawn=20by=20the=20GPU=20in=20one=20call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A card on /apps holds about 17k cells, and every frame rebuilt one 2D path per alpha level out of all of them (arc() for circles), then filled it. The cells are now instanced quads in a single WebGL2 draw, shaped by a signed distance in the fragment shader (same square, circle, diamond and checkerboard triangle, same alpha levels and colour), then copied into the card's own 2D canvas. One context is shared by the whole page: a browser keeps about sixteen alive, a blog list has more cards. The animation state (grow from the entry point, shimmer, shrink) is unchanged. One drawImage per cell from a sprite atlas was measured too: ten times slower than the path. refs #153 --- app/components/ui/PixelCanvas.vue | 185 ++++++++++++++++++++++-------- 1 file changed, 140 insertions(+), 45 deletions(-) diff --git a/app/components/ui/PixelCanvas.vue b/app/components/ui/PixelCanvas.vue index 6794aac..3129cc9 100644 --- a/app/components/ui/PixelCanvas.vue +++ b/app/components/ui/PixelCanvas.vue @@ -1,3 +1,128 @@ + + + + + + From 843d577e617cc67ef21e3b37c4b09d5d8c7dfbf4 Mon Sep 17 00:00:00 2001 From: Kylian Bardini Date: Wed, 18 Nov 2026 13:57:09 +0100 Subject: [PATCH 23/75] =?UTF-8?q?=E2=9C=A8=20feat(home):=20the=20GitHub=20?= =?UTF-8?q?calendar=20as=20a=20dithered=20heatmap,=20with=20a=20sparkline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The three tabs draw their days with UiDitherChart instead of up to 1,855 divs: seven rows, Sunday first as on GitHub, each day on its own weekday row (a week the range cuts used to stack its days from the top), each week under the month of its last day. A narrow screen still scrolls sideways. The day's count moves from a mouse-only tooltip to the core's readout, which the keyboard reaches too. The figures gain a sparkline of the contributions month by month over the same span. refs #165 Claude-Session: https://claude.ai/code/session_012eZbabVSZ7snUa54LxQxyx --- app/components/home/GitHubChart.vue | 245 ++++++++++++---------------- app/utils/contributions.ts | 30 ++++ app/utils/tooltip.ts | 2 +- i18n/locales/en.ts | 7 +- i18n/locales/fr.ts | 7 +- 5 files changed, 144 insertions(+), 147 deletions(-) create mode 100644 app/utils/contributions.ts diff --git a/app/components/home/GitHubChart.vue b/app/components/home/GitHubChart.vue index 1b603af..2ea0c44 100644 --- a/app/components/home/GitHubChart.vue +++ b/app/components/home/GitHubChart.vue @@ -1,6 +1,6 @@ diff --git a/i18n/locales/en.ts b/i18n/locales/en.ts index e8b1eb3..c8effcb 100644 --- a/i18n/locales/en.ts +++ b/i18n/locales/en.ts @@ -733,6 +733,9 @@ export default { lightbox: { open: 'Enlarge the illustration: {name}', close: 'Close', + untitled: 'Picture', + error: 'The picture could not be loaded.', + openFile: 'Open the file', }, blog: { diff --git a/i18n/locales/fr.ts b/i18n/locales/fr.ts index 171956f..3e9cbf5 100644 --- a/i18n/locales/fr.ts +++ b/i18n/locales/fr.ts @@ -733,6 +733,9 @@ export default { lightbox: { open: 'Agrandir l’illustration : {name}', close: 'Fermer', + untitled: 'Image', + error: 'L’image n’a pas pu être chargée.', + openFile: 'Ouvrir le fichier', }, blog: { From dce8cae1c9e1799d433bdc4fd0832dd38dfd8207 Mon Sep 17 00:00:00 2001 From: Kylian Bardini Date: Wed, 18 Nov 2026 14:10:21 +0100 Subject: [PATCH 31/75] =?UTF-8?q?=E2=9C=A8=20feat(cookies):=20the=20prefer?= =?UTF-8?q?ences=20and=20the=20banner=20in=20Herdr's=20modal=20head?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The library's DOM is left as built: the plugin puts .dither-band on the banner's texts and the preferences' header once they exist (onModalReady), and the rest is CSS. The preferences' head: 60 px, a 32 px mark with the cookie, the title in 14 semibold, a round close button, dashed rules. Both rise 6 px in 180 ms on the site's curve; the veil leaves after the card. The library's own reduced-motion rule still applies (the 180 ms is set under no-preference only). The banner stays a non-modal region, the preferences a dialog with aria-modal: roles, Escape and focus are the library's, unchanged. refs #167 Claude-Session: https://claude.ai/code/session_012eZbacCY6SKVV4YCK6PkDF --- app/assets/css/cookie-consent.css | 97 ++++++++++++++++++++++++++++ app/plugins/cookie-consent.client.ts | 4 ++ 2 files changed, 101 insertions(+) diff --git a/app/assets/css/cookie-consent.css b/app/assets/css/cookie-consent.css index bdc7ad6..2091812 100644 --- a/app/assets/css/cookie-consent.css +++ b/app/assets/css/cookie-consent.css @@ -115,3 +115,100 @@ :root #cc-main .cm__btn + .cm__btn { margin: 0 0 0 0.375rem !important; } + +/* ── The Herdr modals' head (#167) ─────────────────────────────────────────────────────── + The banner's texts and the preferences' header sit over the dither band: the plugin puts + .dither-band (components.css) on them once the library has built them (onModalReady) */ + +/* Motion: a 6px rise in 180ms on the site's curve, the veil after the card on the way out. + The library's own reduced-motion rule (0s) stays the one that applies there */ +@media (prefers-reduced-motion: no-preference) { + :root #cc-main { + --cc-modal-transition-duration: 0.18s; + } +} + +:root #cc-main .cc--anim :is(.cm, .pm) { + transition-timing-function: var(--ease-out-quint); +} + +:root #cc-main .cm { + transform: translateY(6px); +} + +:root #cc-main .pm--box { + transform: translateY(calc(-50% + 6px)); +} + +:root #cc-main .cc--anim .pm-overlay { + transition-delay: 0.06s; +} + +:root.show--preferences #cc-main .cc--anim .pm-overlay { + transition-delay: 0s; +} + +@media screen and (max-width: 640px) { + :root #cc-main .pm { + transform: translateY(6px); + } +} + +/* The preferences' head: 60px, a 32px mark, the title in 14 semibold, a round close button */ +:root #cc-main .pm__header { + min-height: 3.75rem; + padding: 0.625rem 0.5rem 0.625rem 0.875rem; + border-bottom: 1px dashed color-mix(in srgb, var(--color-primary-500) 30%, transparent); +} + +:root #cc-main .pm__title { + position: relative; + gap: 0.75rem; + margin-right: 1rem; + font-size: 0.875rem; + font-weight: 600; +} + +/* The mark: a soft square edged with the band's colour, and the cookie over it */ +:root #cc-main .pm__title::before, +:root #cc-main .pm__title::after { + content: ""; + flex-shrink: 0; + width: 2rem; + height: 2rem; +} + +:root #cc-main .pm__title::before { + border: 1px solid color-mix(in srgb, var(--color-primary-500) 30%, transparent); + border-radius: 0.625rem; + background: color-mix(in srgb, var(--card-bg) 90%, transparent); +} + +:root #cc-main .pm__title::after { + position: absolute; + top: 50%; + left: 0; + translate: 0 -50%; + background: var(--color-primary-500); + mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 17h.01m.486-15c.324-.016.558.292.529.615a4 4 0 0 0 4.235 4.368a.713.713 0 0 1 .758.757a4 4 0 0 0 4.366 4.237c.323-.03.63.204.614.527a10 10 0 0 1-2.915 6.566A1 1 0 1 1 4.93 4.918A10 10 0 0 1 11.496 2M12 12h.01M16 16h.01M16 3h.01M21 4h.01M21 8h.01M7 14h.01M9 8h.01'/%3E%3C/svg%3E") + center / 1rem 1rem no-repeat; +} + +/* .icon-btn's: round, borderless, the label's colour */ +:root #cc-main .pm__close-btn { + width: 2.25rem; + height: 2.25rem; + border-color: transparent; +} + +:root #cc-main .pm__close-btn svg { + stroke: var(--label); +} + +:root #cc-main .pm__close-btn:hover svg { + stroke: var(--ui-text-highlighted); +} + +:root #cc-main .pm__footer { + border-top-style: dashed; +} diff --git a/app/plugins/cookie-consent.client.ts b/app/plugins/cookie-consent.client.ts index bccc492..ef96932 100644 --- a/app/plugins/cookie-consent.client.ts +++ b/app/plugins/cookie-consent.client.ts @@ -196,6 +196,10 @@ export default defineNuxtPlugin((nuxtApp) => { }, onConsent: sync, onChange: sync, + // The banner's texts and the preferences' header over the dither band, as the site's + // modal heads (components.css): the library builds them, so the class comes once built + onModalReady: ({ modal }) => + modal.querySelector('.cm__texts, .pm__header')?.classList.add('dither-band'), } await cc.run(config) nuxtApp.hook('i18n:localeSwitched', ({ newLocale }) => { From d530670d007105c7bc0e9b1032cee30ade180d14 Mon Sep 17 00:00:00 2001 From: Kylian Bardini Date: Wed, 18 Nov 2026 14:10:58 +0100 Subject: [PATCH 32/75] =?UTF-8?q?=F0=9F=8E=A8=20style(nav):=20the=20brand?= =?UTF-8?q?=20menu=20opens=20as=20the=20site's=20popups=20now=20do?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A fade and a 6 px rise in 180 ms on the site's curve, out in 120 ms, instead of a 150 ms scale from 95 %: the motion of the Herdr modals, itself taken from the portfolio's swap-up. Both headers, both menus. refs #167 Claude-Session: https://claude.ai/code/session_012eZbacCY6SKVV4YCK6PkDF --- app/components/layout/BlogHeader.vue | 20 ++++++++------------ app/components/layout/Header.vue | 20 ++++++++------------ 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/app/components/layout/BlogHeader.vue b/app/components/layout/BlogHeader.vue index 4f4bc63..feb056a 100644 --- a/app/components/layout/BlogHeader.vue +++ b/app/components/layout/BlogHeader.vue @@ -86,12 +86,10 @@ const isMobileMenuOpen = ref(false)
kbrdn1
kbrdn1
Date: Wed, 18 Nov 2026 14:11:10 +0100 Subject: [PATCH 33/75] =?UTF-8?q?=F0=9F=90=9B=20fix(a11y):=20Escape=20give?= =?UTF-8?q?s=20the=20focus=20back=20in=20the=20mobile=20menu=20and=20conte?= =?UTF-8?q?nts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Escape folded the mobile menu with the focus on one of its links, which then turned inert: the focus fell to the body. It goes back to the menu's button now, in both headers. The article's mobile contents had no Escape at all: it folds them and focuses their button. Both stay disclosures, with no trap: the page is read while they are open. refs #167 Claude-Session: https://claude.ai/code/session_012eZbacCY6SKVV4YCK6PkDF --- app/components/blog/MobileToc.vue | 10 ++++++++++ app/components/layout/BlogHeader.vue | 6 ++++++ app/components/layout/Header.vue | 6 ++++++ 3 files changed, 22 insertions(+) diff --git a/app/components/blog/MobileToc.vue b/app/components/blog/MobileToc.vue index 1af3fd3..46b74ab 100644 --- a/app/components/blog/MobileToc.vue +++ b/app/components/blog/MobileToc.vue @@ -35,6 +35,14 @@ function handleScrollTo(id: string) { emit('scroll-to', id) open.value = false } + +// Escape folds it, and the focus, on a step turned inert, goes back to its button +const toggle = ref() +function onEscape() { + if (!open.value) return + open.value = false + toggle.value?.focus() +}