remove svg on root and allow navbar to exist across all pages

This commit is contained in:
2026-08-11 22:18:27 +02:00
parent ec581b24e7
commit 816064e57d
3 changed files with 15 additions and 47 deletions
+14 -8
View File
@@ -34,6 +34,20 @@ defmodule ChesstrainerWeb.Layouts do
slot :inner_block, required: true
def app(assigns) do
~H"""
<main class="px-4 py-20 sm:px-6 lg:px-8">
<div class="mx-auto max-w-2xl space-y-4">
{render_slot(@inner_block)}
</div>
</main>
<.flash_group flash={@flash} />
"""
end
@doc """
Renders the application navbar.
"""
def navbar(assigns) do
~H"""
<header class="navbar px-4 sm:px-6 lg:px-8">
<div class="flex-1">
@@ -61,14 +75,6 @@ defmodule ChesstrainerWeb.Layouts do
</ul>
</div>
</header>
<main class="px-4 py-20 sm:px-6 lg:px-8">
<div class="mx-auto max-w-2xl space-y-4">
{render_slot(@inner_block)}
</div>
</main>
<.flash_group flash={@flash} />
"""
end
@@ -40,6 +40,7 @@
</script>
</head>
<body>
<Layouts.navbar />
{@inner_content}
</body>
</html>