Skip to content

Commit

Permalink
Neutral Repository homepage fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LaRita Robinson committed Jan 16, 2025
1 parent 0da9d83 commit 2b73cf7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/hyku.scss
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@ body.public-facing {
width: unset;
}

.featured-collection-section {
border: 1px solid #ccc;
}

.mb-30 {
margin-bottom: 30px;
}
Expand Down
9 changes: 7 additions & 2 deletions app/assets/stylesheets/themes/neutral_repository.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

////// Basic Apperance Styles //////

.mt-4 {
margin-top: 40px;
}

.mb-40 {
margin-bottom: 40px;
}
Expand Down Expand Up @@ -109,9 +113,10 @@
border: 1px solid #ddd;
}

////// Carousel //////
////// Carousel & Featured Works //////


#featured-carousel {
.featured-works-section {
border: 1px solid #ccc;
padding: 1em;
}
Expand Down
12 changes: 6 additions & 6 deletions app/views/themes/neutral_repository/_theme_container.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="theme-container">
<div class="col-md-8 mb-30">
<div class="col-md-8 mb-30 pr-4">
<!-- Adding a mobile style for the homepage text content block, hidden on md and lg -->
<% if display_content_block? @home_text %>
<div class="d-block d-md-none">
Expand All @@ -15,15 +15,15 @@

<% if @presenter.display_featured_works? %>
<div class="row">
<div class="col-12">
<div class="col-12 featured-works-section">
<%= render 'themes/neutral_repository/hyrax/homepage/featured_works' %>
</div>
</div>
<% end %>

<div class="row mb-30 mt-4">
<div class="col-12 featured-collection-section">
<h3>Collections</h3>
<h2 class='mt-4'>Collections</h2>
<%= render 'featured_collection_section' %>
</div>
</div>
Expand All @@ -34,7 +34,7 @@
<% if display_content_block? @home_text %>
<div class="d-none d-md-block">
<div class="row">
<div class="col-12">
<div class="pl-15 col-12">
<%= render 'themes/neutral_repository/home_text' if controller_name == 'homepage' %>
</div>
</div>
Expand All @@ -43,15 +43,15 @@

<% if @presenter.display_featured_researcher? %>
<div class="row">
<div class="col-12">
<div class="pl-15 col-12">
<%= render 'themes/neutral_repository/hyrax/homepage/featured_researcher' %>
</div>
</div>
<% end %>

<% if @presenter.display_recently_uploaded? %>
<div class="row">
<div class="col-12">
<div class="pl-15 col-12">
<%= render 'recently_uploaded', recent_documents: @recent_documents %>
</div>
</div>
Expand Down

0 comments on commit 2b73cf7

Please sign in to comment.