Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes mobile header and translations in footer #282

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/dpul_collections_web/components/layouts/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<%= assigns[:page_title] || "DpulCollections" %>
</.live_title>
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
<link rel="stylesheet" href="https://unpkg.com/lux-design-system@5.8.1/dist/style.css" />
<link rel="stylesheet" href="https://unpkg.com/lux-design-system@6.0.0/dist/style.css" />
<script src="https://unpkg.com/vue@3/dist/vue.global.js">
</script>
<script src="https://unpkg.com/lux-design-system@5.8.1/dist/lux-styleguidist.iife.js">
<script src="https://unpkg.com/lux-design-system@6.0.0/dist/lux-styleguidist.iife.js">
</script>
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
</script>
Expand All @@ -28,7 +28,7 @@
<div class="flex-1">
<%= @inner_content %>
</div>
<%= raw(DpulCollectionsWeb.LuxComponents.footer()) %>
<%= DpulCollectionsWeb.LuxComponents.footer(assigns) %>
</div>
</body>
</html>
16 changes: 13 additions & 3 deletions lib/dpul_collections_web/components/lux-components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,19 @@ defmodule DpulCollectionsWeb.LuxComponents do
"""
end

def footer() do
~S"""
<lux-university-footer class="text-center" type="footer" theme="shade"></lux-university-footer>
def footer(assigns) do
~H"""
<lux-university-footer
class="text-center"
type="footer"
theme="shade"
v-bind:links={"[
{text: '#{gettext("Copyright Policy")}', href: 'https://library.princeton.edu/about/policies/copyright-and-permissions-policies'},
{text: '#{gettext("Privacy Notice")}', href: 'https://www.princeton.edu/privacy-notice'},
{text: '#{gettext("Accessibility Help")}', href: 'https://accessibility.princeton.edu/help'}
]"}
>
</lux-university-footer>
"""
end
end
43 changes: 29 additions & 14 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ msgstr ""
msgid "Hang in there while we get back on track"
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:27
#: lib/dpul_collections_web/live/search_live.ex:75
#: lib/dpul_collections_web/live/home_live.ex:25
#: lib/dpul_collections_web/live/search_live.ex:94
#, elixir-autogen, elixir-format
msgid "Search"
msgstr ""
Expand Down Expand Up @@ -58,7 +58,7 @@ msgstr ""
msgid "Download"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:105
#: lib/dpul_collections_web/live/search_live.ex:124
#, elixir-autogen, elixir-format
msgid "Apply"
msgstr ""
Expand All @@ -73,58 +73,73 @@ msgstr ""
msgid "Language"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:232
#: lib/dpul_collections_web/live/search_live.ex:248
#, elixir-autogen, elixir-format
msgid "Next"
msgstr ""

#: lib/dpul_collections_web/live/item_live.ex:61
#: lib/dpul_collections_web/live/search_live.ex:151
#: lib/dpul_collections_web/live/search_live.ex:170
#, elixir-autogen, elixir-format
msgid "Pages"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:186
#: lib/dpul_collections_web/live/search_live.ex:205
#, elixir-autogen, elixir-format
msgid "Previous"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:69
#: lib/dpul_collections_web/live/search_live.ex:88
#, elixir-autogen, elixir-format
msgid "Search Results"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:86
#: lib/dpul_collections_web/live/search_live.ex:105
#, elixir-autogen, elixir-format
msgid "filter by date"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:110
#: lib/dpul_collections_web/live/search_live.ex:129
#, elixir-autogen, elixir-format
msgid "sort by"
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:33
#: lib/dpul_collections_web/live/home_live.ex:31
#, elixir-autogen, elixir-format
msgid "Explore Our Digital Collections"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:91
#: lib/dpul_collections_web/live/search_live.ex:110
#, elixir-autogen, elixir-format
msgid "From"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:99
#: lib/dpul_collections_web/live/search_live.ex:118
#, elixir-autogen, elixir-format
msgid "To"
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:36
#: lib/dpul_collections_web/live/home_live.ex:33
#, elixir-autogen, elixir-format
msgid "Ephemera items. We can't wait to see how you use these materials to support your unique research."
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:35
#: lib/dpul_collections_web/live/home_live.ex:33
#, elixir-autogen, elixir-format
msgid "We invite you to be inspired by our globally diverse collections of"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:33
#, elixir-autogen, elixir-format
msgid "Accessibility Help"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:31
#, elixir-autogen, elixir-format
msgid "Copyright Policy"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:32
#, elixir-autogen, elixir-format
msgid "Privacy Notice"
msgstr ""
43 changes: 29 additions & 14 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ msgstr ""
msgid "Hang in there while we get back on track"
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:27
#: lib/dpul_collections_web/live/search_live.ex:75
#: lib/dpul_collections_web/live/home_live.ex:25
#: lib/dpul_collections_web/live/search_live.ex:94
#, elixir-autogen, elixir-format
msgid "Search"
msgstr ""
Expand Down Expand Up @@ -58,7 +58,7 @@ msgstr ""
msgid "Download"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:105
#: lib/dpul_collections_web/live/search_live.ex:124
#, elixir-autogen, elixir-format
msgid "Apply"
msgstr ""
Expand All @@ -73,58 +73,73 @@ msgstr ""
msgid "Language"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:232
#: lib/dpul_collections_web/live/search_live.ex:248
#, elixir-autogen, elixir-format
msgid "Next"
msgstr ""

#: lib/dpul_collections_web/live/item_live.ex:61
#: lib/dpul_collections_web/live/search_live.ex:151
#: lib/dpul_collections_web/live/search_live.ex:170
#, elixir-autogen, elixir-format
msgid "Pages"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:186
#: lib/dpul_collections_web/live/search_live.ex:205
#, elixir-autogen, elixir-format
msgid "Previous"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:69
#: lib/dpul_collections_web/live/search_live.ex:88
#, elixir-autogen, elixir-format, fuzzy
msgid "Search Results"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:86
#: lib/dpul_collections_web/live/search_live.ex:105
#, elixir-autogen, elixir-format
msgid "filter by date"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:110
#: lib/dpul_collections_web/live/search_live.ex:129
#, elixir-autogen, elixir-format
msgid "sort by"
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:33
#: lib/dpul_collections_web/live/home_live.ex:31
#, elixir-autogen, elixir-format
msgid "Explore Our Digital Collections"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:91
#: lib/dpul_collections_web/live/search_live.ex:110
#, elixir-autogen, elixir-format
msgid "From"
msgstr ""

#: lib/dpul_collections_web/live/search_live.ex:99
#: lib/dpul_collections_web/live/search_live.ex:118
#, elixir-autogen, elixir-format
msgid "To"
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:36
#: lib/dpul_collections_web/live/home_live.ex:33
#, elixir-autogen, elixir-format
msgid "Ephemera items. We can't wait to see how you use these materials to support your unique research."
msgstr ""

#: lib/dpul_collections_web/live/home_live.ex:35
#: lib/dpul_collections_web/live/home_live.ex:33
#, elixir-autogen, elixir-format
msgid "We invite you to be inspired by our globally diverse collections of"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:33
#, elixir-autogen, elixir-format
msgid "Accessibility Help"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:31
#, elixir-autogen, elixir-format
msgid "Copyright Policy"
msgstr ""

#: lib/dpul_collections_web/components/lux-components.ex:32
#, elixir-autogen, elixir-format
msgid "Privacy Notice"
msgstr ""
43 changes: 29 additions & 14 deletions priv/gettext/es/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ msgstr "¡Error!"
msgid "Hang in there while we get back on track"
msgstr "Aguanta mientras volvemos al buen camino"

#: lib/dpul_collections_web/live/home_live.ex:27
#: lib/dpul_collections_web/live/search_live.ex:75
#: lib/dpul_collections_web/live/home_live.ex:25
#: lib/dpul_collections_web/live/search_live.ex:94
#, elixir-autogen, elixir-format
msgid "Search"
msgstr "Buscar"
Expand Down Expand Up @@ -58,7 +58,7 @@ msgstr "cerrar"
msgid "Download"
msgstr "Descargar"

#: lib/dpul_collections_web/live/search_live.ex:105
#: lib/dpul_collections_web/live/search_live.ex:124
#, elixir-autogen, elixir-format
msgid "Apply"
msgstr "Aplicar"
Expand All @@ -73,58 +73,73 @@ msgstr "Artículo no encontrado"
msgid "Language"
msgstr "Idioma"

#: lib/dpul_collections_web/live/search_live.ex:232
#: lib/dpul_collections_web/live/search_live.ex:248
#, elixir-autogen, elixir-format
msgid "Next"
msgstr "Proxima"

#: lib/dpul_collections_web/live/item_live.ex:61
#: lib/dpul_collections_web/live/search_live.ex:151
#: lib/dpul_collections_web/live/search_live.ex:170
#, elixir-autogen, elixir-format
msgid "Pages"
msgstr "Páginas"

#: lib/dpul_collections_web/live/search_live.ex:186
#: lib/dpul_collections_web/live/search_live.ex:205
#, elixir-autogen, elixir-format
msgid "Previous"
msgstr "Anterior"

#: lib/dpul_collections_web/live/search_live.ex:69
#: lib/dpul_collections_web/live/search_live.ex:88
#, elixir-autogen, elixir-format, fuzzy
msgid "Search Results"
msgstr "Buscar"

#: lib/dpul_collections_web/live/search_live.ex:86
#: lib/dpul_collections_web/live/search_live.ex:105
#, elixir-autogen, elixir-format
msgid "filter by date"
msgstr "filtrar por fecha"

#: lib/dpul_collections_web/live/search_live.ex:110
#: lib/dpul_collections_web/live/search_live.ex:129
#, elixir-autogen, elixir-format
msgid "sort by"
msgstr "Ordenar por"

#: lib/dpul_collections_web/live/home_live.ex:33
#: lib/dpul_collections_web/live/home_live.ex:31
#, elixir-autogen, elixir-format
msgid "Explore Our Digital Collections"
msgstr "Explora nuestras colecciones"

#: lib/dpul_collections_web/live/search_live.ex:91
#: lib/dpul_collections_web/live/search_live.ex:110
#, elixir-autogen, elixir-format
msgid "From"
msgstr "De"

#: lib/dpul_collections_web/live/search_live.ex:99
#: lib/dpul_collections_web/live/search_live.ex:118
#, elixir-autogen, elixir-format
msgid "To"
msgstr "A"

#: lib/dpul_collections_web/live/home_live.ex:36
#: lib/dpul_collections_web/live/home_live.ex:33
#, elixir-autogen, elixir-format
msgid "Ephemera items. We can't wait to see how you use these materials to support your unique research."
msgstr "Artículos efímeros. Estamos ansiosos por ver cómo utilizas estos materiales para respaldar tu investigación única."

#: lib/dpul_collections_web/live/home_live.ex:35
#: lib/dpul_collections_web/live/home_live.ex:33
#, elixir-autogen, elixir-format
msgid "We invite you to be inspired by our globally diverse collections of"
msgstr "Te invitamos a inspirarte con nuestras colecciones globalmente diversas de"

#: lib/dpul_collections_web/components/lux-components.ex:33
#, elixir-autogen, elixir-format
msgid "Accessibility Help"
msgstr "Ayuda de accesibilidad"

#: lib/dpul_collections_web/components/lux-components.ex:31
#, elixir-autogen, elixir-format
msgid "Copyright Policy"
msgstr "Política de derechos de autor"

#: lib/dpul_collections_web/components/lux-components.ex:32
#, elixir-autogen, elixir-format
msgid "Privacy Notice"
msgstr "Aviso de privacidad"
Loading