Skip to content

Commit

Permalink
Gradient tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpigford committed May 2, 2024
1 parent 1133fd2 commit d7acc44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/articles/_article.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= link_to article, class: "block bg-white shadow-xs rounded-xl border p-1" do %>
<%= tag.div class: "min-h-60 rounded-lg bg-gradient-to-b #{article_gradient(article)}" %>
<%= tag.div class: "min-h-24 rounded-lg bg-gradient-to-b #{article_gradient(article)}" %>
<div class="flex flex-col justify-between px-4 py-5 text-left min-h-60">
<div class="space-y-2">
<span class="text-xs font-medium text-gray-500 uppercase">
Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<% end %>

<div class="max-w-[720px] mx-auto text-center space-y-4 mt-10">
<%= tag.div class: "min-h-[420px] rounded-lg bg-gradient-to-b #{article_gradient(@article)}" %>
<%= tag.div class: "min-h-[120px] rounded-lg bg-gradient-to-b #{article_gradient(@article)}" %>
<div class="max-w-[520px] mx-auto space-y-4">
<div class="space-y-4">
<span class="text-xs font-medium text-gray-500 uppercase">
Expand Down

0 comments on commit d7acc44

Please sign in to comment.