chiya/lib/chiya_web/components/layouts/app.html.heex

52 lines
1.3 KiB
Text
Raw Permalink Normal View History

2023-03-05 16:07:40 +01:00
<header class="px-4 sm:px-6 lg:px-8">
2023-04-01 16:05:20 +02:00
<div class="flex items-center justify-end border-b border-gray-300 dark:border-gray-800 py-3">
2023-05-20 19:26:58 +02:00
<% items = [
%{
path: ~p"/admin/notes",
icon: "hero-document-text-solid",
name: "Notes"
},
%{
path: ~p"/admin/channels",
icon: "hero-speaker-wave-solid",
name: "Channels"
},
2023-09-10 22:55:16 +02:00
%{
path: ~p"/admin/tags",
icon: "hero-document-text-solid",
name: "Tags"
},
%{
path: ~p"/admin/identities",
icon: "hero-user-solid",
name: "Identities"
},
2023-06-06 22:00:42 +02:00
%{
path: ~p"/admin/tokens",
icon: "hero-key-solid",
name: "Tokens"
},
%{
path: ~p"/admin/settings",
icon: "hero-wrench-screwdriver-solid",
name: "Settings"
}
] %>
2023-03-05 16:07:40 +01:00
<div class="flex items-center gap-4">
<%= for item <- items do %>
<.link
href={item.path}
class="text-xs font-semibold leading-6 text-gray-900 hover:text-gray-700 dark:text-gray-200"
>
<.icon name={item.icon} class="w-4 h-4" />
<span class="align-sub"><%= item.name %></span>
</.link>
<% end %>
2023-03-05 16:07:40 +01:00
</div>
</div>
</header>
2023-09-10 10:58:08 +02:00
<main class="container py-6">
<.flash_group flash={@flash} />
<%= @inner_content %>
2023-03-05 16:07:40 +01:00
</main>