Add "On this day" section to stats

This commit is contained in:
Claudio Ortolina
2025-08-29 12:20:46 +03:00
parent a0a71b3a47
commit f47cbc77f5
6 changed files with 128 additions and 2 deletions
@@ -487,7 +487,16 @@
</.tabs>
</div>
<div class="mt-5 grid grid-cols-1 lg:grid-cols-2 gap-5">
<div class="mt-5 grid grid-cols-1 lg:grid-cols-3 gap-4">
<div class="px-4 shadow-sm">
<h1 class="text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
{gettext("On This day")}
</h1>
<.records_on_this_day
records={@streams.records_on_this_day}
record_show_path={fn record -> ~p"/collection/#{record}" end}
/>
</div>
<div>
<h1 class="text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
{gettext("Top %{n} Artists", %{n: length(@records_by_artist)})}