<% content_for :head do %> <% end %>
<%= link_to city_path(@weather_art.city), class: "btn btn-ghost btn-md gap-2 bg-base-200 hover:bg-base-300 transition-all duration-300" do %> Back to <%= @weather_art.city.name %> <% end %>
<% if @weather_art.image.attached? %>
<% end %>

<%= @weather_art.city.full_name %> Weather Art

<%= @weather_art.formatted_time(:date) %>
<%= @weather_art.formatted_time(:time, true) %>

<%= weather_description_icon(@weather_art.description) %> <%= @weather_art.description %>

<%= render 'weather_stats', weather_art: @weather_art %>
<%= render 'shared/map', city: @weather_art.city %>
<%= render 'shared/auto_ad' %>

AI Prompt

<%= @weather_art.prompt %>

<% # 构建更吸引人的分享标题 share_title = [ "🎨 Amazing AI Weather Art: #{@weather_art.city.full_name}", "#{@weather_art.description} at #{@weather_art.temperature}°C", "#{@weather_art.formatted_time(:all, true)}" ].join("\n") # 构建更有描述性的分享描述 share_description = [ "Discover this stunning AI-generated weather art!", "#{@weather_art.description} in #{@weather_art.city.full_name}.", "Created at #{@weather_art.formatted_time(:time, true)}", "Visit TodayAIWeather to see more amazing weather art." ].join(" ") %> <%= render "shared/share_social", title: share_title, description: share_description, tags: "AIWeather,Art,AIart,Weather,#{@weather_art.city&.name},#{@weather_art&.city&.country&.name}", image: url_for(@weather_art.webp_image.processed) %>