<% if @latest_arts.first&.image&.attached? %>
<% begin %> <%= image_tag @latest_arts&.first&.webp_image&.processed, alt: @latest_arts.image_alt, class: "w-full h-full object-cover" %> <% rescue StandardError => e %> <% Rails.logger.error("图片加载失败: #{e.message}") if defined?(Rails) %> <% end %>
<% end %>

<%= t("home.headline_html") %>

<%= t("home.subtitle") %>

<%= link_to t("button.explore_cities"), cities_path, class: "btn btn-primary btn-lg mt-8 font-sans" %>

<%= t("title.latest_weather_art") %>

<%= render 'home/arts', arts: @latest_arts %> <%#= render 'home/arts', arts: @popular_arts %> <%#= render 'home/arts', arts: @random_arts %>
<%= link_to arts_path, class: "btn btn-primary gap-2" do %> <%= t("button.view_all_weather_arts") %> <% end %>
ImgLab Awards TodayAIWeather - Today AI Weather - Where weather meets AI art | Product Hunt Listed on Turbo0