Skip to content

Commit

Permalink
Add Get Started Bar to Spree Storefront. (spree#11287)
Browse files Browse the repository at this point in the history
* Add get started bar to Spree Storefront.

* Add arrow icon, set bold button text.

* Update footer copyright text + Remove spark-logo

* Make get started bar scroll off screen under main nav.
  • Loading branch information
MatthewKennedy authored Aug 26, 2021
1 parent ef2343a commit a120cbf
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
3 changes: 3 additions & 0 deletions frontend/app/assets/images/arrow-right-circle-fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/app/assets/images/[email protected]
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<%= render partial: 'spree/shared/head' %>
</head>
<body class="<%= body_class %>" id="<%= @body_id || 'default' %>" data-hook="body">
<%= render partial: 'spree/shared/get_started' %>
<%= render partial: 'spree/shared/header' %>
<div id="overlay" class="overlay hide-on-esc"></div>

Expand Down
11 changes: 1 addition & 10 deletions frontend/app/views/spree/shared/_copyright.html.erb
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
<div class="border-top footer-spree-copyright">
<div class="container">
<div class="d-flex flex-column flex-lg-row align-items-center justify-content-center py-3 footer-spree-copyright-content">
<div>Designed and developed by</div>
<div class="mb-1 mb-lg-0">
<%= link_to 'https://sparksolutions.co/', target: :_blank, 'aria-label': 'Go to Spark Solutions', rel: :follow do %>
<%= image_tag '[email protected]', class: 'footer-spree-copyright-logo-spark mx-2', alt: 'Spree Commerce & Ruby on Rails developers', title: 'Spree Commerce & Ruby on Rails developers' %>
<% end %>
</div>
<div class="d-none d-lg-inline-block mr-2">|</div>
<div>
© <%= Time.current.year %>
<%= link_to current_store.name, "https://#{current_store.url}" %>.
<%= Spree.t(:all_rights_reserved) %>.
Designed and developed by <%= link_to 'Spark Solutions', 'https://sparksolutions.co/', target: :_blank, 'aria-label': 'Go to Spark Solutions', rel: :follow %> | © <%= Time.current.year %> <%= link_to current_store.name, current_store.formatted_url %>. <%= Spree.t(:all_rights_reserved) %>.
</div>
</div>
</div>
Expand Down
32 changes: 32 additions & 0 deletions frontend/app/views/spree/shared/_get_started.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!-- Styles And Script In A View Partial
If this view partial is removed from the spree_application.html.erb layout file, the storefront
will instantly snap back to the original look and feel with no hangover CSS or JavaScript related
to this partial.
Please do not transfer styles and JavaScript found here
into the main stylesheets or JavaScript files.
-->
<style>
#getStartedBar {
background: #33ba6f;
color: white;
z-index: 10;
}

#getStartedBar svg {
vertical-align: text-top;
}
</style>

<div id="getStartedBar" class="d-flex justify-content-center align-items-center p-1">
<div class="row">
<div class="col-12 text-center">
<h5 class="m-0">
<span style="font-weight: 200;">Create your own Spree project</span> <a href="https://spreecommerce.org/contact/" class="btn btn-outline-light btn-sm m-2" style="font-size: 1em; font-weight:800;">Get Started
<%= icon(name: 'arrow-right-circle-fill',
width: 22,
height: 22) %></a>
</h5>
</div>
</div>
</div>

0 comments on commit a120cbf

Please sign in to comment.