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
Minor visual changes to sections
Matthew Kennedy72d7a0eb2f21
diff --git a/frontend/app/assets/images/noimage/plp.svg b/frontend/app/assets/images/noimage/plp.svgindex c0f724dbea..ee05ab52ba 100644--- a/frontend/app/assets/images/noimage/plp.svg+++ b/frontend/app/assets/images/noimage/plp.svg@@ -11,10 +11,10 @@</g><g transform="matrix(0.723327,0,0,0.716405,24.4284,25.3505)"><g transform="matrix(9.26626,0,0,9.26626,16.011,72.835)">- <path d="M6.002,5.5C6.002,6.323 5.325,7 4.502,7C3.679,7 3.002,6.323 3.002,5.5C3.002,4.677 3.679,4 4.502,4C5.325,4 6.002,4.677 6.002,5.5Z" style="fill:rgb(62,62,62);fill-rule:nonzero;"/>+ <path d="M6.002,5.5C6.002,6.323 5.325,7 4.502,7C3.679,7 3.002,6.323 3.002,5.5C3.002,4.677 3.679,4 4.502,4C5.325,4 6.002,4.677 6.002,5.5Z" style="fill:rgb(125,125,125);fill-rule:nonzero;"/></g><g transform="matrix(9.26626,0,0,9.26626,16.011,72.835)">- <path d="M1.5,2C0.677,2 -0,2.677 0,3.5L0,12.5C0,13.323 0.677,14 1.5,14L14.5,14C15.323,14 16,13.323 16,12.5L16,3.5C16,2.677 15.323,2 14.5,2L1.5,2ZM14.5,3C14.774,3 15,3.226 15,3.5L15,9.5L11.225,7.553C11.033,7.457 10.8,7.495 10.648,7.646L6.938,11.356L4.278,9.584C4.081,9.453 3.816,9.479 3.648,9.646L1.002,12L1.002,12.54C1.001,12.527 1,12.513 1,12.5L1,3.5C1,3.226 1.226,3 1.5,3L14.5,3Z" style="fill:rgb(62,62,62);fill-rule:nonzero;"/>+ <path d="M1.5,2C0.677,2 -0,2.677 0,3.5L0,12.5C0,13.323 0.677,14 1.5,14L14.5,14C15.323,14 16,13.323 16,12.5L16,3.5C16,2.677 15.323,2 14.5,2L1.5,2ZM14.5,3C14.774,3 15,3.226 15,3.5L15,9.5L11.225,7.553C11.033,7.457 10.8,7.495 10.648,7.646L6.938,11.356L4.278,9.584C4.081,9.453 3.816,9.479 3.648,9.646L1.002,12L1.002,12.54C1.001,12.527 1,12.513 1,12.5L1,3.5C1,3.226 1.226,3 1.5,3L14.5,3Z" style="fill:rgb(125,125,125);fill-rule:nonzero;"/></g></g><g transform="matrix(1.89682,0,0,1.89682,-1.5642,-167.039)">diff --git a/frontend/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss b/frontend/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scssindex 630b538bf1..92e09de353 100644--- a/frontend/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss+++ b/frontend/app/assets/stylesheets/spree/frontend/helpers/spree/frontend_helper.scss@@ -1,3 +1,22 @@+.position-absolute-center {+ position:absolute;+ left:50%;+ top:50%;+ transform:translate(-50%, -50%);+}++.position-absolute-x-center {+ position:absolute;+ left:50%;+ transform:translate(-50%, 0);+}++.position-absolute-y-center {+ position:absolute;+ top:50%;+ transform:translate(0, -50%);+}+#breadcrumbs {padding: 0;}diff --git a/frontend/app/assets/stylesheets/spree/frontend/views/spree/home/index.scss b/frontend/app/assets/stylesheets/spree/frontend/views/spree/home/index.scssindex 923b2f2f55..6622a6f7cd 100644--- a/frontend/app/assets/stylesheets/spree/frontend/views/spree/home/index.scss+++ b/frontend/app/assets/stylesheets/spree/frontend/views/spree/home/index.scss@@ -27,10 +27,8 @@}.hero-content {- position: absolute;z-index: 1;right: 10%;- top:25%;}&-text {diff --git a/frontend/app/views/spree/shared/cms/sections/_carousel.html.erb b/frontend/app/views/spree/shared/cms/sections/_carousel.html.erbindex 9705176533..ae5fbdf989 100644--- a/frontend/app/views/spree/shared/cms/sections/_carousel.html.erb+++ b/frontend/app/views/spree/shared/cms/sections/_carousel.html.erb@@ -1,5 +1,5 @@<% if section.linked_resource %>- <div class="<%= width %>" style="min-height: 525px;">+ <div class="<%= width %>"><div class="<%= fit %>"><div data-product-carousel-taxon-id='<%= section.linked_resource.permalink %>' class="my-3"></div></div>diff --git a/frontend/app/views/spree/shared/cms/sections/_hero.html.erb b/frontend/app/views/spree/shared/cms/sections/_hero.html.erbindex 5eb0c3bd71..55e1bcbfb2 100644--- a/frontend/app/views/spree/shared/cms/sections/_hero.html.erb+++ b/frontend/app/views/spree/shared/cms/sections/_hero.html.erb@@ -36,13 +36,13 @@<% else %><div style="--aspect-ratio:12/5;"><%= icon( name: 'card-image',- classes: 'text-dark',+ classes: 'text-black-50',width: 26,height: 26) %></div><% end %>- <div class="hero-content align-self-center">+ <div class="hero-content position-absolute-y-center"><% if section.title.present? %><div class="homepage-hero-image-text mx-auto pb-0 pb-sm-2 pb-md-3"><%= section.title %>diff --git a/frontend/app/views/spree/shared/cms/sections/_promo.html.erb b/frontend/app/views/spree/shared/cms/sections/_promo.html.erbindex 1e837643cd..6501dd0dc2 100644--- a/frontend/app/views/spree/shared/cms/sections/_promo.html.erb+++ b/frontend/app/views/spree/shared/cms/sections/_promo.html.erb@@ -29,7 +29,7 @@alt="<%= section.icon.alt %>"><% else %><%= icon( name: 'card-image',- classes: 'text-dark',+ classes: 'text-black-50',width: 26,height: 26) %><% end %>diff --git a/frontend/app/views/spree/shared/cms/sections/_taxon_category.html.erb b/frontend/app/views/spree/shared/cms/sections/_taxon_category.html.erbindex 927bfb16be..32cdde1cf5 100644--- a/frontend/app/views/spree/shared/cms/sections/_taxon_category.html.erb+++ b/frontend/app/views/spree/shared/cms/sections/_taxon_category.html.erb@@ -24,7 +24,7 @@<% else %><div style="--aspect-ratio:54/35;"><%= icon( name: 'card-image',- classes: 'homepage-taxon-box text-dark',+ classes: 'homepage-taxon-box text-black-50',width: 26,height: 26) %></div>@@ -59,7 +59,7 @@<% else %><div style="--aspect-ratio:54/35;"><%= icon( name: 'card-image',- classes: 'homepage-taxon-box text-dark',+ classes: 'homepage-taxon-box text-black-50',width: 26,height: 26) %></div>@@ -96,7 +96,7 @@<% else %><div style="--aspect-ratio:27/40; margin: 50px;"><%= icon( name: 'file-image',- classes: 'homepage-taxon-box text-dark',+ classes: 'homepage-taxon-box text-black-50',width: 26,height: 26) %></div>