Skip to content

Commit

Permalink
Add alt text to images (#2487)
Browse files Browse the repository at this point in the history
This commit is the first in a series of commits
that will be aiming to make the website more
accessible.

This commit adds alt text to images on the landing
page and the header.
  • Loading branch information
Tresor11 authored May 23, 2024
1 parent d89d21b commit 8dbf343
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion app/views/layouts/_header_application_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
<%= link_to my_account_path, id: "my_account_link", class: "avatar" do %>
<%= image_tag(
gravatar_url(current_user.email, size: "30"),
class: "avatar__image",
alt: "avatar image",
class: "avatar__image"
)%>
<% end %>
</li>
Expand Down
16 changes: 8 additions & 8 deletions app/views/pages/landing.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
receive mentorship from the best in the business.
</p>
<p>
<%= image_tag "marketing/many-faces.png" %>
<%= image_tag "marketing/many-faces.png", alt: "Many faces" %>
</p>
<p class="card__copy card__copy--centered">
Listen to their stories on our
Expand Down Expand Up @@ -81,7 +81,7 @@

<div class="conversation">
<%= image_tag "marketing/conversation-upcase.png",
class: "conversation__avatar" %>
class: "conversation__avatar", alt:"Upcase logo" %>

<div class="conversation__bubble">
<p>
Expand All @@ -104,7 +104,7 @@
</div>

<%= image_tag "marketing/conversation-avi.png",
class: "conversation__avatar" %>
class: "conversation__avatar", alt: "conversation avatar" %>
</div>
</div>

Expand All @@ -128,7 +128,7 @@
the full spectrum of skills needed to become an expert on a topic.
</p>

<%= image_tag "marketing/follow-expert-trails.png" %>
<%= image_tag "marketing/follow-expert-trails.png", alt:"Trail image" %>
</div>
</div>

Expand All @@ -143,7 +143,7 @@
mobile device.
</p>

<%= image_tag "marketing/new-videos-weekly.png" %>
<%= image_tag "marketing/new-videos-weekly.png", alt: "Video preview"%>
</div>
</div>
</div>
Expand All @@ -167,7 +167,7 @@
</span>

<div class="media-object testimonial__person">
<%= image_tag "marketing/testimonial-bryan.png" %>
<%= image_tag "marketing/testimonial-bryan.png", alt:"Code climate logo" %>

<span>
<span class="testimonial__person--name">Bryan Helmkamp</span></br>
Expand Down Expand Up @@ -238,7 +238,7 @@
</p>

<div class="media-object testimonial__person">
<%= image_tag "marketing/testimonial-matt.png" %>
<%= image_tag "marketing/testimonial-matt.png", alt: "Testimonial Person" %>

<span>
<span class="testimonial__person--name">Matt Sumner</span></br>
Expand All @@ -265,7 +265,7 @@
</p>

<div class="media-object testimonial__person">
<%= image_tag "marketing/testimonial-ralph.png" %>
<%= image_tag "marketing/testimonial-ralph.png", alt:"Testimonial Person" %>

<span>
<span class="testimonial__person--name">Ralph White</span></br>
Expand Down

0 comments on commit 8dbf343

Please sign in to comment.