diff --git a/resources/homepage-repair/docs/assets/hero/astronaut.png b/resources/homepage-repair/docs/assets/hero/astronaut.png deleted file mode 100644 index 2d63a9f7a..000000000 Binary files a/resources/homepage-repair/docs/assets/hero/astronaut.png and /dev/null differ diff --git a/resources/homepage-repair/docs/assets/hero/ground.png b/resources/homepage-repair/docs/assets/hero/ground.png deleted file mode 100644 index eece5b0bd..000000000 Binary files a/resources/homepage-repair/docs/assets/hero/ground.png and /dev/null differ diff --git a/resources/homepage-repair/manifest.json b/resources/homepage-repair/manifest.json deleted file mode 100644 index 466452aad..000000000 --- a/resources/homepage-repair/manifest.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "schema": 1, - "source_commit": "33bf09e113565da26745f5ecaf33a2cb510cbbe6", - "purpose": "Immutable native SVG repair composition inputs for offline homepage artwork export. These files are not loaded by the live website.", - "files": [ - { - "path": "docs/assets/hero/astronaut.png", - "bytes": 131111, - "sha256": "afe8febbb2eb3f179031b2789ab31716649ca9a430a6efb5e369d64c3c6689cf" - }, - { - "path": "docs/assets/hero/ground.png", - "bytes": 93650, - "sha256": "5ae803f091f44281b184569f17aa42a1fbbcf3aa33f41dbba181f869ed639d70" - }, - { - "path": "overrides/javascripts/hero-repairs.js", - "bytes": 3958, - "sha256": "8b91a0714a443b394844b00809bd706f5ee2939ccf38fa802f242f466ac6e1bd" - }, - { - "path": "overrides/javascripts/hero-repairs/astronaut-hand.webp", - "bytes": 333660, - "sha256": "81f3377f616ebe6c3ba99aef273caf237f84bd779e308aa14ea82098e28a738d" - }, - { - "path": "overrides/javascripts/hero-repairs/ground-filled.webp", - "bytes": 394074, - "sha256": "ec608ae4a3294c3bc89a2a4114f4a7556d9e0e34dc1399bd96606d08cd1b21b8" - } - ] -} diff --git a/resources/homepage-repair/overrides/javascripts/hero-repairs.js b/resources/homepage-repair/overrides/javascripts/hero-repairs.js deleted file mode 100644 index a49022288..000000000 --- a/resources/homepage-repair/overrides/javascripts/hero-repairs.js +++ /dev/null @@ -1,59 +0,0 @@ -// Local imagegen repairs, composed with the original ink in native SVG. -// No new render loop or WebGL dependency: repairs also work with reduced motion. -let instance = 0; -const ns = 'http://www.w3.org/2000/svg'; - -export function createRepairs(map, items, ground) { - const astronaut = items.find(item => item.astronaut)?.image; - const nodes = []; - let disposed = false, enabled = true; - const load = async name => { - const image = new Image(); - image.src = new URL(`./hero-repairs/${name}.webp`, import.meta.url).href; - await image.decode(); - return image; - }; - const render = active => { - enabled = active; - for (const {original, svg} of nodes) { - svg.style.display = active ? '' : 'none'; - original.classList.toggle('hero-art-hidden', active); - } - }; - const ready = Promise.all([load('astronaut-hand'), load('ground-filled')]).then(async repairs => { - if (disposed || !astronaut || !ground) return; - await Promise.all([astronaut.decode(), ground.decode()]); - if (disposed) return; - for (const [index, original] of [astronaut, ground].entries()) { - const w=original.naturalWidth,h=original.naturalHeight,id=`hero-repair-${++instance}`; - const svg=document.createElementNS(ns,'svg'); - svg.setAttribute('viewBox',`0 0 ${w} ${h}`); - svg.setAttribute('aria-hidden','true'); - svg.style.cssText=original.style.cssText; - svg.style.aspectRatio=`${w} / ${h}`; - svg.classList.add('hero-art-repair',index===0?'hero-repair-astronaut':'hero-repair-ground'); - if(index===1)svg.classList.add('hero-ground'); - const image = href => ``; - if(index===0){ - // Only the palm and cuff window is replaced; helmet, body and boots stay original. - const patch=''; - svg.innerHTML=` - ${patch} - ${patch} - ${image(original.src)}${image(repairs[index].src)}`; - }else{ - // Repaint only the cutout and a narrow feathered seam around it. This also - // removes dark matte remnants along the old astronaut-shaped boundary. - const hole=``; - svg.innerHTML=` - ${hole} - ${hole} - ${image(original.src)}${image(repairs[index].src)}`; - } - original.insertAdjacentElement('afterend',svg); - nodes.push({original,svg}); - } - render(enabled); - }).catch(error => {if(!disposed)console.warn('Original central artwork retained: repair unavailable.',error);}); - return {ready,render,dispose(){disposed=true;for(const {original,svg} of nodes){original.classList.remove('hero-art-hidden');svg.remove();}}}; -} diff --git a/resources/homepage-repair/overrides/javascripts/hero-repairs/astronaut-hand.webp b/resources/homepage-repair/overrides/javascripts/hero-repairs/astronaut-hand.webp deleted file mode 100644 index 23c6ec04f..000000000 Binary files a/resources/homepage-repair/overrides/javascripts/hero-repairs/astronaut-hand.webp and /dev/null differ diff --git a/resources/homepage-repair/overrides/javascripts/hero-repairs/ground-filled.webp b/resources/homepage-repair/overrides/javascripts/hero-repairs/ground-filled.webp deleted file mode 100644 index 1068126f3..000000000 Binary files a/resources/homepage-repair/overrides/javascripts/hero-repairs/ground-filled.webp and /dev/null differ