mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-09-19 11:03:52 +00:00
remove svg on root and allow navbar to exist across all pages
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user