Skip to content

Commit

Permalink
Exaggerated Footer: link updates and on the homepage too
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Oct 23, 2024
1 parent 7d2c6c0 commit 7e6d9a5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 21 deletions.
3 changes: 2 additions & 1 deletion app/assets/javascripts/geoportal/modules/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Blacklight.onLoad(function() {

console.log('Map: Home')

geoblacklight.map.setZoom(2);
// geoblacklight.map.setZoom(3);
geoblacklight.map.setView(new L.LatLng(20.737, -64.990), 3);
geoblacklight.map.addControl(L.control.geosearch({
baseUrl: '/',
dynamic: false,
Expand Down
10 changes: 7 additions & 3 deletions app/assets/stylesheets/geoportal/_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,22 @@ main.homepage {
padding-left:15px;
padding-right:15px;

&.container-fluid {
margin-top:0rem;
}

#home-content {
margin-top:5.5rem;
margin-top:0rem;

h2 {
margin-top:1rem;
}
}

#wrapper-map {
div#map-container {
position:fixed;
top:5.5rem;
height: 100%;
width: 100%;
padding:0px;

div#map {
Expand Down
6 changes: 0 additions & 6 deletions app/assets/stylesheets/geoportal/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,4 @@ form.search-query-form {
font-size: 32px;
}
}

main {
#home-content {
margin-top: 3rem !important;
}
}
}
7 changes: 1 addition & 6 deletions app/views/catalog/_home_text.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@
</div>

<div class="card-body">
<p>
<%= link_to "https://gin.btaa.org" do %>
<%= image_tag('gin-cropped.png', {alt: "Big Ten Academic Alliance Logo", height: '80px'}) %>
<% end %>
</p>
<p>The Big Ten Academic Alliance Geoportal provides discoverability and facilitates access to geospatial resources. The resources in the portal are selected and curated by librarians and geospatial specialists at fifteen research institutions in the <a href="http://www.btaa.org">Big Ten Academic Alliance</a>.</p>
<p>The resources include GIS datasets, web services, and digitized historical maps. <a href="https://gin.btaa.org">Learn more</a> about the research institutions involved and the sources of the geospatial records.</p>
<p class="project-action">
Expand All @@ -96,7 +91,7 @@
</div>

<div id="wrapper-map" class="d-none d-md-block col-md-6" role="application">
<div id='map-container' class="d-md-block col-md-6">
<div id='map-container'>
<div id='map' role='presentation' aria-label='map-search' data-map='home' data-catalog-path="<%=blacklight_path%>" data-map-bbox="<%=params[:bbox]%>" data-basemap="<%=geoblacklight_basemap%>">
<div id="progress"><div id="progress-bar"></div></div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions app/views/layouts/blacklight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
<% if homepage? %>
<%= render :partial=>'shared/flash_msg', layout: 'shared/flash_messages' %>
<%= render 'home' %>
<section id="footer-app" aria-label='Application Footer'>
<%= render :partial => 'shared/footer_app' %>
</section>
<% else %>
<main id="main-container" class="<%= container_classes %>">
<%= content_for(:container_header) %>
Expand Down
4 changes: 1 addition & 3 deletions app/views/shared/_footer_app.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
%li
= link_to "Harmful Language Statement", "https://gin.btaa.org/policies/harmful-language"
%li
= link_to "Privacy Statement", "https://gin.btaa.org/policies/privacy"
%li
= link_to "Terms of Service and Disclaimers", "https://gin.btaa.org/policies/tos-disclaimer"
= link_to "Privacy Statement", "https://btaa.org/privacy"
%li
= link_to "Collection Development", "https://gin.btaa.org/policies/collection-development"

Expand Down
3 changes: 1 addition & 2 deletions app/views/shared/_header_navbar.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<%- header_classes = homepage? ? 'fixed-top' : nil %>
<header aria-label='Primary' class="<%= header_classes %>">
<header aria-label="Primary">
<div id='application-header' class='container-fluid'>
<nav id="header-navbar" class="navbar navbar-expand-md navbar-dark topbar" role="navigation">
<div id="b1g-header-navbar">
Expand Down

0 comments on commit 7e6d9a5

Please sign in to comment.