Skip to content

Commit 657ba99

Browse files
committed
style: inline paragraph for recently shipping repos
1 parent 6277ce8 commit 657ba99

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

app/views/pages/home.html.erb

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,14 @@
1919
</p>
2020

2121
<% if @recently_active_repos.any? %>
22-
<div class="recently-active mt-4">
23-
<p class="text-sm text-[#3B2C22]/60 mb-2">Recently shipping:</p>
24-
<ul class="space-y-1">
25-
<% @recently_active_repos.each do |repo| %>
26-
<li class="font-mono text-sm">
27-
<%= link_to repo.name, repo.html_url, target: "_blank", rel: "noopener" %>
28-
<span class="text-[#3B2C22]/50">(<%= repo.detailed_time_ago %>)</span>
29-
</li>
30-
<% end %>
31-
</ul>
32-
</div>
22+
<p class="intro-tagline mt-2">
23+
Recently shipping
24+
<% @recently_active_repos.each_with_index do |repo, index| -%>
25+
<% if index == @recently_active_repos.size - 1 && @recently_active_repos.size > 1 %> and <% elsif index > 0 %>, <% end -%>
26+
<strong><%= link_to repo.name, repo.html_url, target: "_blank", rel: "noopener" %></strong>
27+
<%- end %>
28+
(latest: <%= @recently_active_repos.first.detailed_time_ago %>).
29+
</p>
3330
<% end %>
3431
</div>
3532

0 commit comments

Comments
 (0)