bulma/docs/made-with-bulma.html

142 lines
4.3 KiB
HTML
Raw Permalink Normal View History

2017-10-12 16:25:11 +00:00
---
fulltitle: Made with Bulma badges
layout: default
2024-03-21 16:11:54 +00:00
theme: expo
2017-10-12 16:25:11 +00:00
route: made-with-bulma
2018-04-10 17:50:19 +00:00
breadcrumb:
- home
- more
- made-with-bulma
2017-10-12 16:25:11 +00:00
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"
2024-03-21 16:11:54 +00:00
bg: "url(/assets/images/various/tom-levold-260373.jpg) center center/cover no-repeat"
2017-10-12 16:25:11 +00:00
- name: "White"
description: "Transparent white"
type: "--white"
2024-03-21 16:11:54 +00:00
bg: "url(/assets/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"
2024-03-21 16:11:54 +00:00
bg: "url(/assets/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"
2024-03-21 16:11:54 +00:00
bg: "url(/assets/images/various/dmitri-popov-265077.jpg) center center/cover no-repeat"
2017-10-12 16:25:11 +00:00
---
2024-03-21 16:11:54 +00:00
{% include global/header.html %}
{%
2024-03-21 16:11:54 +00:00
include docs/hero.html
title="Made with Bulma"
subtitle="The official community badge."
%}
2017-10-12 16:25:11 +00:00
{% capture image_example %}
2017-10-16 12:23:57 +00:00
<a href="https://bulma.io">
<img
2024-03-21 16:11:54 +00:00
src="{{ site.url }}/assets/images/made-with-bulma.png"
alt="Made with Bulma"
width="128"
height="24">
2017-10-12 16:25:11 +00:00
</a>
{% endcapture %}
{% capture image_bigger_example %}
2017-10-16 12:23:57 +00:00
<a href="https://bulma.io">
<img
2024-03-21 16:11:54 +00:00
src="{{ site.url }}/assets/images/made-with-bulma.png"
alt="Made with Bulma"
width="256"
height="48">
2017-10-12 16:25:11 +00:00
</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>
2018-04-10 21:38:00 +00:00
<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 %}
2024-03-21 16:11:54 +00:00
{% assign imageUrl = "/assets/images/made-with-bulma" | prepend: site.url | append: image.type | append: ".png" %}
<tr>
2024-03-21 16:11:54 +00:00
<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>
2024-03-21 16:11:54 +00:00
<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>
2017-10-12 16:25:11 +00:00
2024-03-21 16:11:54 +00:00
{% include docs/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>
2017-10-12 16:25:11 +00:00
2024-03-21 16:11:54 +00:00
{% include docs/elements/snippet.html content=image_example horizontal=true %}
2017-10-12 16:25:11 +00:00
<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>
2017-10-12 16:25:11 +00:00
2024-03-21 16:11:54 +00:00
{% include docs/elements/snippet.html content=image_bigger_example horizontal=true %}
2017-10-12 16:25:11 +00:00
2024-03-21 16:11:54 +00:00
{% 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>
2017-10-12 16:25:11 +00:00
2018-04-10 17:50:19 +00:00
{% for image in page.images %}
<div class="bd-snippet bd-is-vertical bd-is-one-fifth">
2024-03-21 16:11:54 +00:00
<div class="bd-snippet-preview bd-is-mwb">
<div class="bd-snippet-mwb" style="background: {{ image.bg }};">
{{ image_example }}
</div>
</div>
2024-03-21 16:11:54 +00:00
<div class="bd-snippet-code bd-is-mwb"><div class="bd-snippet-highlight bd-highlight-full">{% highlight html %}{{ image_example }}{% endhighlight %}</div></div>
2018-04-10 17:50:19 +00:00
</div>
{% endfor %}
</div>
</main>