Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Add Get Started Bar to Spree Storefront. (#11287)
Matthew Kennedya120cbf7eca3
diff --git a/frontend/app/assets/images/arrow-right-circle-fill.svg b/frontend/app/assets/images/arrow-right-circle-fill.svgnew file mode 100644index 0000000000..336a34ea06--- /dev/null+++ b/frontend/app/assets/images/arrow-right-circle-fill.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right-circle-fill" viewBox="0 0 16 16">+ <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z"/>+</svg>\ No newline at end of filediff --git a/frontend/app/assets/images/[email protected] b/frontend/app/assets/images/[email protected]deleted file mode 100644index 28e9c90c81..0000000000Binary files a/frontend/app/assets/images/[email protected] and /dev/null differdiff --git a/frontend/app/views/spree/layouts/spree_application.html.erb b/frontend/app/views/spree/layouts/spree_application.html.erbindex 8e8f825b8a..7984f9e759 100644--- a/frontend/app/views/spree/layouts/spree_application.html.erb+++ b/frontend/app/views/spree/layouts/spree_application.html.erb@@ -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>diff --git a/frontend/app/views/spree/shared/_copyright.html.erb b/frontend/app/views/spree/shared/_copyright.html.erbindex 754ff5c959..d05ed001da 100644--- a/frontend/app/views/spree/shared/_copyright.html.erb+++ b/frontend/app/views/spree/shared/_copyright.html.erb@@ -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>diff --git a/frontend/app/views/spree/shared/_get_started.html.erb b/frontend/app/views/spree/shared/_get_started.html.erbnew file mode 100644index 0000000000..91662bc090--- /dev/null+++ b/frontend/app/views/spree/shared/_get_started.html.erb@@ -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>