-
-
Notifications
You must be signed in to change notification settings - Fork 4k
/
made-with-bulma.html
141 lines (127 loc) · 4.33 KB
/
made-with-bulma.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
fulltitle: Made with Bulma badges
layout: default
theme: expo
route: made-with-bulma
breadcrumb:
- home
- more
- made-with-bulma
images:
- name: "Default"
description: "White boxed"
type: ""
bg: "#fff"
- name: "Dark"
description: "Dark boxed"
type: "--dark"
bg: "#000"
- name: "Semi white"
description: "Transparent white and turquoise"
type: "--semiwhite"
bg: "url(/assets/images/various/tom-levold-260373.jpg) center center/cover no-repeat"
- name: "White"
description: "Transparent white"
type: "--white"
bg: "url(/assets/images/various/sven-scheuermeier-34477.jpg) center center/cover no-repeat"
- name: "Semiblack"
description: "Transparent black and turquoise"
type: "--semiblack"
bg: "url(/assets/images/various/rodion-kutsaev-24833.jpg) center top/cover no-repeat"
- name: "Black"
description: "Transparent black"
type: "--black"
bg: "url(/assets/images/various/dmitri-popov-265077.jpg) center center/cover no-repeat"
---
{% include global/header.html %}
{%
include docs/hero.html
title="Made with Bulma"
subtitle="The official community badge."
%}
{% capture image_example %}
<a href="https://bulma.io">
<img
src="{{ site.url }}/assets/images/made-with-bulma.png"
alt="Made with Bulma"
width="128"
height="24">
</a>
{% endcapture %}
{% capture image_bigger_example %}
<a href="https://bulma.io">
<img
src="{{ site.url }}/assets/images/made-with-bulma.png"
alt="Made with Bulma"
width="256"
height="48">
</a>
{% endcapture %}
<main class="bd-mwb">
<div class="container">
<div class="content">
<p>
The <code>Made with Bulma</code> badge is available in <strong>6 different</strong> versions:
</p>
</div>
<div class="table-container">
<table class="table is-bordered bd-mwb-table">
<thead>
<tr>
<th>Type</th>
<th>Preview</th>
<th>Description</th>
<th>Download</th>
</tr>
</thead>
<tbody>
{% for image in page.images %}
{% assign imageUrl = "/assets/images/made-with-bulma" | prepend: site.url | append: image.type | append: ".png" %}
<tr>
<td style="vertical-align: middle;">{{ image.name }}</td>
<td style="background: {{ image.bg }}; vertical-align: middle;"><img src="{{ imageUrl }}" alt="Made with Bulma" width="128" height="24"></td>
<td style="vertical-align: middle;">{{ image.description }}</td>
<td style="vertical-align: middle;">
<a class="button is-link is-soft" href="{{ imageUrl }}">Download image</a>
</td>
</tr>
{% endfor %}
<tr>
<td style="vertical-align: middle;">All 6</td>
<td style="vertical-align: middle;" colspan="2"><code>made-with-bulma-badges.zip</code></td>
<td><a class="button is-primary" href="{{ site.url }}/assets/images/made-with-bulma-badges.zip"><span><strong>Download</strong> all 6 badges</span></a></td>
</tr>
</tbody>
</table>
</div>
{% include docs/elements/anchor.html name="Usage" %}
<div class="content">
<p>
Ideally the image is displayed at <code>128x24</code> pixels, and links back to the Bulma website:
</p>
</div>
{% include docs/elements/snippet.html content=image_example horizontal=true %}
<div class="content">
<p>
Since the original image dimensions are <code>512x96</code> pixels, you can also display it at <code>256x48</code> without losing any quality:
</p>
</div>
{% include docs/elements/snippet.html content=image_bigger_example horizontal=true %}
{% include docs/elements/anchor.html name="Badge snippets" %}
<div class="content">
<p>
You can simply <strong>embed</strong> an image <strong>directly</strong> on your website by using one of the following snippets.
</p>
</div>
{% for image in page.images %}
<div class="bd-snippet bd-is-vertical bd-is-one-fifth">
<div class="bd-snippet-preview bd-is-mwb">
<div class="bd-snippet-mwb" style="background: {{ image.bg }};">
{{ image_example }}
</div>
</div>
<div class="bd-snippet-code bd-is-mwb"><div class="bd-snippet-highlight bd-highlight-full">{% highlight html %}{{ image_example }}{% endhighlight %}</div></div>
</div>
{% endfor %}
</div>
</main>