diff --git a/app/assets/stylesheets/loftwah.scss b/app/assets/stylesheets/loftwah.scss index 1a356cd..923a148 100644 --- a/app/assets/stylesheets/loftwah.scss +++ b/app/assets/stylesheets/loftwah.scss @@ -149,4 +149,38 @@ background-color: #DC3545; color: #fff; } - \ No newline at end of file + + .link-item { + text-decoration: none; + transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out; + width: 150px; /* Fixed width */ + height: 80px; /* Fixed height */ + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + + .link-item:hover { + transform: scale(1.1); + background-color: rgba(255, 255, 255, 0.1); + border-radius: 5px; + } + + .favicon-container { + width: 32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + } + + .link-favicon { + max-width: 100%; + max-height: 100%; + } + + .link-text { + padding: 5px; + } + \ No newline at end of file diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 2f6e935..9e9be45 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -37,12 +37,12 @@ <% @links.each_with_index do |link, index| %> <% if link.links_enabled && !link.public && !link.links_pinned %>
- + favicon - <%= link.links_display_name %> + <%= link.links_display_name %>
<% end %>