- Implement CitiesController for listing and showing cities - Create City and WeatherArt models with associations - Add views for cities index and show, displaying weather arts - Include routes for cities and active storage for images - Update migrations for weather arts and seed data for testing This commit introduces a comprehensive cities feature that allows users to view cities along with their associated weather art. The implementation includes necessary database migrations, routes, and controller actions to support this new functionality.
18 lines
677 B
Plaintext
18 lines
677 B
Plaintext
<% provide(:title, "Home") %>
|
|
<div class="hero min-h-screen" >
|
|
<div class="hero-overlay bg-opacity-60"></div>
|
|
<div class="hero-content text-center text-neutral-content">
|
|
<div class="max-w-md">
|
|
<h1 class="mb-5 text-5xl font-bold">AI Weather Art</h1>
|
|
<p class="mb-5">Experience weather through AI-generated artwork for cities around the world.</p>
|
|
<div class="flex gap-4 justify-center">
|
|
<%= link_to 'Explore by Calendar', "#", class: "btn btn-primary" %>
|
|
<%= link_to 'Browse Cities', cities_path, class: "btn btn-secondary" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<%#= link_to image_tag("kitten.jpg", alt:"Kitten", width:"200") %>
|