-
Notifications
You must be signed in to change notification settings - Fork 38
/
index.html
34 lines (33 loc) · 1.99 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
layout: default
---
<div style="width: 100%; flex: 1; position: relative;">
<div style="display: flex; flex-direction: column; height: 88%; width: 100%; position: absolute; justify-content: center;">
<section class="slider" id="main_slider">
{% for post in site.posts %}
<div class="slide" data-content="{% if post.external_url %}{{ post.external_url }}{% else %}{{ post.permalink | prepend: site.baseurl }}{% endif %}">
<div class="slide__mover">
<div class="zoomer flex-center">
{% assign device_image = '/images/' | append: post.device | append: '.png' | prepend: site.baseurl %}
<img class="zoomer__image" src="{{ device_image }}" alt="{{ post.device }}" />
<div class="preview">
{% assign app_preview = '/images/' | append: post.name | downcase | append: '/preview.png' %}
{% if post.app_preview %}
{% assign app_preview = post.app_preview %}
{% endif %}
<img src="{{ app_preview | prepend: site.baseurl }}" alt="{{ post.name }}" />
<div class="zoomer__area zoomer__area--size-5"></div>
</div>
</div>
</div>
<h2 class="slide__title">{{ post.name }}<span>{{ post.tagline }}</span></h2>
</div>
{% endfor %}
<nav class="slider__nav">
<button class="button button--nav-prev"><i class="icon icon--arrow-left"></i><span class="text-hidden">Previous product</span></button>
<button class="button button--zoom"><i class="icon icon--zoom"></i><span class="text-hidden">View details</span></button>
<button class="button button--nav-next"><i class="icon icon--arrow-right"></i><span class="text-hidden">Next product</span></button>
</nav>
</section>
</div>
</div>