From 0da9d83ecfad17c547f2e882b34bd3cf8a92a348 Mon Sep 17 00:00:00 2001 From: LaRita Robinson Date: Tue, 14 Jan 2025 19:25:36 -0500 Subject: [PATCH 1/7] Fix issues with homepage --- app/views/hyrax/base/_privacy_policy.html.erb | 1 + app/views/shared/_appearance_styles.html.erb | 8 ++-- app/views/shared/_footer.html.erb | 38 +++++++++++++------ .../hyrax/homepage/_featured_works.html.erb | 2 +- 4 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 app/views/hyrax/base/_privacy_policy.html.erb diff --git a/app/views/hyrax/base/_privacy_policy.html.erb b/app/views/hyrax/base/_privacy_policy.html.erb new file mode 100644 index 000000000..a8f29dffd --- /dev/null +++ b/app/views/hyrax/base/_privacy_policy.html.erb @@ -0,0 +1 @@ +<%# Override Hyrax 5.0.1 - empty partial to allow override for custom privacy policy link %> \ No newline at end of file diff --git a/app/views/shared/_appearance_styles.html.erb b/app/views/shared/_appearance_styles.html.erb index cc7da7090..67936c0c6 100644 --- a/app/views/shared/_appearance_styles.html.erb +++ b/app/views/shared/_appearance_styles.html.erb @@ -17,7 +17,10 @@ body.public-facing h5, body.public-facing h6 { font-family: <%= appearance.font_headline_family %>; } /* LINK COLORS */ -body.public-facing a { color: <%= appearance.link_color %>; } +body.public-facing a, +body.public-facing .dropdown-menu a { + color: <%= appearance.link_color %>; +} body.public-facing a:hover, body.public-facing a:focus { color: <%= appearance.link_hover_color %>; } @@ -28,8 +31,7 @@ body.public-facing footer.navbar { } body.public-facing footer.navbar .navbar-link { color: <%= appearance.footer_link_color %>; } body.public-facing footer.navbar .navbar-link:hover { color: <%= appearance.footer_link_hover_color %>; } -body.public-facing footer.navbar .navbar-text, -body.public-facing .navbar.navbar-expand-lg .navbar-nav a { +body.public-facing footer.navbar .navbar-text { color: <%= appearance.header_and_footer_text_color %> !important; } body.public-facing .navbar.navbar-expand-lg { border-color: <%= appearance.header_background_border_color %> !important; } diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index 113c74fe9..07e30bec0 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -1,17 +1,31 @@ +<%# Override Hyrax 5.0.1 + - add privacy policy partial + - add login & logout link + - add Hyku version + - navbar-inverse class %> <% current_year = Time.now.year %> -