devel #193

Merged
inhji merged 9 commits from devel into main 2023-07-07 13:55:59 +02:00
Showing only changes of commit 672aff2d52 - Show all commits

View file

@ -1,33 +1,35 @@
<.header class_title="text-theme-primary p-name" class_subtitle="p-summary"> <section class="max-w-2xl mx-auto">
<:title><%= @settings.title %></:title> <.header class_title="text-theme-primary p-name" class_subtitle="p-summary">
<:subtitle><%= @settings.subtitle %></:subtitle> <:title><%= @settings.title %></:title>
</.header> <:subtitle><%= @settings.subtitle %></:subtitle>
</.header>
<section class="text-sm my-8"> <section class="text-sm my-8">
<ul class="flex flex-wrap gap-3"> <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> <li>
<a <a
href={~p"/channel/#{channel.slug}"} href="#"
class="inline-block text-theme-base px-3 py-2.5 border border-theme-background1 hover:bg-theme-background1 rounded transition font-semibold" 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 %> <.icon name="hero-megaphone" />
</a> </a>
</li> </li>
<% end %> <%= for channel <- @channels do %>
</ul> <li>
</section> <a
href={~p"/channel/#{channel.slug}"}
<%= if @channel do %> class="inline-block text-theme-base px-3 py-2.5 border border-theme-background1 hover:bg-theme-background1 rounded transition font-semibold"
<section class="mt-8"> >
<.note_list notes={@channel.notes} layout={@channel.layout} /> <%= channel.name %>
</a>
</li>
<% end %>
</ul>
</section> </section>
<% end %>
<%= if @channel do %>
<section class="mt-8">
<.note_list notes={@channel.notes} layout={@channel.layout} />
</section>
<% end %>
</section>