Add layout for public pages
This commit is contained in:
13
lib/outlook_web/components/layouts/public.html.heex
Normal file
13
lib/outlook_web/components/layouts/public.html.heex
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<header class="">
|
||||||
|
<a href="/">
|
||||||
|
<img class="w-full" src="/images/elbefoto-lg.jpg"
|
||||||
|
src-set="elbefoto-xxl.jpg 4496w, /images/elbefoto-lg.jpg 2248w, /images/elbefoto-md.jpg 1199w, /images/elbefoto-sm.jpg 991w, /images/elbefoto-xs.jpg 767w">
|
||||||
|
</a>
|
||||||
|
</header>
|
||||||
|
<main class="px-4 py-20 sm:px-6 lg:px-8">
|
||||||
|
<div class="mx-auto max-w-4xl">
|
||||||
|
<.flash kind={:info} title="Success!" flash={@flash} />
|
||||||
|
<.flash kind={:error} title="Error!" flash={@flash} />
|
||||||
|
<%= @inner_content %>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
@ -15,6 +15,7 @@ defmodule OutlookWeb.Router do
|
|||||||
|
|
||||||
pipeline :public_root_layout do
|
pipeline :public_root_layout do
|
||||||
plug :put_root_layout, "proot.html"
|
plug :put_root_layout, "proot.html"
|
||||||
|
plug :put_layout, {OutlookWeb.Layouts, :public}
|
||||||
end
|
end
|
||||||
|
|
||||||
pipeline :api do
|
pipeline :api do
|
||||||
|
|||||||
Reference in New Issue
Block a user