made-with-bulma.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. ---
  2. fulltitle: Made with Bulma badges
  3. layout: default
  4. route: made-with-bulma
  5. images:
  6. - name: "Default"
  7. description: "White boxed"
  8. type: ""
  9. bg: "#fff"
  10. - name: "Dark"
  11. description: "Dark boxed"
  12. type: "--dark"
  13. bg: "#000"
  14. - name: "Semi white"
  15. description: "Transparent white and turquoise"
  16. type: "--semiwhite"
  17. bg: "url(/images/various/tom-levold-260373.jpg) center center/cover no-repeat"
  18. - name: "White"
  19. description: "Transparent white"
  20. type: "--white"
  21. bg: "url(/images/various/sven-scheuermeier-34477.jpg) center center/cover no-repeat"
  22. - name: "Semiblack"
  23. description: "Transparent black and turquoise"
  24. type: "--semiblack"
  25. bg: "url(/images/various/rodion-kutsaev-24833.jpg) center top/cover no-repeat"
  26. - name: "Black"
  27. description: "Transparent black"
  28. type: "--black"
  29. bg: "url(/images/various/dmitri-popov-265077.jpg) center center/cover no-repeat"
  30. ---
  31. {% capture image_example %}
  32. <a href="https://bulma.io">
  33. <img src="/path/to/made-with-bulma.png" alt="Made with Bulma" width="128" height="24">
  34. </a>
  35. {% endcapture %}
  36. {% capture image_bigger_example %}
  37. <a href="https://bulma.io">
  38. <img src="/path/to/made-with-bulma.png" alt="Made with Bulma" width="256" height="48">
  39. </a>
  40. {% endcapture %}
  41. <div class="container">
  42. {% include navbar.html id="MadeWithBulmaHero" %}
  43. </div>
  44. <section class="hero is-primary">
  45. <div class="hero-body">
  46. <div class="container">
  47. <div class="columns is-vcentered">
  48. <div class="column">
  49. <h1 class="title">
  50. Made with Bulma
  51. </h1>
  52. <p class="subtitle">
  53. Join the Bulma community by displaying a badge on your website
  54. </p>
  55. </div>
  56. <div class="column is-narrow">
  57. {% include carbon.html %}
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </section>
  63. <section class="section">
  64. <div class="container">
  65. <h2 class="title">6 badges available</h2>
  66. <div class="content">
  67. <p>
  68. The <code>Made with Bulma</code> badge is available in <strong>6 different</strong> versions:
  69. </p>
  70. </div>
  71. <table class="table is-bordered bd-mwb-table">
  72. <thead>
  73. <tr>
  74. <th>Type</th>
  75. <th>Preview</th>
  76. <th>Description</th>
  77. <th>Download</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. {% for image in page.images %}
  82. {% assign imageUrl = "/images/made-with-bulma" | prepend: site.url | append: image.type | append: ".png" %}
  83. <tr>
  84. <td>{{ image.name }}</td>
  85. <td style="background: {{ image.bg }};"><img src="{{ imageUrl }}" alt="Made with Bulma" width="128" height="24"></td>
  86. <td>{{ image.description }}</td>
  87. <td>
  88. <a class="button is-link is-small" href="{{ imageUrl }}">Download image</a>
  89. </td>
  90. </tr>
  91. {% endfor %}
  92. <tr>
  93. <td style="vertical-align: middle;">All 6</td>
  94. <td style="vertical-align: middle;" colspan="2"><code>made-with-bulma-badges.zip</code></td>
  95. <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>
  96. </tr>
  97. </tbody>
  98. </table>
  99. {% include anchor.html name="Usage" %}
  100. <div class="content">
  101. <p>
  102. Ideally the image is displayed at <code>128x24</code> pixels, and links back to the Bulma website:
  103. </p>
  104. </div>
  105. <div class="bd-snippet bd-is-vertical bd-is-two-fifths">
  106. <div class="bd-snippet-preview">
  107. <a href="https://bulma.io">
  108. <img src="{{ site.url }}/images/made-with-bulma.png" alt="Made with Bulma" width="128" height="24">
  109. </a>
  110. </div>
  111. <div class="bd-snippet-code highlight-full">
  112. {% highlight html %}{{ image_example }}{% endhighlight %}
  113. </div>
  114. </div>
  115. <div class="content">
  116. <p>
  117. Since the original image dimensions are <code>512x96</code> pixels, you can also display it at <code>256x48</code> without losing any quality:
  118. </p>
  119. </div>
  120. <div class="bd-snippet bd-is-vertical bd-is-two-fifths">
  121. <div class="bd-snippet-preview">
  122. <a href="https://bulma.io">
  123. <img src="{{ site.url }}/images/made-with-bulma.png" alt="Made with Bulma" width="256" height="48">
  124. </a>
  125. </div>
  126. <div class="bd-snippet-code highlight-full">
  127. {% highlight html %}{{ image_bigger_example }}{% endhighlight %}
  128. </div>
  129. </div>
  130. {% include anchor.html name="Badge snippets" %}
  131. <div class="content">
  132. <p>
  133. You can simply <strong>embed</strong> an image <strong>directly</strong> on your website by using one of the following snippets.
  134. </p>
  135. </div>
  136. {% for image in page.images %}
  137. {% capture image_example %}
  138. <a href="https://bulma.io">
  139. <img src="{{ site.url }}/images/made-with-bulma{{ image.type }}.png" alt="Made with Bulma" width="128" height="24">
  140. </a>
  141. {% endcapture %}
  142. <div class="bd-snippet bd-is-vertical bd-is-one-fifth">
  143. <div class="bd-snippet-preview" style="background: {{ image.bg }};">
  144. {{ image_example }}
  145. </div>
  146. <div class="bd-snippet-code highlight-full">
  147. {% highlight html %}{{ image_example }}{% endhighlight %}
  148. </div>
  149. </div>
  150. {% endfor %}
  151. </div>
  152. </section>