Skip to content

Instantly share code, notes, and snippets.

@projoomexperts
Created April 25, 2017 17:38
Show Gist options
  • Save projoomexperts/abd9bebd5e4780ea959bd0030e64e214 to your computer and use it in GitHub Desktop.
Save projoomexperts/abd9bebd5e4780ea959bd0030e64e214 to your computer and use it in GitHub Desktop.
<div class="slide slide-{{ block.id }}" data-index="{{ slide_index }}" {{ block.shopify_attributes }}>
{% capture current %}{% cycle 2, 1 %}{% endcapture %}
{% if block.settings.image != blank %}
{% include 'set-slide-background' %}
{% else %}
<div class="placeholder-background">
{{ 'lifestyle-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
</div>
{% endif %}
<div class="layer opacity_{{ section.settings.overlay_opacity }}"></div>
{% if block.settings.link == blank %}
{% assign button_link = '/collections/all' %}
{% else %}
{% assign button_link = block.settings.link %}
{% endif %}
<div class="content {{ block.settings.text_alignment }}" onclick="location.href = '{{ button_link }}'">
<div class="inner">
<div class="container">
{% if section.settings.hero_show_logo %}
{% include 'logo' %}
{% endif %}
{% if section.settings.hero_show_line %}
<hr>
{% endif %}
{% unless block.settings.tagline == blank %}
<h2>{{ block.settings.tagline }}</h2>
{% endunless %}
{% unless block.settings.cta == blank %}
<a href="{{ button_link }}" class="btn action small">{{ block.settings.cta }}</a>
{% endunless %}
{% if section.settings.hero_show_button_to_scroll %}
<div>
<a class="btn line" data-action="scroll">{{ 'home_page.hero.button_to_scroll' | t }}</a>
</div>
{% endif %}
</div>
</div>
</div>
{% include 'hero-nav' %}
{% if section.settings.hero_show_arrow %}
<div class="bottom-right">
<a href="#" data-action="scroll">
<i class="fa fa-chevron-down fa-lg"></i>
</a>
</div>
{% endif %}
<div class="bottom-left">
{{ block.settings.credits }}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment