diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index c9858accb..26648045c 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -2667,6 +2667,21 @@ table { padding: $line-height / 2 0; } } + + .figure-card { + + figcaption { + z-index: 3; + } + + .gradient { + background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.01) 1%, rgba(0, 0, 0, 1) 100%); + height: 100%; + position: absolute; + width: 100%; + z-index: 2; + } + } } .feeds-list { diff --git a/app/views/welcome/_card.html.erb b/app/views/welcome/_card.html.erb index de8f143cf..71e3a9407 100644 --- a/app/views/welcome/_card.html.erb +++ b/app/views/welcome/_card.html.erb @@ -1,6 +1,7 @@
<%= link_to card.link_url do %>
+
<% if card.image.present? %> <%= image_tag(card.image_url(:large), alt: card.image.title) %> <% end %>