From 816064e57d1a1cdb0927a4c7e03b46b5a22c302e Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 11 Aug 2026 22:18:27 +0200 Subject: [PATCH] remove svg on root and allow navbar to exist across all pages --- lib/chesstrainer_web/components/layouts.ex | 22 +++++++---- .../components/layouts/root.html.heex | 1 + .../controllers/page_html/home.html.heex | 39 ------------------- 3 files changed, 15 insertions(+), 47 deletions(-) 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 @@ -