diff --git a/lib/dpul_collections_web/components/footer_component.ex b/lib/dpul_collections_web/components/footer_component.ex index aaa53272..4609f3ed 100644 --- a/lib/dpul_collections_web/components/footer_component.ex +++ b/lib/dpul_collections_web/components/footer_component.ex @@ -1,35 +1,37 @@ # lib/my_app_web/components/header_component.ex defmodule DpulCollectionsWeb.FooterComponent do - use DpulCollectionsWeb, :html - import DpulCollectionsWeb.Gettext - - def footer(assigns) do - ~H""" - - """ - end - end \ No newline at end of file + use DpulCollectionsWeb, :html + import DpulCollectionsWeb.Gettext + + def footer(assigns) do + ~H""" + + """ + end +end diff --git a/lib/dpul_collections_web/components/header_component.ex b/lib/dpul_collections_web/components/header_component.ex index ff7d8273..a6df7a45 100644 --- a/lib/dpul_collections_web/components/header_component.ex +++ b/lib/dpul_collections_web/components/header_component.ex @@ -1,44 +1,53 @@ # lib/my_app_web/components/header_component.ex defmodule DpulCollectionsWeb.HeaderComponent do - use DpulCollectionsWeb, :html - import DpulCollectionsWeb.Gettext - - def header(assigns) do - ~H""" -
- -
- <.link navigate={~p"/"} class="text-2xl hidden sm:inline-block text-white hover:underline hover:underline-offset-8 hover:decoration-orange-500 hover:decoration-2"> - <%= gettext("Digital Collections") %> - -
- -
- """ - end - end \ No newline at end of file + use DpulCollectionsWeb, :html + import DpulCollectionsWeb.Gettext + + def header(assigns) do + ~H""" +
+ +
+ <.link + navigate={~p"/"} + class="text-2xl hidden sm:inline-block text-white hover:underline hover:underline-offset-8 hover:decoration-orange-500 hover:decoration-2" + > + <%= gettext("Digital Collections") %> + +
+ +
+ """ + end +end diff --git a/lib/dpul_collections_web/components/layouts/root.html.heex b/lib/dpul_collections_web/components/layouts/root.html.heex index fb8415ad..42647502 100644 --- a/lib/dpul_collections_web/components/layouts/root.html.heex +++ b/lib/dpul_collections_web/components/layouts/root.html.heex @@ -25,7 +25,10 @@ Skip To Content + href="#main-content" + > + Skip To Content +
<%= DpulCollectionsWeb.HeaderComponent.header(assigns) %>