From 2b73cf748c3de7ea4de2822690bece0aa78d7ccc Mon Sep 17 00:00:00 2001 From: LaRita Robinson Date: Wed, 15 Jan 2025 19:10:18 -0500 Subject: [PATCH] Neutral Repository homepage fixes --- app/assets/stylesheets/hyku.scss | 4 ++++ .../stylesheets/themes/neutral_repository.scss | 9 +++++++-- .../neutral_repository/_theme_container.html.erb | 12 ++++++------ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/hyku.scss b/app/assets/stylesheets/hyku.scss index 49e74a31c..77d035114 100644 --- a/app/assets/stylesheets/hyku.scss +++ b/app/assets/stylesheets/hyku.scss @@ -510,6 +510,10 @@ body.public-facing { width: unset; } +.featured-collection-section { + border: 1px solid #ccc; +} + .mb-30 { margin-bottom: 30px; } diff --git a/app/assets/stylesheets/themes/neutral_repository.scss b/app/assets/stylesheets/themes/neutral_repository.scss index ab06686ee..7096c65e1 100644 --- a/app/assets/stylesheets/themes/neutral_repository.scss +++ b/app/assets/stylesheets/themes/neutral_repository.scss @@ -15,6 +15,10 @@ ////// Basic Apperance Styles ////// + .mt-4 { + margin-top: 40px; + } + .mb-40 { margin-bottom: 40px; } @@ -109,9 +113,10 @@ border: 1px solid #ddd; } - ////// Carousel ////// + ////// Carousel & Featured Works ////// + - #featured-carousel { + .featured-works-section { border: 1px solid #ccc; padding: 1em; } diff --git a/app/views/themes/neutral_repository/_theme_container.html.erb b/app/views/themes/neutral_repository/_theme_container.html.erb index 1858e12d7..bd987c059 100644 --- a/app/views/themes/neutral_repository/_theme_container.html.erb +++ b/app/views/themes/neutral_repository/_theme_container.html.erb @@ -1,5 +1,5 @@
-
+
<% if display_content_block? @home_text %>
@@ -15,7 +15,7 @@ <% if @presenter.display_featured_works? %>
-
+
@@ -23,7 +23,7 @@
@@ -34,7 +34,7 @@ <% if display_content_block? @home_text %>
-
+
<%= render 'themes/neutral_repository/home_text' if controller_name == 'homepage' %>
@@ -43,7 +43,7 @@ <% if @presenter.display_featured_researcher? %>
-
+
<%= render 'themes/neutral_repository/hyrax/homepage/featured_researcher' %>
@@ -51,7 +51,7 @@ <% if @presenter.display_recently_uploaded? %>
-
+
<%= render 'recently_uploaded', recent_documents: @recent_documents %>