Skip to content

Commit

Permalink
A11y: add alt text to EuroPython and Vercel SVGs (#775)
Browse files Browse the repository at this point in the history
For #682.

Add alt text for the EuroPython logo and "Powered by Vercel" SVGs,
following
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_In_HTML_Introduction#best_practices.
  • Loading branch information
hugovk authored Jul 3, 2024
1 parent 001a625 commit 6a03525
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/logo/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const LogoInverted = ({ className }: { className?: string }) => {
fill="none"
xmlns="http://www.w3.org/2000/svg"
className={className}
aria-labelledby="svgTitle"
>
<title id="svgTitle">EuroPython logo</title>
<path
d="M41.8318 1.58125C45.2563 1.58125 48.6232 1.85254 51.8359 2.38767C54.2701 2.79274 56.4998 3.90018 58.1163 5.50373C59.2739 6.6539 60.6545 8.60492 60.6545 11.3698V30.6774C60.6545 35.4881 56.8157 39.4013 52.0961 39.4013H31.8426C28.1097 39.4013 24.5477 40.9119 21.8125 43.6526C19.1331 46.3376 17.5965 49.9553 17.5965 53.5768V61.262H12.2042C6.36606 61.262 3.95609 56.3305 2.96385 52.1907C1.12804 44.578 1.12804 39.9364 2.96385 32.3219C3.6495 29.4604 5.08768 27.1136 7.12417 25.536C9.04917 24.044 11.4591 23.2543 14.0939 23.2543H43.5599V17.5201H23.2823V11.3716C23.2823 8.4284 23.7097 6.72822 24.7558 5.50001C25.9989 4.04325 28.3364 3.05288 32.1158 2.38582C34.9977 1.87484 38.2568 1.59798 41.5383 1.58311C41.6349 1.58311 41.7334 1.58311 41.83 1.58311M41.83 0.00371622C41.7296 0.00371622 41.6312 0.00371622 41.5308 0.00371622C38.0636 0.0204392 34.7543 0.315879 31.8408 0.830576C23.26 2.3468 21.7029 5.51859 21.7029 11.3716V19.0995H41.9805V21.6749H14.0939C8.20001 21.6749 3.04004 25.2164 1.42719 31.9558C-0.434634 39.68 -0.516391 44.4981 1.42719 52.5641C2.86909 58.5677 6.31031 62.8451 12.2042 62.8451H19.1759V53.5805C19.1759 46.8876 24.9658 40.9844 31.8426 40.9844H52.0961C57.7336 40.9844 62.2339 36.3428 62.2339 30.6812V11.3698C62.2339 5.87535 57.5979 1.74663 52.0961 0.828718C48.7124 0.26571 45.2062 0 41.8318 0L41.83 0.00371622Z"
fill="white"
Expand Down Expand Up @@ -303,7 +305,9 @@ export const Logo = ({
fill="none"
xmlns="http://www.w3.org/2000/svg"
className={className}
aria-labelledby="svgTitle"
>
<title id="svgTitle">EuroPython logo</title>
<path
d="M148.549 5.61519C160.71 5.61519 172.666 6.57854 184.074 8.47886C192.718 9.9173 200.636 13.8499 206.377 19.5443C210.488 23.6286 215.39 30.5569 215.39 40.3752V108.939C215.39 126.022 201.758 139.918 184.998 139.918H113.076C99.8202 139.918 87.1712 145.282 77.4585 155.015C67.9437 164.549 62.4868 177.396 62.4868 190.256V217.547H43.3385C22.6065 217.547 14.0484 200.035 10.5249 185.334C4.00577 158.301 4.00577 141.818 10.5249 114.778C12.9597 104.617 18.0668 96.2829 25.2986 90.6809C32.1345 85.3825 40.6925 82.5782 50.049 82.5782H154.685V62.2157H82.6777V40.3818C82.6777 29.9301 84.1954 23.8926 87.9102 19.5311C92.3245 14.358 100.625 10.8411 114.046 8.47227C124.28 6.65772 135.854 5.67457 147.506 5.62178C147.85 5.62178 148.199 5.62178 148.542 5.62178M148.542 0.0131967C148.186 0.0131967 147.836 0.0131967 147.48 0.0131967C135.168 0.0725817 123.416 1.12172 113.07 2.94946C82.5986 8.3337 77.0692 19.5971 77.0692 40.3818V67.8243H149.077V76.9696H50.049C29.119 76.9696 10.7955 89.546 5.06811 113.478C-1.54343 140.907 -1.83375 158.017 5.06811 186.66C10.1884 207.98 22.4085 223.169 43.3385 223.169H68.0954V190.27C68.0954 166.502 88.6558 145.54 113.076 145.54H184.998C205.018 145.54 220.999 129.057 220.999 108.952V40.3752C220.999 20.8639 204.536 6.20244 184.998 2.94286C172.983 0.943562 160.532 0 148.549 0L148.542 0.0131967Z"
fill="#0009E7"
Expand Down
2 changes: 2 additions & 0 deletions src/components/vercel-logo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
viewBox="0 0 212 44"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-labelledby="svgTitle"
>
<title id="svgTitle">Powered by Vercel</title>
<rect width="212" height="44" rx="8" fill="black"></rect>
<path
d="M60.4375 15.2266V26.5H61.8438V22.4766H64.6797C66.7969 22.4766 68.3047 20.9844 68.3047 18.875C68.3047 16.7266 66.8281 15.2266 64.6953 15.2266H60.4375ZM61.8438 16.4766H64.3281C65.9609 16.4766 66.8594 17.3281 66.8594 18.875C66.8594 20.3672 65.9297 21.2266 64.3281 21.2266H61.8438V16.4766ZM73.3441 26.6484C75.7425 26.6484 77.2269 24.9922 77.2269 22.2891C77.2269 19.5781 75.7425 17.9297 73.3441 17.9297C70.9456 17.9297 69.4613 19.5781 69.4613 22.2891C69.4613 24.9922 70.9456 26.6484 73.3441 26.6484ZM73.3441 25.4375C71.7503 25.4375 70.8519 24.2812 70.8519 22.2891C70.8519 20.2891 71.7503 19.1406 73.3441 19.1406C74.9378 19.1406 75.8363 20.2891 75.8363 22.2891C75.8363 24.2812 74.9378 25.4375 73.3441 25.4375ZM89.2975 18.0781H87.9459L86.2897 24.8125H86.1647L84.2819 18.0781H82.9928L81.11 24.8125H80.985L79.3288 18.0781H77.9694L80.3288 26.5H81.6881L83.5631 19.9844H83.6881L85.5709 26.5H86.9381L89.2975 18.0781ZM93.8213 19.1172C95.1572 19.1172 96.0478 20.1016 96.0791 21.5938H91.4384C91.54 20.1016 92.4775 19.1172 93.8213 19.1172ZM96.04 24.3203C95.6884 25.0625 94.9541 25.4609 93.8681 25.4609C92.4384 25.4609 91.5088 24.4062 91.4384 22.7422V22.6797H97.4931V22.1641C97.4931 19.5469 96.1103 17.9297 93.8369 17.9297C91.5244 17.9297 90.04 19.6484 90.04 22.2969C90.04 24.9609 91.5009 26.6484 93.8369 26.6484C95.6806 26.6484 96.9931 25.7578 97.3838 24.3203H96.04ZM99.2825 26.5H100.626V21.2812C100.626 20.0938 101.556 19.2344 102.837 19.2344C103.103 19.2344 103.587 19.2812 103.697 19.3125V17.9688C103.525 17.9453 103.243 17.9297 103.025 17.9297C101.908 17.9297 100.939 18.5078 100.689 19.3281H100.564V18.0781H99.2825V26.5ZM108.181 19.1172C109.517 19.1172 110.408 20.1016 110.439 21.5938H105.798C105.9 20.1016 106.838 19.1172 108.181 19.1172ZM110.4 24.3203C110.048 25.0625 109.314 25.4609 108.228 25.4609C106.798 25.4609 105.869 24.4062 105.798 22.7422V22.6797H111.853V22.1641C111.853 19.5469 110.47 17.9297 108.197 17.9297C105.884 17.9297 104.4 19.6484 104.4 22.2969C104.4 24.9609 105.861 26.6484 108.197 26.6484C110.041 26.6484 111.353 25.7578 111.744 24.3203H110.4ZM116.76 26.6484C117.924 26.6484 118.924 26.0938 119.455 25.1562H119.58V26.5H120.861V14.7344H119.518V19.4062H119.4C118.924 18.4844 117.932 17.9297 116.76 17.9297C114.619 17.9297 113.221 19.6484 113.221 22.2891C113.221 24.9375 114.603 26.6484 116.76 26.6484ZM117.072 19.1406C118.596 19.1406 119.549 20.3594 119.549 22.2891C119.549 24.2344 118.603 25.4375 117.072 25.4375C115.533 25.4375 114.611 24.2578 114.611 22.2891C114.611 20.3281 115.541 19.1406 117.072 19.1406ZM131.534 26.6484C133.667 26.6484 135.065 24.9219 135.065 22.2891C135.065 19.6406 133.674 17.9297 131.534 17.9297C130.378 17.9297 129.354 18.5 128.893 19.4062H128.768V14.7344H127.424V26.5H128.706V25.1562H128.831C129.362 26.0938 130.362 26.6484 131.534 26.6484ZM131.221 19.1406C132.76 19.1406 133.674 20.3203 133.674 22.2891C133.674 24.2578 132.76 25.4375 131.221 25.4375C129.69 25.4375 128.737 24.2344 128.737 22.2891C128.737 20.3438 129.69 19.1406 131.221 19.1406ZM137.261 29.5469C138.753 29.5469 139.425 28.9688 140.143 27.0156L143.433 18.0781H142.003L139.698 25.0078H139.573L137.261 18.0781H135.808L138.925 26.5078L138.768 27.0078C138.417 28.0234 137.995 28.3906 137.222 28.3906C137.034 28.3906 136.823 28.3828 136.659 28.3516V29.5C136.847 29.5312 137.081 29.5469 137.261 29.5469ZM154.652 26.5L158.55 15.2266H156.402L153.589 24.1484H153.457L150.621 15.2266H148.394L152.332 26.5H154.652ZM162.668 19.3203C163.832 19.3203 164.598 20.1328 164.637 21.3984H160.613C160.699 20.1484 161.512 19.3203 162.668 19.3203ZM164.652 24.1484C164.371 24.7812 163.707 25.1328 162.746 25.1328C161.473 25.1328 160.652 24.2422 160.605 22.8203V22.7188H166.574V22.0938C166.574 19.3984 165.113 17.7812 162.676 17.7812C160.199 17.7812 158.66 19.5078 158.66 22.2578C158.66 25.0078 160.176 26.6719 162.691 26.6719C164.707 26.6719 166.137 25.7031 166.488 24.1484H164.652ZM168.199 26.5H170.137V21.5625C170.137 20.3672 171.012 19.5859 172.27 19.5859C172.598 19.5859 173.113 19.6406 173.262 19.6953V17.8984C173.082 17.8438 172.738 17.8125 172.457 17.8125C171.356 17.8125 170.434 18.4375 170.199 19.2812H170.067V17.9531H168.199V26.5ZM181.7 20.8281C181.497 19.0312 180.168 17.7812 177.973 17.7812C175.403 17.7812 173.895 19.4297 173.895 22.2031C173.895 25.0156 175.411 26.6719 177.981 26.6719C180.145 26.6719 181.489 25.4688 181.7 23.6797H179.856C179.653 24.5703 178.981 25.0469 177.973 25.0469C176.653 25.0469 175.856 24 175.856 22.2031C175.856 20.4297 176.645 19.4062 177.973 19.4062C179.036 19.4062 179.676 20 179.856 20.8281H181.7ZM186.817 19.3203C187.981 19.3203 188.747 20.1328 188.786 21.3984H184.762C184.848 20.1484 185.661 19.3203 186.817 19.3203ZM188.802 24.1484C188.52 24.7812 187.856 25.1328 186.895 25.1328C185.622 25.1328 184.802 24.2422 184.755 22.8203V22.7188H190.723V22.0938C190.723 19.3984 189.262 17.7812 186.825 17.7812C184.348 17.7812 182.809 19.5078 182.809 22.2578C182.809 25.0078 184.325 26.6719 186.841 26.6719C188.856 26.6719 190.286 25.7031 190.637 24.1484H188.802ZM192.427 26.5H194.364V14.6484H192.427V26.5Z"
Expand Down

0 comments on commit 6a03525

Please sign in to comment.