2024-05-26 00:04:26 +00:00
|
|
|
<div class="w-full">
|
2024-06-16 21:11:03 +00:00
|
|
|
<div
|
|
|
|
class="relative w-full px-4 py-6 bg-white shadow-lg dark:bg-gray-700 rounded"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500"
|
|
|
|
>
|
2024-05-26 00:04:26 +00:00
|
|
|
{{ if eq .Window "WEEK" }}
|
2024-06-16 21:11:03 +00:00
|
|
|
Weekly Read Streak
|
|
|
|
{{ else }}
|
|
|
|
Daily Read Streak
|
2024-05-26 00:04:26 +00:00
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
<div class="flex items-end my-6 space-x-2">
|
2024-06-16 21:11:03 +00:00
|
|
|
<p class="text-5xl font-bold text-black dark:text-white">
|
|
|
|
{{ .CurrentStreak }}
|
|
|
|
</p>
|
2024-05-26 00:04:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="dark:text-white">
|
2024-06-16 21:11:03 +00:00
|
|
|
<div
|
|
|
|
class="flex items-center justify-between pb-2 mb-2 text-sm border-b border-gray-200"
|
|
|
|
>
|
2024-05-26 00:04:26 +00:00
|
|
|
<div>
|
|
|
|
<p>
|
2024-06-16 21:11:03 +00:00
|
|
|
{{ if eq .Window "WEEK" }}
|
|
|
|
Current Weekly Streak
|
|
|
|
{{ else }}
|
|
|
|
Current Daily Streak
|
|
|
|
{{ end }}
|
2024-05-26 00:04:26 +00:00
|
|
|
</p>
|
2024-06-16 21:11:03 +00:00
|
|
|
<div class="flex items-end text-sm text-gray-400">
|
|
|
|
{{ .CurrentStreakStartDate }} ➞ {{ .CurrentStreakEndDate }}
|
|
|
|
</div>
|
2024-05-26 00:04:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex items-end font-bold">{{ .CurrentStreak }}</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center justify-between pb-2 mb-2 text-sm">
|
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
{{ if eq .Window "WEEK" }}
|
2024-06-16 21:11:03 +00:00
|
|
|
Best Weekly Streak
|
|
|
|
{{ else }}
|
|
|
|
Best Daily Streak
|
2024-05-26 00:04:26 +00:00
|
|
|
{{ end }}
|
|
|
|
</p>
|
2024-06-16 21:11:03 +00:00
|
|
|
<div class="flex items-end text-sm text-gray-400">
|
|
|
|
{{ .MaxStreakStartDate }} ➞ {{ .MaxStreakEndDate }}
|
|
|
|
</div>
|
2024-05-26 00:04:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex items-end font-bold">{{ .MaxStreak }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|