-
-
Notifications
You must be signed in to change notification settings - Fork 4k
/
expo.html
63 lines (57 loc) · 1.98 KB
/
expo.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
layout: default
theme: expo
route: expo
---
{% include global/header.html %}
{%
include docs/hero.html
title="Made with Bulma"
subtitle="Gorgeous websites built with Bulma."
prints=page.hero_prints
%}
{% assign encoded_url = 'Here is my lovely website!' | urlencode %}
{% assign tweet_href = 'https://twitter.com/intent/tweet?text=' | append: encoded_url | append: '&hashtags=madewithbulma' %}
{% capture call_button %}
{% include docs/elements/tw-button.html label="#madewithbulma" href=tweet_href %}
{% endcapture %}
{% include docs/components/call.html
color="twitter"
text='Did you design a gorgeous website with Bulma too? <strong>Tell us about it!</strong> <span style="font-size: 20px; margin-left: 2px; position: relative; top: 1px"
>🤗</span>'
button=call_button
%}
<div class="bd-websites">
{% for website_id in site.data.expo.lists.expo %} {% assign website =
site.data.expo.by_id[website_id] %} {% assign imageName = website_id | slugify
%} {% assign imagePath = "/assets/images/expo/" | prepend: site.url | append:
imageName %}
<div
class="bd-website {% if website.highlighted %}bd-is-highlighted{% endif %}"
>
<figure class="bd-website-image">
{% if website.highlighted %}
{% assign size1x = "1344x840" %}
{% assign size2x = "2688x1680" %}
<img
src="{{ imagePath }}-{{ size1x }}.jpg"
srcset="{{ imagePath }}-{{ size2x }}.jpg 2x,
{{ imagePath }}-{{ size1x }}.jpg 1x"
width="1344"
height="840"
>
{% else %}
{% assign size1x = "672x420" %} {% assign size2x = "1344x840" %}
<img
src="{{ imagePath }}-{{ size1x }}.jpg"
srcset="{{ imagePath }}-{{ size2x }}.jpg 2x,
{{ imagePath }}-{{ size1x }}.jpg 1x"
width="672"
height="420"
>
{% endif %}
</figure>
<h2 class="title is-5 bd-website-name is-marginless">{{ website.name }}</h2>
</div>
{% endfor %}
</div>