streak tweaks

This commit is contained in:
drusepth 2022-06-01 16:48:36 -07:00
parent dc2a7ad227
commit 88895cbbbd

View File

@ -48,7 +48,7 @@
</div>
<div class="py-8">
<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="max-w-6xl mx-auto">
<!--
<h2 class="text-lg leading-6 font-medium text-gray-900">Overview</h2>
-->
@ -127,12 +127,12 @@
<dt class="text-sm font-medium text-gray-500 truncate">Your active writing streak</dt>
<dd>
<% 7.times.with_index do |i| %>
<span class="relative inline-block mt-2 mr-2">
<span class="text-gray-600 bg-gray-200 rounded-lg p-2 text-xs"><%= 25 + i %></span>
<%= link_to '#day-breakdown', class: 'group relative inline-block mt-2 mr-2' do %>
<span class="text-gray-600 bg-gray-200 group-hover:bg-gray-100 rounded-lg p-2 text-xs"><%= 25 + i %></span>
<span class="absolute top-0 right-0 inline-flex items-center justify-center px-1 py-1 text-xs font-bold leading-none transform translate-x-1/2 translate-y-1/4 rounded-full">
<i class="material-icons text-xl text-notebook-blue">check_circle</i>
</span>
</span>
<% end %>
<% end %>
</dd>
</dl>