diff --git a/app/models/weather_art.rb b/app/models/weather_art.rb index 67684e5..e311aeb 100644 --- a/app/models/weather_art.rb +++ b/app/models/weather_art.rb @@ -167,6 +167,10 @@ class WeatherArt < ApplicationRecord ) end + def image_alt + "#{self.city.full_name} Weather Art - #{self.description} at #{self.temperature}°C on #{self.formatted_time(:date)}" + end + private def create_overlay_text diff --git a/app/views/arts/index.html.erb b/app/views/arts/index.html.erb index 466c7aa..6ba4dec 100644 --- a/app/views/arts/index.html.erb +++ b/app/views/arts/index.html.erb @@ -7,9 +7,8 @@ <% if featured_art&.image&.attached? %>
<%= button_to omniauth_authorize_path(resource_name, provider), class: "btn btn-outline w-full gap-2", data: { turbo: false } do %> - <%= image_tag("#{provider}.svg", class: "w-5 h-5") if File.exist?(Rails.root.join("app/assets/images/#{provider}.svg")) %> + <%= image_tag("#{provider}.svg", alt: "#{provider}", class: "w-5 h-5") if File.exist?(Rails.root.join("app/assets/images/#{provider}.svg")) %> Sign in with <%= OmniAuth::Utils.camelize(provider) %>
<% end %> <% end %> diff --git a/app/views/home/_arts.html.erb b/app/views/home/_arts.html.erb index 840a6bc..b14a176 100644 --- a/app/views/home/_arts.html.erb +++ b/app/views/home/_arts.html.erb @@ -4,7 +4,9 @@