2023-04-03 22:22:02 +02:00
|
|
|
<div class="mx-auto max-w-xl mx-4 lg:mx-0">
|
2023-04-04 15:36:05 +02:00
|
|
|
<h1 class="mt-16 text-3xl font-semibold font-serif leading-10 tracking-tighter text-theme-heading">
|
2023-04-03 22:22:02 +02:00
|
|
|
<%= @settings.title %>
|
|
|
|
</h1>
|
|
|
|
<p class="mt-4 text-base leading-7 text-theme-base">
|
|
|
|
<%= @settings.subtitle %>
|
|
|
|
</p>
|
2023-03-14 22:57:40 +01:00
|
|
|
|
2023-04-03 22:22:02 +02:00
|
|
|
<div class="w-full mt-6 sm:w-auto">
|
|
|
|
<div class="flex gap-4 text-sm leading-6 text-theme-base">
|
|
|
|
<%= for identity <- @identities do %>
|
|
|
|
<div>
|
2023-03-31 16:58:10 +02:00
|
|
|
<a
|
2023-04-03 22:22:02 +02:00
|
|
|
rel={identity.rel}
|
|
|
|
href={identity.url}
|
|
|
|
class="group -mx-2 -my-0.5 inline-flex items-center gap-3 rounded-lg px-2 py-0.5 hover:bg-theme-primary/10 transition"
|
2023-03-31 16:58:10 +02:00
|
|
|
>
|
2023-04-03 22:22:02 +02:00
|
|
|
<%= raw(identity.icon) %>
|
|
|
|
<%= identity.name %>
|
2023-03-11 00:05:16 +01:00
|
|
|
</a>
|
2023-04-03 22:22:02 +02:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2023-03-05 16:07:40 +01:00
|
|
|
</div>
|
2023-04-03 22:22:02 +02:00
|
|
|
<%= if @channel do %>
|
|
|
|
<div class="mt-6 sm:w-auto flex flex-col gap-1.5">
|
|
|
|
<%= for note <- @channel.notes do %>
|
|
|
|
<a
|
|
|
|
href={~p"/#{note.slug}"}
|
|
|
|
class="rounded-lg -mx-2 -my-0.5 px-2 py-0.5 hover:bg-theme-primary/30 transition"
|
|
|
|
>
|
|
|
|
<span class="text-theme-heading text-lg font-semibold leading-8">
|
|
|
|
<%= note.name %>
|
|
|
|
</span>
|
|
|
|
<span class="text-theme-base text-sm"><%= pretty_date(note.published_at) %></span>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2023-03-05 16:07:40 +01:00
|
|
|
</div>
|