Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BWP Collection Updates #61

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e1789e3
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
bfbc562
Merge branch 'konnected-io:main' into main
codyfme Nov 7, 2023
e186fec
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
4213bd1
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
ee7298d
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
58e2299
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
2c1f8d0
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
dfefab1
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
a092a5c
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
c7a1598
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
6a7f5bb
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
2a116d3
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
26f37d3
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
6cbbb57
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
7d16c77
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
160fd62
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
8dc7885
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
3a94e19
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
b622d3a
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
055226e
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
a8afeba
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
30909ba
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
2e18562
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
271696e
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
d66c67f
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
2caac4e
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
5ca059f
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
5520a98
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
55f74c9
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
76aa78f
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
35f3be8
Update from Shopify for theme shopify-dawn/main
shopify[bot] Nov 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/BWP_secondary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,9 @@ button.shopify-payment-button__button--unbranded {
min-height: calc(3.5rem + var(--buttons-border-width) * 2);
}

#button--bwp {
border-radius: 35px;
}
.button--small {
padding: 1.2rem 2.6rem;
}
Expand Down
8 changes: 8 additions & 0 deletions assets/component-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -446,3 +446,11 @@
clip-path: polygon(var(--shape--blob-5));
}
}

.bwp__banner__img {
max-width: 69px;
position: absolute;
top: 10px;
left: 10px;
z-index: 1;
}
4 changes: 4 additions & 0 deletions assets/k-quiz-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@
.quiz-close {
display: none;
}

.bwp-banner-img {
max-width: 80px;
}
5 changes: 5 additions & 0 deletions assets/section-image-banner.css
Original file line number Diff line number Diff line change
Expand Up @@ -471,3 +471,8 @@
color: currentColor;
}
}


#bwp__banner__box {
max-width: 95rem;
}
16 changes: 1 addition & 15 deletions config/settings_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,21 +134,7 @@
},
"content_for_index": [

],
"blocks": {
"855628211100114053": {
"type": "shopify:\/\/apps\/klaviyo-email-marketing-sms\/blocks\/klaviyo-onsite-embed\/2632fe16-c075-4321-a88b-50b567f42507",
"disabled": false,
"settings": {
}
},
"3667842014806057753": {
"type": "shopify:\/\/apps\/one-click-upsell-zipify-ocu\/blocks\/app-embed\/bfe6e378-b73a-4871-b8d3-7d6ede22678e",
"disabled": false,
"settings": {
}
}
}
]
},
"presets": {
"Default": {
Expand Down
100 changes: 100 additions & 0 deletions sections/bwp-collection-banner.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{% comment %}theme-check-disable ImgLazyLoading{% endcomment %}
{{ 'component-collection-hero.css' | asset_url | stylesheet_tag }}

{%- style -%}
@media screen and (max-width: 749px) {
.collection-hero--with-image .collection-hero__inner {
padding-bottom: calc({{ settings.media_shadow_vertical_offset | at_least: 0 }}px + 2rem);
}
}
{%- endstyle -%}

<div class="collection-hero{% if section.settings.show_collection_image and collection.image %} collection-hero--with-image{% endif %} color-{{ section.settings.color_scheme }} gradient">
<div class="collection-hero__inner page-width">
<div class="collection-hero__text-wrapper">
<h1 class="collection-hero__title">
<span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span>
{{- collection.title | escape -}}
</h1>

{%- if section.settings.show_collection_description -%}
<div class="collection-hero__description rte">{{ collection.description }}</div>
{%- endif -%}
</div>

{%- if section.settings.show_collection_image and collection.image -%}
<div class="collection-hero__image-container media gradient">
<img
srcset="
{%- if collection.image.width >= 165 -%}{{ collection.image | image_url: width: 165 }} 165w,{%- endif -%}
{%- if collection.image.width >= 360 -%}{{ collection.image | image_url: width: 360 }} 360w,{%- endif -%}
{%- if collection.image.width >= 535 -%}{{ collection.image | image_url: width: 535 }} 535w,{%- endif -%}
{%- if collection.image.width >= 750 -%}{{ collection.image | image_url: width: 750 }} 750w,{%- endif -%}
{%- if collection.image.width >= 1070 -%}{{ collection.image | image_url: width: 1070 }} 1070w,{%- endif -%}
{%- if collection.image.width >= 1500 -%}{{ collection.image | image_url: width: 1500 }} 1500w,{%- endif -%}
{{ collection.image | image_url }} {{ collection.image.width }}w
"
src="{{ collection.image | image_url: width: 750 }}"
sizes="(min-width: {{ settings.page_width }}px) {{ settings.page_width | minus: 100 | divided_by: 2 }}px, (min-width: 750px) calc(50vw - 130px), calc(50vw - 55px)"
alt=""
width="{{ collection.image.width }}"
height="{{ collection.image.height }}"
>
</div>
{%- endif -%}
</div>
</div>

{% schema %}
{
"name": "t:sections.main-collection-banner.name",
"class": "section",
"settings": [
{
"type": "paragraph",
"content": "t:sections.main-collection-banner.settings.paragraph.content"
},
{
"type": "checkbox",
"id": "show_collection_description",
"default": true,
"label": "t:sections.main-collection-banner.settings.show_collection_description.label"
},
{
"type": "checkbox",
"id": "show_collection_image",
"default": false,
"label": "t:sections.main-collection-banner.settings.show_collection_image.label",
"info": "t:sections.main-collection-banner.settings.show_collection_image.info"
},
{
"type": "select",
"id": "color_scheme",
"options": [
{
"value": "accent-1",
"label": "t:sections.all.colors.accent_1.label"
},
{
"value": "accent-2",
"label": "t:sections.all.colors.accent_2.label"
},
{
"value": "background-1",
"label": "t:sections.all.colors.background_1.label"
},
{
"value": "background-2",
"label": "t:sections.all.colors.background_2.label"
},
{
"value": "inverse",
"label": "t:sections.all.colors.inverse.label"
}
],
"default": "background-1",
"label": "t:sections.all.colors.label"
}
]
}
{% endschema %}
Loading