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

34 lines
996 B
Text
Raw Normal View History

2023-07-06 21:28:56 +02:00
<.header class_title="text-theme-primary p-name" class_subtitle="p-summary">
<:title><%= @settings.title %></:title>
<:subtitle><%= @settings.subtitle %></:subtitle>
</.header>
<section class="text-sm my-8">
<ul class="flex flex-wrap gap-3">
<li>
<a
href="#"
2023-06-22 21:09:17 +02:00
class="inline-block text-theme-base px-3 py-2.5 border border-theme-background1 hover:bg-theme-background1 rounded transition font-semibold"
>
<.icon name="hero-megaphone" />
</a>
</li>
<%= for channel <- @channels do %>
<li>
<a
2023-06-02 07:07:22 +02:00
href={~p"/channel/#{channel.slug}"}
class="inline-block text-theme-base px-3 py-2.5 border border-theme-background1 hover:bg-theme-background1 rounded transition font-semibold"
>
<%= channel.name %>
</a>
</li>
<% end %>
</ul>
</section>
<%= if @channel do %>
2023-07-06 21:28:56 +02:00
<section class="mt-8">
<.note_list notes={@channel.notes} layout={@channel.layout} />
</section>
<% end %>