- <%= form.label :description, class: 'block text-lime-200 mb-2' %>
- <%= form.text_area :description, class: 'block w-full px-3 py-2 text-black' %>
+
+ <%= form.label :description, class: 'block text-lime-200 font-semibold mb-2' %>
+ <%= form.text_area :description, rows: 3, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %>
- <%= form.label :icon, class: 'block text-lime-200 mb-2' %>
- <%= form.text_field :icon, class: 'block w-full px-3 py-2 text-black' %>
+
+ <%= form.label :icon, class: 'block text-lime-200 font-semibold mb-2' %>
+ <%= form.text_field :icon, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %>
-
- <%= form.submit 'Save', class: 'bg-lime-500 hover:bg-lime-700 text-white font-bold py-2 px-4 rounded' %>
+
+ <%= form.submit 'Save', class: 'bg-lime-500 hover:bg-lime-700 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out' %>
<% end %>
diff --git a/app/views/links/index.html.erb b/app/views/links/index.html.erb
index b45972e..9bf6aaf 100644
--- a/app/views/links/index.html.erb
+++ b/app/views/links/index.html.erb
@@ -4,25 +4,25 @@
<% end %>
<% @links.each do |link| %>
- -
+
-
<%= link_to link, class: 'hover:underline' do %>
- <% if link.icon.present? %>
+ <% if link.icon.present? %>
<% end %>
<%= link.title %>
<% end %>
- <%= link.description %>
- URL: <%= link.url %>
+ <%= link.description %>
+ URL: <%= link.url %>
Position: <%= link.position %>
Created at: <%= link.created_at.strftime("%d %b %Y %H:%M") %>
<% if user_signed_in? && link.user == current_user %>
<%= link_to 'Edit', edit_link_path(link), class: 'text-lime-300 hover:text-lime-500' %> |
<%= form_with(model: link, method: :delete, class: 'inline') do |form| %>
- <%= form.submit 'Delete', class: 'text-lime-300 hover:text-lime-500 bg-transparent border-none cursor-pointer', data: { confirm: 'Are you sure?' } %>
- <% end %>
+ <%= form.submit 'Delete', class: 'text-lime-300 hover:text-lime-500 bg-transparent border-none cursor-pointer', data: { confirm: 'Are you sure?' } %>
+ <% end %>
<% end %>
diff --git a/app/views/links/user_links.html.erb b/app/views/links/user_links.html.erb
index b08ed63..1a7b3be 100644
--- a/app/views/links/user_links.html.erb
+++ b/app/views/links/user_links.html.erb
@@ -2,45 +2,46 @@