freedive/lib/freedive_web/components/layouts/app.html.heex

112 lines
3.2 KiB
Text

<main class="px-4 py-20 sm:px-6 lg:px-8">
<div class="mx-auto max-w-2xl">
<.flash_group flash={@flash} />
<.navbar is-fixed-top>
<.navbar_brand>
<.navbar_item>
<.title is-4>
Freedive
</.title>
</.navbar_item>
<.navbar_burger target="navbar_top" />
</.navbar_brand>
<.navbar_menu id="navbar_top">
<%= if @current_user do %>
<.navbar_start>
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Compute
</.navbar_link>
<.navbar_dropdown>
<.navbar_item>
<.link>Bastille Jails</.link>
</.navbar_item>
</.navbar_dropdown>
</.navbar_item>
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Storage
</.navbar_link>
<.navbar_dropdown>
<.navbar_item>
<.link>Shared Folders</.link>
</.navbar_item>
</.navbar_dropdown>
</.navbar_item>
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Network
</.navbar_link>
<.navbar_dropdown>
<.navbar_item>
<.link>Private Network</.link>
</.navbar_item>
</.navbar_dropdown>
</.navbar_item>
</.navbar_start>
<% end %>
<.navbar_end>
<%= if @current_user do %>
``
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
System
</.navbar_link>
<.navbar_dropdown>
<.navbar_item>
<.link>Software Updates</.link>
</.navbar_item>
<.navbar_divider />
<.navbar_item>
<.link>Packages</.link>
</.navbar_item>
<.navbar_item>
<.link>Services</.link>
</.navbar_item>
</.navbar_dropdown>
</.navbar_item>
<% end %>
<.navbar_item has-dropdown is-hoverable>
<.navbar_link>
Account
</.navbar_link>
<.navbar_dropdown>
<%= if @current_user do %>
<.navbar_item>
<%= @current_user.email %>
</.navbar_item>
<.navbar_item>
<.link href={~p"/users/settings"}>
Settings
</.link>
</.navbar_item>
<.navbar_item>
<.link href={~p"/users/log_out"} method="delete">
Log out
</.link>
</.navbar_item>
<% else %>
<.navbar_item>
<.link href={~p"/users/log_in"}>
Log in
</.link>
</.navbar_item>
<% end %>
</.navbar_dropdown>
</.navbar_item>
</.navbar_end>
</.navbar_menu>
</.navbar>
<%= @inner_content %>
</div>
</main>