Skip to content

Commit 5e22d53

Browse files
committed
feat(til): add CTA to til show
1 parent 5ffce92 commit 5e22d53

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

assets/css/components.css

+4
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ nav.pagination a:hover {
189189
.post aside ul a.post__like-link:not(.liked) .post__like-heart {
190190
animation: heartbeat 0.5s infinite ease-out alternate;
191191
}
192+
.post-cta {
193+
display: flex;
194+
justify-content: center;
195+
}
192196
ul.post_list li {
193197
padding: 0.2rem;
194198
margin: 0.2rem 0;

lib/tilex_web/templates/post/show.html.eex

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
twitter_shareable: assigns[:twitter_shareable]
55
%>
66

7+
<div class="post-cta">
8+
<%= link(to: Routes.channel_path(@conn, :show, @post.channel.name)) do %>
9+
See More #<%= @post.channel.name %> TILs
10+
<% end %>
11+
</div>
12+
713
<%= if TilexWeb.PostView.more_info?(@post.channel) do %>
814
<div class="more-info">
915
<%= render TilexWeb.SharedView, "_#{@post.channel.name}.html" %>

0 commit comments

Comments
 (0)