block-irma-hero-2.html 1.32 KB
Newer Older
Hanna Schraffenberger's avatar
Hanna Schraffenberger committed
1
2
<section class="block block-hero-2" 
{% if section.background_image %}
Rowan Goemans's avatar
Rowan Goemans committed
3
style="background-image: url('{{ section.background_image | prepend: site.baseurl_root }}')"
Hanna Schraffenberger's avatar
Hanna Schraffenberger committed
4
5
6
7
{% endif %}>
  <div class="container">
    <div class="columns">
      <div class="column text">
Hanna's avatar
Hanna committed
8
        <h1><span class="light {% t section.class %}">{% t section.headline %}</span></h1>
Hanna Schraffenberger's avatar
Hanna Schraffenberger committed
9
        <p>{{ section.content }}</p>
Hanna Schraffenberger's avatar
Fix    
Hanna Schraffenberger committed
10
        {% if section.ctaiOS and section.ctaiOS.enabled == true %}
Rowan Goemans's avatar
Rowan Goemans committed
11
        <button class="button primary inverted" onclick="location.href='{% t section.ctaiOS.url %}'" type="button">{% t section.ctaiOS.button_text %}</button>
Hanna Schraffenberger's avatar
Fix    
Hanna Schraffenberger committed
12
13
        {% endif %}
        {% if section.ctaAndroid and section.ctaAndroid.enabled == true %}
Rowan Goemans's avatar
Rowan Goemans committed
14
        <button class="button primary inverted" onclick="location.href='{% t section.ctaAndroid.url %}'" type="button">{% t section.ctaAndroid.button_text %}</button>
Hanna Schraffenberger's avatar
Hanna Schraffenberger committed
15
        {% endif %}
Bart Jacobs's avatar
Bart Jacobs committed
16
17
18
        {% if section.ctaFdroid and section.ctaFdroid.enabled == true %}
        <button class="button primary inverted" onclick="location.href='{% t section.ctaFdroid.url %}'" type="button">{% t section.ctaFdroid.button_text %}</button>
        {% endif %}
Hanna Schraffenberger's avatar
Hanna Schraffenberger committed
19
20
      </div>
      <div class="column media">
Rowan Goemans's avatar
Rowan Goemans committed
21
        <img src="{{site.baseurl_root}}{% t section.image.image %}" alt="{% t section.image.alt_text %}">
Hanna Schraffenberger's avatar
Hanna Schraffenberger committed
22
23
24
      </div>
    </div>
  </div>
Bart Jacobs's avatar
Bart Jacobs committed
25
</section>