]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add backers page
authorJeremy Thomas <bbxdesign@gmail.com>
Wed, 15 Nov 2017 13:01:33 +0000 (13:01 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Wed, 15 Nov 2017 13:01:33 +0000 (13:01 +0000)
docs/_data/backers.json [new file with mode: 0644]
docs/_includes/elements/patreon-item.html [new file with mode: 0644]
docs/_includes/navbar.html
docs/_sass/patreon.sass
docs/backers.html [new file with mode: 0644]
docs/css/bulma-docs.css

diff --git a/docs/_data/backers.json b/docs/_data/backers.json
new file mode 100644 (file)
index 0000000..6a22e3f
--- /dev/null
@@ -0,0 +1,42 @@
+{
+  "30": [
+    {
+      "FirstName": "Adrian",
+      "LastName": "Ocneanu",
+      "Pledge": 30,
+      "Twitter": ""
+    }
+  ],
+  "10": [
+    {
+      "FirstName": "Niklas",
+      "LastName": "",
+      "Pledge": 10,
+      "Twitter": "paradoxxger"
+    },
+    {
+      "FirstName": "dansup",
+      "LastName": "",
+      "Pledge": 10,
+      "Twitter": "dsup"
+    },
+    {
+      "FirstName": "Wikiki",
+      "LastName": "",
+      "Pledge": 10,
+      "Twitter": ""
+    },
+    {
+      "FirstName": "Peter",
+      "LastName": "Ryszkiewicz",
+      "Pledge": 10,
+      "Twitter": ""
+    },
+    {
+      "FirstName": "Michael",
+      "LastName": "Schinis",
+      "Pledge": 10,
+      "Twitter": ""
+    }
+  ]
+}
diff --git a/docs/_includes/elements/patreon-item.html b/docs/_includes/elements/patreon-item.html
new file mode 100644 (file)
index 0000000..1a80f0f
--- /dev/null
@@ -0,0 +1,8 @@
+<li>
+  {{ backer.FirstName }} {{ backer.LastName }}
+  {% if backer.Twitter != "" %}
+    <a href="https://twitter.com/{{ backer.Twitter }}" target="_blank">
+      @{{ backer.Twitter }}
+    </a>
+  {% endif %}
+</li>
index 9c5b953bc6343eaa2caef2478e6339dd2efdb978..8f3dc89cdede5080d32cda31d519bafd915b8cf2 100644 (file)
           More
         </div>
         <div id="moreDropdown" class="navbar-dropdown {% if include.boxed %}is-boxed{% endif %}">
+          <a class="navbar-item {% if page.route == 'backers' %}is-active{% endif %}" href="{{ site.url }}/backers/">
+            <p>
+              <strong>Patreon backers</strong>
+              <br>
+              <small>Everyone who is supporting Bulma</small>
+            </p>
+          </a>
+          <hr class="navbar-divider">
           <a class="navbar-item {% if page.route == 'bulma-start' %}is-active{% endif %}" href="{{ site.url }}/bulma-start/">
             <p>
               <strong>Bulma start</strong>
index 8922a49e70cb449622a13819ea4c6e86acaa2e49..74a0613e87fb95e7b24b4f2b635e631db49696cc 100644 (file)
@@ -21,6 +21,9 @@
   img
     max-height: 100%
 
+.hero.bd-is-patreon
+  background-color: $patreon
+
 +from(480px)
   .bd-patreon-text
     margin-right: 1rem
diff --git a/docs/backers.html b/docs/backers.html
new file mode 100644 (file)
index 0000000..7495a54
--- /dev/null
@@ -0,0 +1,52 @@
+---
+title: Backers via Patreon
+layout: default
+route: backers
+---
+
+{% include navbar.html id="BackersNavbar" %}
+
+<section class="hero is-primary bd-is-patreon">
+  <div class="hero-body">
+    <div class="container">
+      <div class="columns is-vcentered">
+        <div class="column">
+          <h1 class="title">
+            Backers via Patreon
+          </h1>
+          <p class="subtitle">
+            Everyone who is supporting Bulma
+          </p>
+        </div>
+        <div class="column is-narrow">
+          {% include carbon.html %}
+        </div>
+      </div>
+    </div>
+  </div>
+</section>
+
+<section class="section">
+  <div class="container">
+    <h2 class="title is-5">
+      Generous backers via Patreon ($30+)
+    </h2>
+    <div class="content">
+      <ul>
+        {% for backer in site.data.backers.30 reversed %}
+          {% include elements/patreon-item.html %}
+        {% endfor %}
+      </ul>
+    </div>
+    <h2 class="title is-5">
+      Backers via Patreon ($10+)
+    </h2>
+    <div class="content">
+      <ul>
+        {% for backer in site.data.backers.10 reversed %}
+          {% include elements/patreon-item.html %}
+        {% endfor %}
+      </ul>
+    </div>
+  </div>
+</section>
index 91b5d36bd45ee6985d75a93373f6d5e2ce3ab2dc..611fc5bb11d877bb14583968de015f22a8863e05 100644 (file)
@@ -13289,6 +13289,10 @@ html.route-index .hero.is-primary a.column:hover .title strong {
   max-height: 100%;
 }
 
+.hero.bd-is-patreon {
+  background-color: #f96854;
+}
+
 @media screen and (min-width: 480px) {
   .bd-patreon-text {
     margin-right: 1rem;