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

41 lines
1.3 KiB
Text
Raw Normal View History

2023-03-05 16:07:40 +01:00
<div class="px-4 py-10 sm:py-28 sm:px-6 lg:px-8 xl:py-32 xl:px-28">
<div class="mx-auto max-w-xl lg:mx-0">
<h1 class="mt-4 text-[2rem] font-semibold leading-10 tracking-tighter text-gray-900">
<%= @settings.title %>
</h1>
<p class="mt-4 text-base leading-7 text-gray-600">
<%= @settings.subtitle %>
2023-03-05 16:07:40 +01:00
</p>
<div class="w-full mt-6 sm:w-auto">
<div class="flex gap-4 text-sm leading-6 text-gray-700">
<%= for identity <- @identities do %>
<div>
<a
rel={identity.rel}
href={identity.url}
target="_blank"
class="group -mx-2 -my-0.5 inline-flex items-center gap-3 rounded-lg px-2 py-0.5 hover:bg-gray-50 hover:text-gray-900"
>
<%= raw identity.icon %>
<%= identity.name %>
</a>
</div>
<% end %>
2023-03-05 16:07:40 +01:00
</div>
</div>
<%= if @channel do %>
<div class="w-full mt-6 sm:w-auto">
<%= for note <- @channel.notes do %>
<a href={~p"/n/#{note.slug}"}>
<.header>
<%= note.name %>
2023-03-13 03:26:39 +01:00
<:subtitle><%= pretty_date(note.published_at) %></:subtitle>
</.header>
</a>
<% end %>
</div>
<% end %>
2023-03-05 16:07:40 +01:00
</div>
</div>