* tooltips 1.0.1 * tooltips 1.0.1 * profile layout * fix * whoops * better github repos * spec * brining back doc, and making liitle fixes * button placement, stats styling * rename
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
<% if repositories.present? %>
|
|
<div class="crayons-card crayons-card--secondary">
|
|
<header class="crayons-card__header">
|
|
<h3 class="crayons-subtitle-3 flex items-center">GitHub Repositories</h3>
|
|
</header>
|
|
|
|
<div>
|
|
<% repositories.each do |repo| %>
|
|
<a href="<%= repo.url %>" target="_blank" rel="noopener" class="crayons-link crayons-link--contentful">
|
|
<p class="fw-bold flex items-center">
|
|
<%= repo.name %>
|
|
</p>
|
|
<% if repo.description.present? %>
|
|
<p class="fs-s color-base-80 mb-1"><%= EmojiConverter.call(repo.description) %></p>
|
|
<% end %>
|
|
<p class="fs-s color-base-60 flex items-center">
|
|
<% if repo.fork %>
|
|
<span class="crayons-indicator mr-3">Fork</span>
|
|
<% end %>
|
|
|
|
<% if repo.language %>
|
|
<%= repo.language %>
|
|
<% end %>
|
|
|
|
<% if repo.language && repo.stargazers_count.to_i > 0 %>
|
|
<span class="opacity-50 inline-block px-1">•</span>
|
|
<% end %>
|
|
|
|
<% if repo.stargazers_count.to_i > 0 %>
|
|
<%= pluralize repo.stargazers_count, "star" %>
|
|
<% end %>
|
|
</p>
|
|
</a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|