Skip to content

Commit 4a68204

Browse files
Add alt text to all images on the ball pages (#791)
1 parent d1e774d commit 4a68204

File tree

7 files changed

+17
-5
lines changed

7 files changed

+17
-5
lines changed

_data/ball/2020.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ features:
1414
with CSS balloons. Once we had enjoyed the delicious food and finally exhausted the supply of booze,
1515
we invaded the dance floor, where we held our very own CSS disco.'
1616
image: 'balloons-bubbles-booze.jpg'
17+
alt: 'An image taken at the css ball, showing individuals out of focus behind confetti'
1718
- title: 'New Friends and Old'
1819
paragraph: 'At the event, many future best friends met for the first time. For many others, it was the last.
1920
Whether fresher or final year, we all created lifelong memories from the mayhem that was that night.'
2021
image: 'new-friends-and-old.jpg'
22+
alt: 'An image taken at the css ball, showing a group of friends posing for a photo'
2123
- title: 'A Well-Timed Ball'
2224
paragraph: "For most, CSS Ball 2020 was the last time we could get together with our friends and truly have
2325
a blast before we went into lockdown 10 days later. It was our last chance for a year and a half to get up
2426
to the crazy shenanigans which CSS is famous for. Its a miracle we even had a ball in 2020, and it will
2527
always remain an unforgettable night."
2628
image: 'well-timed-ball.jpg'
29+
alt: 'An image taken at the css ball, showing a group of friends posing for a photo'

_data/ball/2021.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,30 @@ features:
1212
guests could walk around, chat and show off their outfits!"
1313
images:
1414
- name: "start.png"
15+
alt: "An image of the Gather.Town map with the dining hall"
1516
- title: "But what about food?"
1617
paragraph: "Don't worry, we had that covered! Each guest received an Uber Eats voucher (worth more than the
1718
ticket cost!) which they used to get their favourite dish delivered straight to their door. And just like
1819
at any other ball, we sat together at (virtual) tables!"
1920
images:
2021
- name: "Screenshot_20210325_201739.png"
22+
alt: "An image of the Gather.Town map with the dining hall and several members of the CSS community"
2123
- title: "...and drink?"
2224
paragraph: "The great thing about this year was that we could bring any drink we wanted. We even created
2325
our own cocktail just for the event!"
2426
images:
2527
- name: "the_tex.png"
28+
alt: "An image containing the recepie for the 'TeX' cocktail"
2629
- title: "Fun and Games"
2730
paragraph: "After we'd eaten, we enjoyed the custom-built maze and a treasure hunt around the map we had
2831
created. We had a group photo competition, and got up to some famous CSS shenanigans. Everyone had an
2932
absolute blast, and for many of us it was the highlight of the year!"
3033
images:
3134
- name: "maze.png"
35+
alt: "An image of a maze as part of the game at the CSS Ball"
3236
- name: "unknown-12.png"
37+
alt: "An image of the game being played as part of the Ball with 5 people in the image"
3338
- name: "rick-astley.png"
39+
alt: "An image of Rick Astley being played as part of the Ball"
3440
- name: "CSS_Virtual_Ball_2021.jpg"
41+
alt: "An image of multiple attendees of the online ball"

ball/2020/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ <h3 class="subsubtitle question">{{ qanda.title }}</h3>
3131
<p class="text-block answer">{{ qanda.paragraph }}</p>
3232
</div>
3333
{% assign url = ball.image_root | append: qanda.image %}
34-
<img class="image" src="{{ url }}">
34+
{% assign alt = qanda.alt %}
35+
<img class="image" src="{{ url }}", alt="{{ alt }}">
3536
<br>
3637
{% endfor %}
3738
</div>

ball/2021/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ <h3 class="subsubtitle question">{{ qanda.title }}</h3>
2929
</div>
3030
{% for image in qanda.images %}
3131
{% assign url = ball.image_root | append: image.name %}
32-
<img class="image" src="{{ url }}">
32+
{% assign alt = image.alt %}
33+
<img class="image" src="{{ url }}", alt="{{ alt }}">
3334
<br>
3435
{% endfor %}
3536
{% endfor %}

ball/2023/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h2 class="subtitle">Live Music</h2>
4949
<hr class="bleed-top">
5050
<div class="section-tickets" id="tickets">
5151
<div class="icon">
52-
<img class="icon" src="/assets/images/css-ball-ticket.png"/>
52+
<img class="icon" src="/assets/images/css-ball-ticket.png", alt="A cartoon image of a ticket with the text 'CSS Ball, Fazeley Studios, 26 April, Admit One'"/>
5353
</div>
5454
<div class="text">
5555
<h2 class="subtitle">Tickets</h2>

ball/2024/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2 class="subtitle">The Venue</h2>
3939
<hr class="bleed-top">
4040
<div class="section-tickets" id="tickets">
4141
<div class="icon">
42-
<img class="icon" src="/assets/images/ball-ticket-icon.png"/>
42+
<img class="icon" src="/assets/images/ball-ticket-icon.png", alt="A cartoon image of a ticket with the text 'CSS Ball, Fazeley Studios, 26 April, Admit One'"/>
4343
</div>
4444
<div class="text text-center-div">
4545
<h2 class="subtitle">Tickets</h2>

ball/2025/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2 class="subtitle">The Venue</h2>
4040
<hr class="bleed-top">
4141
<div class="section-tickets" id="tickets">
4242
<div class="icon">
43-
<img class="icon" src="/assets/images/ball-2025-ticket-icon.png"/>
43+
<img class="icon" src="/assets/images/ball-2025-ticket-icon.png", alt="A cartoon image of a ticket with the text 'CSS Ball, Fazeley Studios, 26 April, Admit One'"/>
4444
</div>
4545
<div class="text text-center-div">
4646
<h2 class="subtitle">Tickets</h2>

0 commit comments

Comments
 (0)