-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganize homepage to be consistent with design
- Loading branch information
1 parent
127ef33
commit 93dc953
Showing
10 changed files
with
133 additions
and
33 deletions.
There are no files selected for viewing
23 changes: 21 additions & 2 deletions
23
app/assets/stylesheets/geoblacklight/modules/home.css.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
[data-map="home"] { | ||
height: 600px; | ||
} | ||
height: 400px; | ||
} | ||
|
||
.home-search-area { | ||
text-align: center; | ||
} | ||
|
||
.home-facet-label { | ||
background: $gray-light; | ||
border-radius: .25em; | ||
color: #fff; | ||
font-size: 1.4em; | ||
line-height: 2em; | ||
padding: .2em .6em .3em; | ||
text-align: center; | ||
|
||
&:hover { | ||
color: #fff; | ||
text-decoration: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<% display_facet.items.each do |item| %> | ||
<%= link_to item.value, catalog_index_path({f: {"#{facet_field.field}" => [item.value]}}), class: 'home-facet-label' %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= yield %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
<div id='row'> | ||
<%= content_tag :div, '', id: 'map', data: { map: 'home', 'catalog-path'=> catalog_index_path , 'map-bbox' => params[:bbox]} %> | ||
<div class='jumbotron'> | ||
<div class='home-search-area'> | ||
<%= content_tag :h2, t('geoblacklight.home.headline') %> | ||
<%= content_tag :h3, t('geoblacklight.home.search_heading') %> | ||
<%= render_search_bar %> | ||
</div> | ||
</div> | ||
|
||
<div class='row'> | ||
<div class='col-md-6 text-center'> | ||
<%= content_tag :h4, t('geoblacklight.home.category_heading') %> | ||
<%= render_facet_tags [:dc_subject_sm] %> | ||
</div> | ||
<div class='col-md-6 text-center'> | ||
<%= content_tag :h4, t('geoblacklight.home.map_heading') %> | ||
<%= content_tag :div, '', id: 'map', data: { map: 'home', 'catalog-path'=> catalog_index_path , 'map-bbox' => params[:bbox]} %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% unless has_search_parameters? %> | ||
<%# if there are no input/search related params, display the "home" partial -%> | ||
<%= render 'home' %> | ||
<% else %> | ||
<div id="sidebar" class="col-md-3 col-sm-4"> | ||
<%= render 'search_sidebar' %> | ||
</div> | ||
|
||
<div id="content" class="col-md-9 col-sm-8"> | ||
<%= render 'search_results' %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div id="header-navbar" class="navbar navbar-inverse navbar-static-top" role="navigation"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#user-util-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<%= link_to application_name, root_path, class: "navbar-brand" %> | ||
</div> | ||
|
||
<div class="collapse navbar-collapse" id="user-util-collapse"> | ||
<%= render :partial=>'/user_util_links' %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<% unless current_page?(root_url) %> | ||
<div id="search-navbar" class="navbar navbar-default navbar-static-top" role="navigation"> | ||
<div class="container"> | ||
<%= render_search_bar %> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters