diff --git a/lib/chesstrainer_web/components/layouts.ex b/lib/chesstrainer_web/components/layouts.ex index 1f36898..76cd73b 100644 --- a/lib/chesstrainer_web/components/layouts.ex +++ b/lib/chesstrainer_web/components/layouts.ex @@ -34,6 +34,20 @@ defmodule ChesstrainerWeb.Layouts do slot :inner_block, required: true def app(assigns) do + ~H""" +
+
+ {render_slot(@inner_block)} +
+
+ <.flash_group flash={@flash} /> + """ + end + + @doc """ + Renders the application navbar. + """ + def navbar(assigns) do ~H""" - -
-
- {render_slot(@inner_block)} -
-
- - <.flash_group flash={@flash} /> """ end diff --git a/lib/chesstrainer_web/components/layouts/root.html.heex b/lib/chesstrainer_web/components/layouts/root.html.heex index 9bb7846..fbd2996 100644 --- a/lib/chesstrainer_web/components/layouts/root.html.heex +++ b/lib/chesstrainer_web/components/layouts/root.html.heex @@ -40,6 +40,7 @@ + {@inner_content} diff --git a/lib/chesstrainer_web/controllers/page_html/home.html.heex b/lib/chesstrainer_web/controllers/page_html/home.html.heex index 5a550fd..43c96ee 100644 --- a/lib/chesstrainer_web/controllers/page_html/home.html.heex +++ b/lib/chesstrainer_web/controllers/page_html/home.html.heex @@ -1,43 +1,4 @@ -