chiya/lib/chiya_web/controllers/page_html/home.html.heex

41 lines
1.3 KiB
Text
Raw Normal View History

2023-04-03 22:22:02 +02:00
<div class="mx-auto max-w-xl mx-4 lg:mx-0">
<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-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 <- @public_identities do %>
2023-04-03 22:22:02 +02:00
<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 %>
</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}"}
2023-04-06 15:21:03 +02:00
class="rounded-lg -mx-2 -my-0.5 px-2 py-0.5 hover:bg-theme-primary/10 transition"
2023-04-03 22:22:02 +02:00
>
<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>