[Archived] Archived WIP of vielle.dev

Make SVG elements have alt text

todo:
- make balloons interactive & accesiable
- fix colours on links for nav

Changed files
+12 -16
src
+1
src/assets/hamburger.svg
··· 9 9 stroke-linecap="round" 10 10 stroke-linejoin="round" 11 11 class="lucide lucide-menu-icon lucide-menu" 12 + title="" 12 13 > 13 14 <title><!-- no alt text as used for buttons --></title> 14 15 <path d="M4 12h16" />
+1
src/assets/x.svg
··· 9 9 stroke-linecap="round" 10 10 stroke-linejoin="round" 11 11 class="lucide lucide-x-icon lucide-x" 12 + title="" 12 13 > 13 14 <title><!-- no alt text as used for buttons --></title> 14 15 <path d="M18 6 6 18" />
+3 -5
src/components/blog/background/Cloud.astro
··· 36 36 37 37 const vectorOffset = ( 38 38 v: [number, number], 39 - o: [number, number], 39 + o: [number, number] 40 40 ): [number, number] => { 41 41 return [o[0] - v[0], o[1] - v[1]]; 42 42 }; ··· 48 48 <svg 49 49 viewBox={`-${blog.background.clouds.bumpRadius[1]} -${blog.background.clouds.bumpRadius[1]} ${2 * (r + blog.background.clouds.bumpRadius[1])} ${r + blog.background.clouds.bumpRadius[1]}`} 50 50 preserveAspectRatio="none" 51 - aria-label="" 52 - role="img" 53 51 {...Astro.props} 54 52 > 55 53 <title></title> ··· 92 90 ]; 93 91 const newDistance = Math.sqrt( 94 92 (newCenter[0] - p.origin[0]) ** 2 + 95 - (newCenter[1] - p.origin[1]) ** 2, 93 + (newCenter[1] - p.origin[1]) ** 2 96 94 ); 97 95 return { 98 96 origin: vectorOffset(vector(ang, c), p.origin), ··· 123 121 prev: 0, 124 122 output: [] as any[], 125 123 complete: false, 126 - }, 124 + } 127 125 ).output 128 126 } 129 127 <circle cx={r} cy={r} r={r}></circle>
+1 -2
src/components/blog/background/Clouds.astro
··· 35 35 top: ${y}rem; 36 36 left: calc(${x} * 200lvw - 100lvw); 37 37 position: absolute;`} 38 - role="img" 39 38 id={"cloud-" + i} 40 39 data-parallax 41 - aria-label="" 40 + title="" 42 41 />, 43 42 ], 44 43 };
+1 -2
src/components/blog/background/Moon.astro
··· 24 24 height="100" 25 25 style={`--parallax-speed: ${blog.background.parallax.moon}`} 26 26 data-parallax 27 - role="img" 28 - aria-label="" 27 + title="" 29 28 > 30 29 <title></title> 31 30 <defs>
+2 -3
src/components/blog/background/Stars.astro
··· 39 39 const prongs = Math.round( 40 40 blog.background.stars.prongs[0] + 41 41 Math.random() * 42 - (blog.background.stars.prongs[1] - blog.background.stars.prongs[0]), 42 + (blog.background.stars.prongs[1] - blog.background.stars.prongs[0]) 43 43 ); 44 44 45 45 return ( ··· 54 54 version="1.1" 55 55 xmlns="http://www.w3.org/2000/svg" 56 56 viewBox="0 0 100 100" 57 - role="img" 58 - aria-label="" 57 + title="" 59 58 > 60 59 <title /> 61 60 {new Array(prongs).fill(0).map((_, i) => (
+1 -2
src/components/blog/background/Sun.astro
··· 31 31 viewBox="0 0 100 100" 32 32 style={`--parallax-speed: ${blog.background.parallax.sun}; 33 33 --sun-progress-percent: ${percent}`} 34 + title="" 34 35 data-parallax 35 - role="img" 36 - aria-label="" 37 36 > 38 37 <title></title> 39 38 <circle style="fill:#ffff00" cx="50" cy="50" r="35"></circle>
+2 -2
src/components/generic/Nav.astro
··· 14 14 --- 15 15 16 16 <button popovertarget="nav" popovertargetaction="show" aria-label="Nav Menu"> 17 - <Hamburger role="img" /> 17 + <Hamburger /> 18 18 </button> 19 19 <dialog closedby="any" open={startOpen} id="nav" popover> 20 20 <div class="top"> 21 21 <h1>{current}</h1> 22 22 <button popovertarget="nav" popovertargetaction="hide" aria-label="close"> 23 - <X width={32} height={32} role="img" /> 23 + <X width={32} height={32} /> 24 24 </button> 25 25 </div> 26 26 <NavEntry {data} />