Current section
Files
Jump to
Current section
Files
lib/web/components/layouts/live.html.heex
<meta name="live-transport" content={@live_transport} />
<meta name="live-path" content={@live_path} />
<main class="p-4 min-h-screen flex flex-col">
<.flash :if={Phoenix.Flash.get(@flash, :info)} kind={:info} flash={@flash} />
<.flash :if={Phoenix.Flash.get(@flash, :error)} kind={:error} flash={@flash} />
<header class="flex items-center mb-2">
<div class="md:w-84 mr-3">
<.logo path={@logo_path} params={@params} />
</div>
<.nav socket={@socket} page={@page.name} params={@params} />
<div class="ml-auto flex items-center space-x-3">
<.live_component
module={Observer.Web.SettingsComponent}
id="settings"
user={@user}
theme={@theme}
version={@version}
/>
</div>
</header>
{@inner_content}
<.footer />
</main>