Sha256: a8ca70c8ce37231f7f54a4f917acaae7a4d2f30962ece4f4f7e58eda2558f493

Contents?: true

Size: 1.86 KB

Versions: 3

Compression:

Stored size: 1.86 KB

Contents

{%- assign info = include.data %}
{%- if include.type == 'fullpage' %}
  {%- capture minHeight %}
    min-height: calc(100vh - {{ info.offset-top | default: '0px' }});
  {%- endcapture %}
{%- else %}
  {%- assign minHeight = '' %}
{%- endif %}
<article class='fullpage'
  style='{{ minHeight }}
    color: {{ info.color | default: 'inherit' }};
    background-color: {{ info.background-color | default: 'transparent' }};
    justify-content: {{ info.justify | default: 'flex-start' }};
  '>
  {%- if info.video or info.image %}
    {%- assign splitContent = 'split-content' %}
    {%- if info.video.right or info.image.right %}
      {%- assign alignRight = 'align-right' %}
    {%- else %}
      {%- assign alignRight = '' %}
    {%- endif %}
  {%- else %}
    {%- assign splitContent = '' %}
  {%- endif %}
  <div class='max-width {{ splitContent }} {{ alignRight }}'>
    {%- if info.video %}
      <div class='media'>
        {%- include video.html src=info.video.src %}
      </div>
    {%- elsif info.image %}
      <div class='media'>
        {%- include image.html image=info.image %}
      </div>
    {%- endif %}

    <div class='text'>
      {%- for hdr in info.headers %}
        <h1
          class='animated'
          style='animation-delay: {{ forloop.index | times: 300 | plus: 100 }}ms'>
          {{ hdr }}
        </h1>
      {%- endfor %}
      {%- if info.subheader %}
        <h4>{{ info.subheader }}</h4>
      {%- endif %}
      {%- if info.text %}
        <p>{{ info.text }}</p>
      {%- endif %}
      {%- if info.more %}
        <a class='a-button link {{ info.more.size }}' href='{{ info.more.href }}'>
          {{ info.more.label }}
        </a>
      {%- endif %}
      {%- if info.button %}
        <a class='a-button {{ info.button.color }}' href='{{ info.button.href }}'>
          {{ info.button.label }}
        </a>
      {%- endif %}
    </div>
  </div>
</article>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
askclass-home-theme-0.1.4 _includes/boxes/normal.html
askclass-home-theme-0.1.3 _includes/boxes/normal.html
askclass-home-theme-0.1.2 _includes/boxes/normal.html