<% featured_art = WeatherArt.includes(:city).joins(:image_attachment).order(created_at: :desc).first %>
<% if featured_art&.image&.attached? %>
<%= image_tag featured_art.image, class: "w-full h-full object-cover object-center" %>
<% end %>

Explore Cities

Discover AI-generated weather art from cities around the world

<%= render 'cities/search_city' %> <% if featured_art %>
Latest from <%= featured_art.city.name %>, <%= featured_art.city.country.name %> <%= featured_art.weather_date.strftime("%B %d, %Y") %>
<% end %>
<% if @current_region %> <% end %>
<% if @cities.empty? %>

No cities found

Try adjusting your search or filters to find what you're looking for.

<% else %>
<%= render partial: 'city', collection: @cities %>
<% end %> <%= render 'shared/pagination', collection: @cities, collection_name: 'cities' %>