bulma/docs/made-with-bulma.html

164 lines
5.2 KiB
HTML
Raw Normal View History

2017-10-12 16:25:11 +00:00
---
fulltitle: Made with Bulma badges
layout: default
route: 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(/images/various/tom-levold-260373.jpg) center center/cover no-repeat"
- name: "White"
description: "Transparent white"
type: "--white"
2017-10-13 11:12:53 +00:00
bg: "url(/images/various/sven-scheuermeier-34477.jpg) center center/cover no-repeat"
2017-10-12 16:25:11 +00:00
- name: "Semiblack"
description: "Transparent black and turquoise"
type: "--semiblack"
2017-10-13 11:12:53 +00:00
bg: "url(/images/various/rodion-kutsaev-24833.jpg) center top/cover no-repeat"
2017-10-12 16:25:11 +00:00
- name: "Black"
description: "Transparent black"
type: "--black"
2017-10-13 11:12:53 +00:00
bg: "url(/images/various/dmitri-popov-265077.jpg) center center/cover no-repeat"
2017-10-12 16:25:11 +00:00
---
{% capture image_example %}
2017-10-16 12:23:57 +00:00
<a href="https://bulma.io">
2017-10-12 16:25:11 +00:00
<img src="/path/to/made-with-bulma.png" alt="Made with Bulma" width="128" height="24">
</a>
{% endcapture %}
{% capture image_bigger_example %}
2017-10-16 12:23:57 +00:00
<a href="https://bulma.io">
2017-10-12 16:25:11 +00:00
<img src="/path/to/made-with-bulma.png" alt="Made with Bulma" width="256" height="48">
</a>
{% endcapture %}
2018-04-09 21:25:26 +00:00
{% include global/navbar.html id="MadeWithBulmaHero" %}
2017-10-12 16:25:11 +00:00
<section class="hero is-primary">
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column">
<h1 class="title">
Made with Bulma
</h1>
<p class="subtitle">
Join the Bulma community by displaying a badge on your website
</p>
</div>
<div class="column is-narrow">
2018-04-09 21:25:26 +00:00
{% include elements/carbon.html %}
2017-10-12 16:25:11 +00:00
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container">
<h2 class="title">6 badges available</h2>
<div class="content">
<p>
The <code>Made with Bulma</code> badge is available in <strong>6 different</strong> versions:
</p>
</div>
2017-10-13 11:12:53 +00:00
<table class="table is-bordered bd-mwb-table">
2017-10-12 16:25:11 +00:00
<thead>
<tr>
<th>Type</th>
<th>Preview</th>
<th>Description</th>
<th>Download</th>
</tr>
</thead>
<tbody>
{% for image in page.images %}
{% assign imageUrl = "/images/made-with-bulma" | prepend: site.url | append: image.type | append: ".png" %}
2017-10-12 16:25:11 +00:00
<tr>
<td>{{ image.name }}</td>
<td style="background: {{ image.bg }};"><img src="{{ imageUrl }}" alt="Made with Bulma" width="128" height="24"></td>
<td>{{ image.description }}</td>
<td>
<a class="button is-link is-small" 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 }}/images/made-with-bulma-badges.zip"><span><strong>Download</strong> all 6 badges</span></a></td>
</tr>
</tbody>
</table>
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Usage" %}
2017-10-12 16:25:11 +00:00
<div class="content">
<p>
Ideally the image is displayed at <code>128x24</code> pixels, and links back to the Bulma website:
</p>
</div>
<div class="bd-snippet bd-is-vertical bd-is-two-fifths">
<div class="bd-snippet-preview">
2017-10-16 12:23:57 +00:00
<a href="https://bulma.io">
2017-10-12 16:25:11 +00:00
<img src="{{ site.url }}/images/made-with-bulma.png" alt="Made with Bulma" width="128" height="24">
</a>
</div>
<div class="bd-snippet-code highlight-full">
{% highlight html %}{{ image_example }}{% endhighlight %}
</div>
</div>
<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>
<div class="bd-snippet bd-is-vertical bd-is-two-fifths">
<div class="bd-snippet-preview">
2017-10-16 12:23:57 +00:00
<a href="https://bulma.io">
2017-10-12 16:25:11 +00:00
<img src="{{ site.url }}/images/made-with-bulma.png" alt="Made with Bulma" width="256" height="48">
</a>
</div>
<div class="bd-snippet-code highlight-full">
{% highlight html %}{{ image_bigger_example }}{% endhighlight %}
</div>
</div>
2018-04-09 21:25:26 +00:00
{% include elements/anchor.html name="Badge snippets" %}
2017-10-12 16:25:11 +00:00
<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 %}
{% capture image_example %}
2017-10-16 12:23:57 +00:00
<a href="https://bulma.io">
2017-10-12 16:25:11 +00:00
<img src="{{ site.url }}/images/made-with-bulma{{ image.type }}.png" alt="Made with Bulma" width="128" height="24">
</a>
{% endcapture %}
<div class="bd-snippet bd-is-vertical bd-is-one-fifth">
<div class="bd-snippet-preview" style="background: {{ image.bg }};">
{{ image_example }}
</div>
<div class="bd-snippet-code highlight-full">
{% highlight html %}{{ image_example }}{% endhighlight %}
</div>
</div>
{% endfor %}
</div>
</section>