-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from scientist-softserv/theming-home
Theming home
- Loading branch information
Showing
15 changed files
with
168 additions
and
45 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
module AccountsHelper | ||
def host_for(sub_domain) | ||
# rubocop:disable Style/FormatStringToken | ||
default_host = ENV.fetch('HYKU_DEFAULT_HOST', "%{tenant}.#{Account.admin_host}") | ||
default_host.gsub('%{tenant}', sub_domain) | ||
# rubocop:enable Style/FormatStringToken | ||
end | ||
|
||
def full_search_url | ||
main_app.search_catalog_path | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,37 @@ | ||
<% content_for :page_title, application_name %> | ||
<% content_for(:container_class) { 'row' } %> | ||
<section id="banner" class="jumbotron"> | ||
<div class="container"> | ||
<h1><%= application_name %></h1> | ||
<p><%= t('application.tagline') %></p> | ||
<p> | ||
<% if !admin_only_tenant_creation? || can?(:manage, Account) %> | ||
<%= link_to t('hyku.splash.account_signup'), account_sign_up_path, class: 'btn btn-lg btn-sign-up' %> | ||
<% elsif !user_signed_in? %> | ||
<%= link_to t('hyku.splash.account_login'), main_app.new_user_session_path, class: 'btn btn-lg btn-sign-up' %> | ||
<% else %> | ||
<%= t('hyku.splash.account_denied') %> | ||
<% end %> | ||
</p> | ||
</div> | ||
</section> | ||
|
||
<section class="product-features"> | ||
<section class="home-splash"> | ||
<div class="row grid-row"> | ||
<div class="col-xs-12 col-sm-4 grid-item"> | ||
<h2 class="heading"><%= t('hyku.splash.left_heading') %></h2> | ||
<p> | ||
<%= t('hyku.splash.left_text') %> | ||
</p> | ||
<div class="col-sm-6 left-side"> | ||
<%= image_tag("atla-ir.png", class: "home-logo", alt: "Atla IR Shared Repository") %> | ||
<p>The Atla Institutional Repository is a collaborative resource featuring the output of Atla Member Libraries and other partners, including faculty and student scholarly research in religion and theology, institutional records such as yearbooks and course catalogs, recordings of sermons and other lectures, and much more.</p> | ||
<p>Visit one repository at a time or use the search box to find content from across all participating libraries’ repositories.</p> | ||
</div> | ||
|
||
<div class="col-xs-12 col-sm-4 grid-item"> | ||
<h2 class="heading"><%= t('hyku.splash.center_heading') %></h2> | ||
<p> | ||
<%= t('hyku.splash.center_text') %> | ||
</p> | ||
</div> | ||
<div class="col-sm-6 right-side"> | ||
|
||
<div class="col-xs-12 col-sm-4 grid-item"> | ||
<h2 class="heading"><%= t('hyku.splash.right_heading') %></h2> | ||
<p> | ||
<%= t('hyku.splash.right_text') %> | ||
</p> | ||
<h2>Browse our partner repositories:</h2> | ||
<div class="row home-logo-grid"> | ||
<div class="col-xs-6 col-sm-4"> | ||
<%= link_to "//#{host_for('rim')}" do %> | ||
<%= image_tag("home-logos/rim_atla.png", class: "tenant-logo", alt: "RIM") %> | ||
<% end %> | ||
</div> | ||
<div class="col-xs-6 col-sm-4"> | ||
<%= link_to "//#{host_for('ctschicago')}" do %> | ||
<%= image_tag("home-logos/ctschicago.png", class: "tenant-logo", alt: "CTS") %> | ||
<% end %> | ||
</div> | ||
<div class="col-xs-6 col-sm-4"> | ||
<%= link_to "//#{host_for('ost')}" do %> | ||
<%= image_tag("home-logos/ost.png", class: "tenant-logo", alt: "OST") %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<%= link_to "//#{host_for('shared-search')}/catalog" do %> | ||
<button class="shared-search">Search All Repositories</button> | ||
<% end %> | ||
</div> | ||
</div> | ||
</section> |
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
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
Binary file not shown.
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