Add more page

This commit is contained in:
Jeremy Thomas 2018-04-10 18:22:04 +01:00
parent 67f3e64158
commit a8c0805988
10 changed files with 164 additions and 35 deletions

View File

@ -9,7 +9,7 @@
}, },
{ {
"id": "expo", "id": "expo",
"color": "bd-has-text-star", "color": "has-text-star",
"fa_type": "fas", "fa_type": "fas",
"fa_icon": "fa-star", "fa_icon": "fa-star",
"title": "Expo" "title": "Expo"

View File

@ -330,36 +330,51 @@
"expo": { "expo": {
"name": "Expo", "name": "Expo",
"subtitle": "Official Bulma showcase", "subtitle": "Official Bulma showcase",
"icon": "star",
"color": "star",
"path": "/expo" "path": "/expo"
}, },
"love": { "love": {
"name": "Love", "name": "Love",
"subtitle": "Fans of Bulma around the world", "subtitle": "Fans of Bulma around the world",
"color": "danger",
"icon": "heart",
"path": "/love" "path": "/love"
}, },
"bulma-start": { "bulma-start": {
"name": "Bulma start", "name": "Bulma start",
"subtitle": "A tiny npm package to get started", "subtitle": "A tiny npm package to get started",
"icon": "rocket",
"color": "success",
"path": "/bulma-start" "path": "/bulma-start"
}, },
"made-with-bulma": { "made-with-bulma": {
"name": "Made with Bulma", "name": "Made with Bulma",
"subtitle": "The official community badge", "subtitle": "The official community badge",
"icon": "certificate",
"color": "primary",
"path": "/made-with-bulma" "path": "/made-with-bulma"
}, },
"bootstrap": { "bootstrap": {
"name": "Coming from Bootstrap", "name": "Coming from Bootstrap",
"subtitle": "See how Bulma is an alternative to Bootstrap", "subtitle": "See how Bulma is an alternative to Bootstrap",
"icon": "exchange-alt",
"color": "bootstrap",
"path": "/alternative-to-bootstrap" "path": "/alternative-to-bootstrap"
}, },
"patreon-backers": { "patreon-backers": {
"name": "Patreon backers", "name": "Patreon backers",
"subtitle": "Everyone who is supporting Bulma", "subtitle": "Everyone who is supporting Bulma",
"icon_brand": "true",
"icon": "patreon",
"color": "patreon",
"path": "/backers" "path": "/backers"
}, },
"extensions": { "extensions": {
"name": "Bulma extensions", "name": "Bulma extensions",
"subtitle": "Side projects to enhance Bulma", "subtitle": "Side projects to enhance Bulma",
"icon": "plug",
"color": "orange",
"path": "/extensions" "path": "/extensions"
} }
}, },

View File

@ -21,7 +21,7 @@
<a class="bd-footer-star bd-is-expo" href="{{ site.url }}{{ expo_link.path }}"> <a class="bd-footer-star bd-is-expo" href="{{ site.url }}{{ expo_link.path }}">
<header class="bd-footer-star-header"> <header class="bd-footer-star-header">
<h4 class="bd-footer-title"> <h4 class="bd-footer-title">
<span class="icon bd-has-text-star"> <span class="icon has-text-star">
<i class="fas fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<strong>Expo</strong> <strong>Expo</strong>

View File

@ -51,20 +51,22 @@
</p> </p>
{% for link_id in site.data.links.more %} {% for link_id in site.data.links.more %}
{% assign link = site.data.links.by_id[link_id] %} {% assign link = site.data.links.by_id[link_id] %}
<p class="bd-footer-link bd-has-subtitle"> <p class="bd-footer-link bd-has-subtitle">
<a href="{{ site.url }}{{ link.path }}"> <a href="{{ site.url }}{{ link.path }}">
<span> <span class="bd-footer-link-icon has-text-{{ link.color }}">
{{ link.name }} <i class="{% if link.icon_brand %}fab{% elsif link.icon_regular %}far{% else %}fas{% endif %} fa-{{ link.icon }}"></i>
</span> </span>
<strong>
{{ link.name }}
</strong>
<em> <em>
{{ link.subtitle }} {{ link.subtitle }}
</em> </em>
</a> </a>
</p> </p>
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
</div> </div>

View File

@ -18,6 +18,24 @@
</div> </div>
</div> </div>
<div class="bd-footer-donation column">
<p class="bd-footer-donation-title">
<strong>Visit</strong> our sponsor
</p>
<div class="bd-footer-donation-action">
<a href="https://chainaxe.io/" target="_blank" rel="nofollow">
{%
include elements/responsive-image.html
path="sponsors/chainaxe"
extension="png"
alt="chainaxe logo"
width="99"
height="70"
%}
</a>
</div>
</div>
<div class="bd-footer-donation column"> <div class="bd-footer-donation column">
<p class="bd-footer-donation-title"> <p class="bd-footer-donation-title">
<strong>Monthly</strong> donation <strong>Monthly</strong> donation

View File

@ -2,10 +2,6 @@
{% include book/book-banner.html %} {% include book/book-banner.html %}
{% include global/sponsors.html %}
<hr class="is-marginless">
{% include global/newsletter.html %} {% include global/newsletter.html %}
{% include footer/main.html %} {% include footer/main.html %}

View File

@ -2,7 +2,7 @@
color: $text-strong color: $text-strong
font-size: 1.25rem font-size: 1.25rem
line-height: 1.25 line-height: 1.25
margin-bottom: 1rem margin-bottom: 0.5rem
transition-duration: $speed transition-duration: $speed
transition-property: color transition-property: color
strong strong
@ -10,7 +10,7 @@
.bd-footer-subtitle .bd-footer-subtitle
color: $grey-light color: $grey-light
margin-top: -1rem margin-top: -0.5rem
transition-duration: $speed transition-duration: $speed
transition-property: color transition-property: color
@ -26,7 +26,7 @@
.bd-footer-tsp .bd-footer-tsp
color: $grey-light color: $grey-light
margin-top: 1rem margin-top: 1.5rem
%bd-footer-box %bd-footer-box
background-color: $white background-color: $white
@ -36,15 +36,16 @@
text-align: center text-align: center
.bd-footer-title .bd-footer-title
font-size: 1.5rem font-size: 1.5rem
margin-bottom: 1rem
// Support // Support
.bd-footer-support .bd-footer-support
@extend %bd-footer-box @extend %bd-footer-box
margin-bottom: 3rem margin-bottom: 3rem
margin-top: 2.25rem margin-top: 3rem
padding: 2.5rem padding: 3rem
.bd-footer-title
margin-bottom: 1.5rem
.bd-footer-donations .bd-footer-donations
justify-content: center justify-content: center
@ -61,7 +62,7 @@
.bd-footer-donation-action .bd-footer-donation-action
@extend %center @extend %center
min-height: 36px height: 70px
.paypal-form .paypal-form
height: 30px height: 30px
img img
@ -139,13 +140,20 @@ $star-figure-height: 156px
margin-top: 1.5em margin-top: 1.5em
.bd-footer-link .bd-footer-link
margin-top: 0.25rem margin-top: 0.5rem
&.bd-is-more &.bd-is-more
font-size: 0.875rem font-size: 0.875rem
a:not(:hover) a:not(:hover)
color: $grey-light color: $grey-light
&.bd-has-subtitle &.bd-has-subtitle
a a
align-items: center
display: flex
justify-content: space-between
strong
flex-grow: 1
flex-shrink: 1
font-weight: unset
em em
display: block display: block
font-size: 0.875rem font-size: 0.875rem
@ -153,10 +161,19 @@ $star-figure-height: 156px
&:not(:hover) &:not(:hover)
em em
color: $grey-light color: $grey-light
+mobile
flex-wrap: wrap
margin-top: 1rem
em
width: 100%
+tablet +tablet
align-items: center
display: flex
justify-content: space-between
em em
margin-left: 1rem margin-left: 1rem
text-align: right text-align: right
.bd-footer-link-icon
flex-grow: 0
flex-shrink: 0
margin-right: 0.5em
text-align: center
width: 1em

View File

@ -93,7 +93,7 @@
.bd-has-text-rss .bd-has-text-rss
color: $rss color: $rss
.bd-has-text-star .has-text-star
color: $star color: $star
// $navbar-items: ("documentation": $primary, "templates": $info, "videos": $success, "blog": $rss, "expo": $star, "love": $red) // $navbar-items: ("documentation": $primary, "templates": $info, "videos": $success, "blog": $rss, "expo": $star, "love": $red)

View File

@ -10654,7 +10654,7 @@ svg {
color: #363636; color: #363636;
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1.25; line-height: 1.25;
margin-bottom: 1rem; margin-bottom: 0.5rem;
transition-duration: 86ms; transition-duration: 86ms;
transition-property: color; transition-property: color;
} }
@ -10665,7 +10665,7 @@ svg {
.bd-footer-subtitle { .bd-footer-subtitle {
color: #b5b5b5; color: #b5b5b5;
margin-top: -1rem; margin-top: -0.5rem;
transition-duration: 86ms; transition-duration: 86ms;
transition-property: color; transition-property: color;
} }
@ -10687,7 +10687,7 @@ svg {
.bd-footer-tsp { .bd-footer-tsp {
color: #b5b5b5; color: #b5b5b5;
margin-top: 1rem; margin-top: 1.5rem;
} }
.bd-footer-support, .bd-footer-star { .bd-footer-support, .bd-footer-star {
@ -10700,13 +10700,16 @@ svg {
.bd-footer-support .bd-footer-title, .bd-footer-star .bd-footer-title { .bd-footer-support .bd-footer-title, .bd-footer-star .bd-footer-title {
font-size: 1.5rem; font-size: 1.5rem;
margin-bottom: 1rem;
} }
.bd-footer-support { .bd-footer-support {
margin-bottom: 3rem; margin-bottom: 3rem;
margin-top: 2.25rem; margin-top: 3rem;
padding: 2.5rem; padding: 3rem;
}
.bd-footer-support .bd-footer-title {
margin-bottom: 1.5rem;
} }
.bd-footer-donations { .bd-footer-donations {
@ -10728,7 +10731,7 @@ svg {
} }
.bd-footer-donation-action { .bd-footer-donation-action {
min-height: 36px; height: 70px;
} }
.bd-footer-donation-action .paypal-form { .bd-footer-donation-action .paypal-form {
@ -10836,7 +10839,7 @@ svg {
} }
.bd-footer-link { .bd-footer-link {
margin-top: 0.25rem; margin-top: 0.5rem;
} }
.bd-footer-link.bd-is-more { .bd-footer-link.bd-is-more {
@ -10847,6 +10850,18 @@ svg {
color: #b5b5b5; color: #b5b5b5;
} }
.bd-footer-link.bd-has-subtitle a {
align-items: center;
display: flex;
justify-content: space-between;
}
.bd-footer-link.bd-has-subtitle a strong {
flex-grow: 1;
flex-shrink: 1;
font-weight: unset;
}
.bd-footer-link.bd-has-subtitle a em { .bd-footer-link.bd-has-subtitle a em {
display: block; display: block;
font-size: 0.875rem; font-size: 0.875rem;
@ -10857,18 +10872,31 @@ svg {
color: #b5b5b5; color: #b5b5b5;
} }
@media screen and (min-width: 769px), print { @media screen and (max-width: 768px) {
.bd-footer-link.bd-has-subtitle a { .bd-footer-link.bd-has-subtitle a {
align-items: center; flex-wrap: wrap;
display: flex; margin-top: 1rem;
justify-content: space-between;
} }
.bd-footer-link.bd-has-subtitle a em {
width: 100%;
}
}
@media screen and (min-width: 769px), print {
.bd-footer-link.bd-has-subtitle a em { .bd-footer-link.bd-has-subtitle a em {
margin-left: 1rem; margin-left: 1rem;
text-align: right; text-align: right;
} }
} }
.bd-footer-link-icon {
flex-grow: 0;
flex-shrink: 0;
margin-right: 0.5em;
text-align: center;
width: 1em;
}
::-moz-selection { ::-moz-selection {
background-color: #00d1b2; background-color: #00d1b2;
color: #fff; color: #fff;
@ -11011,7 +11039,7 @@ svg {
color: #f26522; color: #f26522;
} }
.bd-has-text-star { .has-text-star {
color: #FFD257; color: #FFD257;
} }

53
docs/more.html Normal file
View File

@ -0,0 +1,53 @@
---
title: More
layout: default
breadcrumb:
- home
- more
---
{% include global/navbar.html id="More" %}
<main class="bd-main">
<div class="bd-main-container container">
<div class="bd-duo">
<div class="bd-lead">
{% include components/breadcrumb.html %}
<header class="bd-header">
<div class="bd-header-titles">
<h1 class="title">
More
</h1>
<p class="subtitle is-4">
Projects and content related to Bulma
</p>
</div>
<div class="bd-header-carbon">
{% include elements/carbon.html %}
</div>
</header>
<div class="bd-content">
<div class="bd-links">
{% for link_id in site.data.links.more %}
{% assign link = site.data.links.by_id[link_id] %}
<a class="bd-link bd-is-post" href="{{ site.url }}{{ link.path }}">
<h2 class="bd-link-name">
<span class="bd-link-icon has-text-{{ link.color }}">
<i class="{% if link.icon_brand %}fab{% elsif link.icon_regular %}far{% else %}fas{% endif %} fa-{{ link.icon }}"></i>
</span>
{{ link.name }}
</h2>
<p class="bd-link-subtitle">
{{ link.subtitle }}
</p>
</a>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</main>