2025-01-20 18:02:28 +08:00
|
|
|
<div>
|
|
|
|
<!-- 首屏展示区 -->
|
|
|
|
<section class="h-screen-90 relative overflow-hidden">
|
2025-02-16 01:14:25 +08:00
|
|
|
<% if @latest_arts.first&.image&.attached? %>
|
2025-01-20 18:02:28 +08:00
|
|
|
<div class="absolute inset-0">
|
2025-02-17 00:15:32 +08:00
|
|
|
<%= image_tag @latest_arts.first.webp_image.processed, class: "w-full h-full object-cover" %>
|
2025-01-20 18:02:28 +08:00
|
|
|
<div class="absolute inset-0 bg-gradient-to-r from-base-100/90 to-base-100/50"></div>
|
2025-01-19 22:08:05 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2025-01-20 18:02:28 +08:00
|
|
|
|
|
|
|
<div class="container mx-auto px-4 h-full flex items-center relative">
|
|
|
|
<div class="max-w-2xl space-y-6">
|
|
|
|
<h1 class="text-5xl md:text-6xl font-display font-bold leading-tight">
|
|
|
|
Where Weather Meets<br>Artificial Intelligence
|
|
|
|
</h1>
|
|
|
|
<p class="text-xl text-base-content/70 font-sans">
|
|
|
|
Experience weather through the lens of AI-generated art,
|
|
|
|
bringing a new perspective to daily meteorological phenomena.
|
|
|
|
</p>
|
|
|
|
<%= link_to "Explore Cities", cities_path,
|
|
|
|
class: "btn btn-primary btn-lg mt-8 font-sans" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2025-01-19 22:08:05 +08:00
|
|
|
|
|
|
|
<!-- 最新天气艺术 -->
|
2025-01-20 18:02:28 +08:00
|
|
|
<section class="container mx-auto px-4 py-16 space-y-12">
|
2025-02-13 17:48:39 +08:00
|
|
|
<h2 class="text-3xl font-display font-bold text-center">Latest Weather Art</h2>
|
|
|
|
<%= render 'home/arts', arts: @latest_arts %>
|
|
|
|
<h2 class="text-3xl font-display font-bold text-center">Popular Weather Art</h2>
|
|
|
|
<%= render 'home/arts', arts: @popular_arts %>
|
2025-02-15 17:47:44 +08:00
|
|
|
<!-- <h2 class="text-3xl font-display font-bold text-center">Random Weather Art</h2>-->
|
|
|
|
<%#= render 'home/arts', arts: @random_arts %>
|
2025-01-20 18:02:28 +08:00
|
|
|
</section>
|
2025-01-23 14:10:13 +08:00
|
|
|
</div>
|
2025-01-26 12:35:55 +08:00
|
|
|
<div class="text-center mt-12 mb-12">
|
2025-01-23 14:10:13 +08:00
|
|
|
<%= link_to arts_path, class: "btn btn-primary btn-lg gap-2" do %>
|
|
|
|
View All Weather Arts
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 5l7 7m0 0l-7 7m7-7H3" />
|
|
|
|
</svg>
|
|
|
|
<% end %>
|
2025-01-19 22:08:05 +08:00
|
|
|
</div>
|