From f79316a916db7edbf231aaac5183ee60b450dbbe Mon Sep 17 00:00:00 2001 From: KKlochko Date: Mon, 12 May 2025 21:01:18 +0300 Subject: [PATCH] Update to make the sticky footer. --- .../components/layouts/app.html.heex | 28 ++++++++++--------- .../controllers/error_html/404.html.heex | 4 +-- .../controllers/error_html/500.html.heex | 4 +-- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/lib/decentralised_book_index_web/components/layouts/app.html.heex b/lib/decentralised_book_index_web/components/layouts/app.html.heex index 5e47000..6556152 100644 --- a/lib/decentralised_book_index_web/components/layouts/app.html.heex +++ b/lib/decentralised_book_index_web/components/layouts/app.html.heex @@ -1,15 +1,17 @@ -
- <.partial_navbar - page_title={assigns[:page_title]} - current_user={assigns[:current_user]} - /> -
+
+
+ <.partial_navbar + page_title={assigns[:page_title]} + current_user={assigns[:current_user]} + /> +
-
-
- <.flash_group flash={@flash} /> - {@inner_content} -
-
+
+
+ <.flash_group flash={@flash} /> + {@inner_content} +
+
-<.partial_footer /> \ No newline at end of file + <.partial_footer /> +
diff --git a/lib/decentralised_book_index_web/controllers/error_html/404.html.heex b/lib/decentralised_book_index_web/controllers/error_html/404.html.heex index 41113fe..7ca43cc 100644 --- a/lib/decentralised_book_index_web/controllers/error_html/404.html.heex +++ b/lib/decentralised_book_index_web/controllers/error_html/404.html.heex @@ -11,12 +11,12 @@ - +
<.partial_navbar page_title="404" current_user={assigns[:current_user]} />
-
+
<%= if Map.has_key?(assigns, :flash) do %> <.flash_group flash={@flash} /> diff --git a/lib/decentralised_book_index_web/controllers/error_html/500.html.heex b/lib/decentralised_book_index_web/controllers/error_html/500.html.heex index 42f8185..d0f399c 100644 --- a/lib/decentralised_book_index_web/controllers/error_html/500.html.heex +++ b/lib/decentralised_book_index_web/controllers/error_html/500.html.heex @@ -11,12 +11,12 @@ - +
<.partial_navbar page_title="505" current_user={assigns[:current_user]} />
-
+
<%= if Map.has_key?(assigns, :flash) do %> <.flash_group flash={@flash} />