Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{ 'component-newsletter.css' | asset_url | stylesheet_tag }}
- {{ 'newsletter-section.css' | asset_url | stylesheet_tag }}
- {{ 'section-footer.css' | asset_url | stylesheet_tag }}
- <link rel="stylesheet" href="{{ 'component-newsletter.css' | asset_url }}" media="print" onload="this.media='all'">
- <link rel="stylesheet" href="{{ 'component-list-menu.css' | asset_url }}" media="print" onload="this.media='all'">
- <link rel="stylesheet" href="{{ 'component-list-payment.css' | asset_url }}" media="print" onload="this.media='all'">
- <link rel="stylesheet" href="{{ 'component-list-social.css' | asset_url }}" media="print" onload="this.media='all'">
- <link rel="stylesheet" href="{{ 'component-rte.css' | asset_url }}" media="print" onload="this.media='all'">
- <link rel="stylesheet" href="{{ 'disclosure.css' | asset_url }}" media="print" onload="this.media='all'">
- <noscript>{{ 'component-newsletter.css' | asset_url | stylesheet_tag }}</noscript>
- <noscript>{{ 'component-list-menu.css' | asset_url | stylesheet_tag }}</noscript>
- <noscript>{{ 'component-list-payment.css' | asset_url | stylesheet_tag }}</noscript>
- <noscript>{{ 'component-list-social.css' | asset_url | stylesheet_tag }}</noscript>
- <noscript>{{ 'component-rte.css' | asset_url | stylesheet_tag }}</noscript>
- <noscript>{{ 'disclosure.css' | asset_url | stylesheet_tag }}</noscript>
- {%- style -%}
- .section-{{ section.id }}-padding {
- padding-left: 80px;
- padding-right: 80px;
- padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
- padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
- }
- @media screen and (min-width: 750px) {
- .section-{{ section.id }}-padding {
- padding-top: {{ section.settings.padding_top }}px;
- padding-bottom: {{ section.settings.padding_bottom }}px;
- }
- }
- .header__wrapper {
- background: #212121 url('{{ 'map_transparent_white-1.png' | asset_url }}') !important;
- }
- .main-header{
- text-align: left;
- color: #fff;
- font-weight: 700;
- font-size: 60px;
- line-height: 60px;
- margin: 20px 0 !important;
- }
- .main-header-yellow{
- color: #ffd311;
- text-align: left;
- font-weight: 700;
- font-size: 60px;
- line-height: 60px;
- margin: 20px 0 !important;
- }
- .subtext{
- text-align: left;
- color: #fff;
- }
- .subtext-yellow{
- text-align: left;
- color: #ffd311;
- }
- .subtext-bold{
- text-align: left;
- color: #fff;
- font-weight: 700;
- }
- @media screen and (max-width: 480px) {
- .section-{{ section.id }}-padding {
- padding-left:20px;
- padding-right:20px;
- }
- .main-header{
- font-size: 40px;
- line-height: 40px;
- }
- .main-header-yellow{
- font-size: 40px;
- line-height: 40px;
- }
- .right-img{
- width: 200px !important;
- transform: rotate(360deg) !important;
- }
- .btn-1{
- width: 110px !important;
- }
- .btn-2{
- width: 120px !important;
- }
- }
- .row {
- display: flex;
- align-content: center;
- align-items: center;
- }
- .column {
- }
- .btns{
- padding-top: 20px;
- }
- .right-img{
- width: 200px;
- transform: rotate(350deg);
- }
- .btn-1{
- width:150px;
- }
- .btn-2{
- width:166px
- }
- {%- endstyle -%}
- <div class="center">
- <div class="header__wrapper gradient isolate{% if section.settings.full_width %} content-container--full-width{% endif %} section-{{ section.id }}-padding">
- <div class=" grid grid--1-col grid--2-col {{ footer_grid_class }}" style="align-items: center;">
- {%- for block in section.blocks -%}
- <div class="footer-block grid__item{% if block.type == 'link_list' and block.settings.heading != blank %} footer-block--menu{% endif %}" {{ block.shopify_attributes }}>
- {%- if block.settings.heading != blank -%}
- <h2 class="main-header">{{- block.settings.heading | escape -}}</h2>
- <h2 class="main-header-yellow">{{- block.settings.yellowheading | escape -}}</h2>
- <h2 class="main-header">{{- block.settings.secondheading | escape -}}</h2>
- {%- endif -%}
- {%- case block.type -%}
- {%- when 'text' -%}
- <div class="subtext" >
- {{ block.settings.subtext }}
- </div>
- <div class="subtext-yellow" >
- {{ block.settings.yellowsubtext }}
- </div>
- <div class="subtext-bold" >
- {{ block.settings.subtextbold }}
- </div>
- <div class="row">
- <div class="column" style="padding-right:15px">
- <a href="{{block.settings.link}}" >
- <img
- srcset= "{{ block.settings.image1 | img_url: image_size }}, {{ block.settings.image1 | img_url: image_size, scale: 2 }} 2x"
- src="{{ block.settings.image1 }}"
- alt="{{ block.settings.image1.alt | escape }}"
- class="btn-1"
- >
- </a>
- </div>
- <div class="column">
- <a href="{{block.settings.link2}}" >
- <img srcset= "{{ block.settings.image2 | img_url: image_size }}, {{ block.settings.image2 | img_url: image_size, scale: 2 }} 2x"
- src="{{ block.settings.image2 }}"
- alt="{{ block.settings.image2.alt | escape }}"
- class="btn-2"
- >
- </a>
- </div>
- </div>
- {%- when 'link_list' -%}
- {%- if block.settings.menu != blank and block.settings.heading != blank -%}
- <ul class="footer-block__details-content list-unstyled">
- {%- for link in block.settings.menu.links -%}
- <li>
- <a href="{{ link.url }}" class="link link--text list-menu__item list-menu__item--link{% if link.active %} list-menu__item--active{% endif %}">
- {{ link.title }}
- </a>
- </li>
- {%- endfor -%}
- </ul>
- {%- endif -%}
- {%- when 'image' -%}
- <div class="footer-block__details-content footer-block-image {{ block.settings.alignment }}">
- {%- if block.settings.image != blank -%}
- {%- assign image_size = block.settings.image_width | append: 'x' -%}
- <img
- srcset= "{{ block.settings.image }}, {{ block.settings.image | img_url: image_size, scale: 2 }} 2x"
- src="{{ block.settings.image }}"
- alt="{{ block.settings.image.alt | escape }}"
- class="right-img"
- >
- {%- else -%}
- {{ 'image' | placeholder_svg_tag: 'placeholder-svg placeholder' }}
- {%- endif -%}
- </div>
- {%- endcase -%}
- </div>
- {%- endfor -%}
- </div>
- </div>
- </div>
- {% schema %}
- {
- "name": "Main Header",
- "blocks": [
- {
- "type": "link_list",
- "name": "t:sections.footer.blocks.link_list.name",
- "settings": [
- {
- "type": "text",
- "id": "heading",
- "default": "Quick links",
- "label": "t:sections.footer.blocks.link_list.settings.heading.label",
- "info": "t:sections.footer.blocks.link_list.settings.heading.info"
- },
- {
- "type": "link_list",
- "id": "menu",
- "default": "footer",
- "label": "t:sections.footer.blocks.link_list.settings.menu.label",
- "info": "t:sections.footer.blocks.link_list.settings.menu.info"
- }
- ]
- },
- {
- "type": "text",
- "name": "t:sections.footer.blocks.text.name",
- "settings": [
- {
- "type": "text",
- "id": "heading",
- "default": "Heading",
- "label": "t:sections.footer.blocks.text.settings.heading.label"
- },
- {
- "type": "text",
- "id": "yellowheading",
- "default": "Heading",
- "label": "t:sections.footer.blocks.text.settings.heading.label"
- },
- {
- "type": "text",
- "id": "secondheading",
- "default": "Heading",
- "label": "t:sections.footer.blocks.text.settings.heading.label"
- },
- {
- "type": "richtext",
- "id": "subtext",
- "default": "<p>Share contact information, store details, and brand content with your customers.</p>",
- "label": "t:sections.footer.blocks.text.settings.subtext.label"
- },
- {
- "type": "richtext",
- "id": "yellowsubtext",
- "default": "<p>Share contact information, store details, and brand content with your customers.</p>",
- "label": "t:sections.footer.blocks.text.settings.subtext.label"
- },
- {
- "type": "richtext",
- "id": "subtextbold",
- "default": "<p>Share contact information, store details, and brand content with your customers.</p>",
- "label": "t:sections.footer.blocks.text.settings.subtext.label"
- },
- {
- "type": "image_picker",
- "id": "image1",
- "label": "Button 1 Image"
- },
- {
- "id": "link",
- "type": "url",
- "label": "Button 1 link"
- },
- {
- "id": "linktext",
- "type": "text",
- "label": "Button 1 text",
- "default": "Click Here"
- },
- {
- "type": "image_picker",
- "id": "image2",
- "label": "Button 2 Image"
- },
- {
- "id": "link2",
- "type": "url",
- "label": "Button 2 link"
- },
- {
- "id": "linktext2",
- "type": "text",
- "label": "Button 2 text",
- "default": "Click Here"
- }
- ]
- },
- {
- "type": "textbtn",
- "name": "TextBtn",
- "settings" : [
- {
- "type": "text",
- "id": "caption",
- "default": "Heading",
- "label": "t:sections.footer.blocks.text.settings.heading.label"
- }
- ]
- },
- {
- "type": "image",
- "name": "Image",
- "settings": [
- {
- "type": "image_picker",
- "id": "image",
- "label": "Image"
- },
- {
- "type": "range",
- "id": "image_width",
- "min": 50,
- "max": 200,
- "step": 5,
- "unit": "px",
- "label": "Image width",
- "default": 100
- },
- {
- "type": "select",
- "id": "alignment",
- "label": "Image alignment on large screen",
- "options": [
- {
- "value": "",
- "label": "Left"
- },
- {
- "value": "center",
- "label": "Center"
- },
- {
- "value": "right",
- "label": "Right"
- }
- ],
- "default": "center"
- }
- ]
- }
- ],
- "settings": [
- {
- "type": "select",
- "id": "color_scheme",
- "options": [
- {
- "value": "accent-1",
- "label": "t:sections.footer.settings.color_scheme.options__1.label"
- },
- {
- "value": "accent-2",
- "label": "t:sections.footer.settings.color_scheme.options__2.label"
- },
- {
- "value": "background-1",
- "label": "t:sections.footer.settings.color_scheme.options__3.label"
- },
- {
- "value": "background-2",
- "label": "t:sections.footer.settings.color_scheme.options__4.label"
- },
- {
- "value": "inverse",
- "label": "t:sections.footer.settings.color_scheme.options__5.label"
- }
- ],
- "default": "background-1",
- "label": "t:sections.footer.settings.color_scheme.label"
- },
- {
- "type": "header",
- "content": "t:sections.footer.settings.header__1.content",
- "info": "t:sections.footer.settings.header__1.info"
- },
- {
- "type": "checkbox",
- "id": "newsletter_enable",
- "default": true,
- "label": "t:sections.footer.settings.newsletter_enable.label"
- },
- {
- "type": "text",
- "id": "newsletter_heading",
- "default": "Subscribe to our emails",
- "label": "t:sections.footer.settings.newsletter_heading.label"
- },
- {
- "type": "header",
- "content": "t:sections.footer.settings.header__2.content",
- "info": "t:sections.footer.settings.header__2.info"
- },
- {
- "type": "checkbox",
- "id": "show_social",
- "default": false,
- "label": "t:sections.footer.settings.show_social.label"
- },
- {
- "type": "header",
- "content": "t:sections.footer.settings.header__3.content",
- "info": "t:sections.footer.settings.header__4.info"
- },
- {
- "type": "checkbox",
- "id": "enable_country_selector",
- "default": true,
- "label": "t:sections.footer.settings.enable_country_selector.label"
- },
- {
- "type": "header",
- "content": "t:sections.footer.settings.header__5.content",
- "info": "t:sections.footer.settings.header__6.info"
- },
- {
- "type": "checkbox",
- "id": "enable_language_selector",
- "default": true,
- "label": "t:sections.footer.settings.enable_language_selector.label"
- },
- {
- "type": "header",
- "content": "t:sections.footer.settings.header__7.content"
- },
- {
- "type": "checkbox",
- "id": "payment_enable",
- "default": true,
- "label": "t:sections.footer.settings.payment_enable.label"
- },
- {
- "type": "header",
- "content": "t:sections.all.spacing"
- },
- {
- "type": "range",
- "id": "margin_top",
- "min": 0,
- "max": 100,
- "step": 4,
- "unit": "px",
- "label": "t:sections.footer.settings.margin_top.label",
- "default": 0
- },
- {
- "type": "header",
- "content": "t:sections.all.padding.section_padding_heading"
- },
- {
- "type": "range",
- "id": "padding_top",
- "min": 0,
- "max": 100,
- "step": 4,
- "unit": "px",
- "label": "t:sections.all.padding.padding_top",
- "default": 36
- },
- {
- "type": "range",
- "id": "padding_bottom",
- "min": 0,
- "max": 100,
- "step": 4,
- "unit": "px",
- "label": "t:sections.all.padding.padding_bottom",
- "default": 36
- }
- ],
- "presets": [
- {
- "name": "Main Header",
- "category": "ADVANCED LAYOUT"
- }
- ]
- }
- {% endschema %}
- {% javascript %}
- {% endjavascript %}
Advertisement
Add Comment
Please, Sign In to add comment