28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
<div class="w-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<% if notice.present? %>
|
|
<div class="mb-8 mt-4">
|
|
<p class="py-3 px-4 bg-green-50 text-green-700 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% content_for :title, t('.title') %>
|
|
|
|
<div class="flex justify-between items-center mb-12">
|
|
<h1 class="font-bold text-4xl text-gray-900"><%= t('.title') %></h1>
|
|
<%= link_to new_team_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white font-medium hover:bg-blue-700 transition-colors duration-200 flex items-center" do %>
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 mr-2">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
|
</svg>
|
|
<%= t('.new_team') %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div id="teams" class="grid gap-6 mb-8">
|
|
<% @teams.each do |team| %>
|
|
<%= link_to team, class: "block transition-all duration-200 hover:shadow-lg hover:-translate-y-1" do %>
|
|
<%= render team %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|