33 lines
1,009 B
Text
33 lines
1,009 B
Text
<.header titleclass="p-name" subtitleclass="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="#"
|
|
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
|
|
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 %>
|
|
<section class="mt-8 border-t border-theme-background1">
|
|
<.note_list notes={@channel.notes} layout={@channel.layout} />
|
|
</section>
|
|
<% end %>
|