Skip to content

Commit a69fb04

Browse files
Address some issues from the accessibility milestone (#1562)
* show that welcome video is playable in alt-text * Add the full form of AoC in the alt texts * add alt-text to all images * change alt-texts for timeline page * Add correct date * add alt text to clickable images
1 parent 023881d commit a69fb04

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

pydis_site/apps/timeline/entries/2018-02-03_our-logo-is-born.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ icon: pydis
55
---
66

77
<p style="background-color: #7289DA; border-radius: 10px;">
8-
<img style="padding-right: 20px;" src="https://raw.githubusercontent.com/python-discord/branding/main/logos/logo_banner/logo_site_banner.svg">
8+
<img style="padding-right: 20px;" src="https://raw.githubusercontent.com/python-discord/branding/main/logos/logo_banner/logo_site_banner.svg" alt="Python Discord Logo">
99
</p>

pydis_site/apps/timeline/entries/2024-10-07_python-313-release-stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Python 3.13 Release Stream
3-
date: Oct 10th, 2022
3+
date: Oct 10th, 2024
44
icon: pydis
55
---
66

pydis_site/templates/events/main_events.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2 class="title is-4"><a href="{% url "events:page" path="pyweek" %}">PyWeek</a
3838
</div>
3939
<div class="card">
4040
<div class="card-image">
41-
<img loading=lazy src="/static/images/events/gallery/adventofcode.png" alt="Server icon for AoC">
41+
<img loading=lazy src="/static/images/events/gallery/adventofcode.png" alt="Server icon for Advent of Code">
4242
</div>
4343
<div class="card-content">
4444
<h2 class="title is-4"><a href="{% url "events:page" path="adventofcode" %}">Advent of code</a></h2>
@@ -53,7 +53,7 @@ <h2 class="title is-4"><a href="{% url "events:page" path="adventofcode" %}">Adv
5353
</div>
5454
<div class="card">
5555
<div class="card-image">
56-
<img loading=lazy src="/static/images/events/gallery/adventofcode.png" alt="Server icon for AoC">
56+
<img loading=lazy src="/static/images/events/gallery/adventofcode.png" alt="Server icon for Advent of Code">
5757
</div>
5858
<div class="card-content">
5959
<h2 class="title is-4"><a href="{% url "events:page" path="revivalofcode" %}">Revival of Code</a></h2>

pydis_site/templates/events/other_events.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 class="title is-4"><a href="https://www.youtube.com/watch?v=PTjLkvvjKnM">Fan
3535
<article class="media">
3636
<div class="media-left">
3737
<p class="image">
38-
<img loading=lazy class="is-rounded" src="https://s3.dualstack.us-east-2.amazonaws.com/pythondotorg-assets/media/files/python-logo-only.svg" style="width: 3rem;">
38+
<img loading=lazy class="is-rounded" src="https://s3.dualstack.us-east-2.amazonaws.com/pythondotorg-assets/media/files/python-logo-only.svg" style="width: 3rem;" alt="">
3939
</p>
4040
</div>
4141
<div class="media-content">
@@ -85,7 +85,7 @@ <h2 class="title is-4"><a href="https://www.youtube.com/watch?v=00CW1y-O8YQ">Dev
8585
<article class="media">
8686
<div class="media-left">
8787
<p class="image">
88-
<img loading=lazy class="is-rounded" src="https://s3.dualstack.us-east-2.amazonaws.com/pythondotorg-assets/media/files/python-logo-only.svg" style="width: 3rem;">
88+
<img loading=lazy class="is-rounded" src="https://s3.dualstack.us-east-2.amazonaws.com/pythondotorg-assets/media/files/python-logo-only.svg" style="width: 3rem;" alt="">
8989
</p>
9090
</div>
9191
<div class="media-content">
@@ -111,7 +111,7 @@ <h2 class="title is-4"><a href="https://www.youtube.com/watch?v=AHT2l3hcIJg">Pyt
111111
<article class="media">
112112
<div class="media-left">
113113
<p class="image">
114-
<img loading=lazy src="/static/images/events/pixels_logo_transparent.gif" style="width: 3rem;">
114+
<img loading=lazy src="/static/images/events/pixels_logo_transparent.gif" style="width: 3rem;" alt="">
115115
</p>
116116
</div>
117117
<div class="media-content">

pydis_site/templates/events/scheduled_events.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h2 class="title is-5" style="margin-bottom: 2rem;">Scheduled events</h2>
33
<article class="media">
44
<div class="media-left">
55
<p class="image is-64x64">
6-
<a href="{% url "events:page" path="code-jams/12" %}"><img class="is-rounded" src="/static/images/events/summer_code_jam_2025/logo.png"></a>
6+
<a href="{% url "events:page" path="code-jams/12" %}"><img class="is-rounded" src="/static/images/events/summer_code_jam_2025/logo.png" alt="Summer Code Jam 2025"></a>
77
</p>
88
</div>
99
<div class="media-content">
@@ -26,7 +26,7 @@ <h5 class="title is-4"><a href="{% url "events:page" path="code-jams/12" %}">Sum
2626
<article class="media">
2727
<div class="media-left">
2828
<p class="image is-64x64">
29-
<a href="{% url "events:page" path="pyweek" %}"><img class="is-rounded" src="/static/images/events/icons/pyweek.png"></a>
29+
<a href="{% url "events:page" path="pyweek" %}"><img class="is-rounded" src="/static/images/events/icons/pyweek.png" alt="PyWeek 38"></a>
3030
</p>
3131
</div>
3232
<div class="media-content">
@@ -49,7 +49,7 @@ <h5 class="title is-4"><a href="{% url "events:page" path="pyweek" %}">PyWeek 38
4949
<article class="media">
5050
<div class="media-left">
5151
<p class="image is-64x64">
52-
<a href="{% url "events:page" path="adventofcode" %}"><img class="is-rounded" src="/static/images/events/icons/adventofcode.png"></a>
52+
<a href="{% url "events:page" path="adventofcode" %}"><img class="is-rounded" src="/static/images/events/icons/adventofcode.png" alt="Advent of Code"></a>
5353
</p>
5454
</div>
5555
<div class="media-content">

pydis_site/templates/events/sidebar/adventofcode/useful-links.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="box">
22
<div class="has-text-centered">
3-
<img src="https://raw.githubusercontent.com/python-discord/branding/main/events/christmas/server_icons/festive_256.gif" style="border-radius: 10px;" alt="Server icon for AoC">
3+
<img src="https://raw.githubusercontent.com/python-discord/branding/main/events/christmas/server_icons/festive_256.gif" style="border-radius: 10px;" alt="Server icon for Advent of Code">
44
</div>
55
<p class="menu-label">Quick links</p>
66
<ul class="menu-list">

pydis_site/templates/events/sidebar/main_sidebar.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h2 class="title is-5">Previous events</h2>
33
<article class="media">
44
<div class="media-left">
55
<p class="image is-32x32">
6-
<img class="is-rounded" src="/static/images/events/summer_code_jam_2023/logo.PNG">
6+
<img class="is-rounded" src="/static/images/events/summer_code_jam_2023/logo.PNG" alt="">
77
</p>
88
</div>
99
<div class="media-content">
@@ -16,7 +16,7 @@ <h5 class="title is-5"><a href="{% url "events:page" path="code-jams/10" %}">Sum
1616
<article class="media">
1717
<div class="media-left">
1818
<p class="image is-32x32">
19-
<img class="is-rounded" src="/static/images/events/icons/pyweek.png">
19+
<img class="is-rounded" src="/static/images/events/icons/pyweek.png" alt="">
2020
</p>
2121
</div>
2222
<div class="media-content">
@@ -29,7 +29,7 @@ <h5 class="title is-5"><a href="https://pyweek/36/">PyWeek 36</a></h5>
2929
<article class="media">
3030
<div class="media-left">
3131
<p class="image is-32x32">
32-
<img class="is-rounded" src="/static/images/events/icons/adventofcode.png">
32+
<img class="is-rounded" src="/static/images/events/icons/adventofcode.png" alt="">
3333
</p>
3434
</div>
3535
<div class="media-content">
@@ -42,7 +42,7 @@ <h5 class="title is-5"><a href="https://adventofcode.com/2023">Advent of Code 20
4242
<article class="media">
4343
<div class="media-left">
4444
<p class="image is-32x32">
45-
<img class="is-rounded" src="/static/images/events/icons/pyweek.png">
45+
<img class="is-rounded" src="/static/images/events/icons/pyweek.png" alt="">
4646
</p>
4747
</div>
4848
<div class="media-content">

pydis_site/templates/events/sidebar/revivalofcode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="box">
22
<div class="has-text-centered">
3-
<img src="https://raw.githubusercontent.com/python-discord/branding/main/events/christmas/server_icons/festive_256.gif" style="border-radius: 10px;" alt="Server icon for AoC">
3+
<img src="https://raw.githubusercontent.com/python-discord/branding/main/events/christmas/server_icons/festive_256.gif" style="border-radius: 10px;" alt="Server icon for Advent of Code">
44
</div>
55
<p class="menu-label">Quick links</p>
66
<ul class="menu-list">

pydis_site/templates/home/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
span{height:1.5em;text-align:center;font:68px/1.5 sans-serif;color:#FFFFFFEE;text-shadow:0 0 0.1em #00000020}
3737
</style>
3838
<a href=https://www.youtube.com/embed/ZH26PuX3re0?autoplay=1>
39-
<img src='{% static "images/frontpage/welcome.jpg" %}' alt='Welcome to Python Discord'>
39+
<img src='{% static "images/frontpage/welcome.jpg" %}' alt='Welcome to Python Discord, click to play'>
4040
<span></span>
4141
</a>"
4242
allow="autoplay; accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture"

pydis_site/templates/timeline/timeline.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="timeline-icon-date">
1818
<div class="timeline-icon {{ entry.icon_color }}">
1919
{% if entry.icon == "pydis" %}
20-
<img class="pydis" src="{% static "images/timeline/cd-icon-pydis.svg" %}" alt="Logo">
20+
<img class="pydis" src="{% static "images/timeline/cd-icon-pydis.svg" %}" alt="">
2121
{% else %}
2222
<span class="icon"><i class="{{ entry.icon }}"></i></span>
2323
{% endif %}

0 commit comments

Comments
 (0)