Compare commits
13 commits
main
...
jo-docs-th
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
018ee6a3b5 | ||
|
|
6551bff1fb | ||
|
|
a564685fa3 | ||
|
|
abc3a6798d | ||
|
|
058067336f | ||
|
|
e46e225895 | ||
|
|
9febb30c19 | ||
|
|
9f72bbae7c | ||
|
|
b72135b4c3 | ||
|
|
3b78e40962 | ||
|
|
4c7953d365 | ||
|
|
dd854e3171 | ||
|
|
1edfa50d1a |
6 changed files with 176 additions and 0 deletions
9
site/assets/scss/_sponsor.scss
Normal file
9
site/assets/scss/_sponsor.scss
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.sponsor {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.sponsor-md {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
|
@ -36,6 +36,7 @@
|
|||
@import "ads";
|
||||
@import "content";
|
||||
@import "skippy";
|
||||
@import "sponsor";
|
||||
@import "sidebar";
|
||||
@import "layout";
|
||||
@import "toc";
|
||||
|
|
|
|||
158
site/content/docs/5.0/thanks.md
Normal file
158
site/content/docs/5.0/thanks.md
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
---
|
||||
layout: docs
|
||||
title: Support the team
|
||||
group: thanks
|
||||
aliases: "/thanks/"
|
||||
toc: true
|
||||
---
|
||||
|
||||
Through donations and sponsorships we are able to maintain & improve Bootstrap. Feel free to show your support on our [Open Collective page](https://opencollective.com/bootstrap).
|
||||
|
||||
## Sponsors
|
||||
|
||||
{{< sponsors.inline >}}
|
||||
<div id="sponsorList" class="d-flex flex-wrap mx-n2 text-center"></div>
|
||||
{{< /sponsors.inline >}}
|
||||
|
||||
## Backers
|
||||
|
||||
{{< backers.inline >}}
|
||||
<div id="backerList" class="d-flex flex-wrap mx-n1 text-center"></div>
|
||||
{{< /backers.inline >}}
|
||||
|
||||
## Services
|
||||
|
||||
{{< services.inline >}}
|
||||
<div class="d-flex mx-n3 flex-wrap">
|
||||
{{- range (index $.Site.Data "services") }}
|
||||
<div class="m-3 position-relative">
|
||||
{{ if .website -}}
|
||||
<a href="{{ .website }}" class="stretched-link text-reset" title="{{ .name }}" target="_blank" rel="nofollow noopener noreferrer">
|
||||
{{ end -}}
|
||||
<img src="{{ printf ("/docs/%s/assets/img/services/%s") $.Site.Params.docs_version .image }}" alt="{{ .name }}" class="mh-100 mw-100">
|
||||
{{ if .website -}}
|
||||
</a>
|
||||
{{ end -}}
|
||||
</div>
|
||||
{{ end -}}
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
'use strict'
|
||||
|
||||
var backerDisplayed = 10
|
||||
|
||||
function displaySponsors(sponsorList) {
|
||||
var sponsorListEl = document.getElementById('sponsorList')
|
||||
var output = []
|
||||
|
||||
sponsorList.forEach(function (sponsor) {
|
||||
var sponsorAccount = sponsor.fromAccount
|
||||
|
||||
output.push(
|
||||
'<div class="m-2 position-relative">',
|
||||
' <div class="img-thumbnail mx-auto d-flex align-items-center justify-content-center overflow-hidden sponsor">',
|
||||
' <img class="img-fluid d-block" src="' + sponsorAccount.imageUrl + '" alt="' + sponsorAccount.name + '">',
|
||||
' </div>',
|
||||
' <h3 class="h6 pt-2">',
|
||||
)
|
||||
|
||||
if (sponsorAccount.website) {
|
||||
output.push('<a href="' + sponsorAccount.website + '" class="stretched-link text-reset" title="' + sponsorAccount.name + '"target="_blank" rel="nofollow noopener noreferrer">' + sponsorAccount.name + '</a>')
|
||||
} else {
|
||||
output.push(sponsorAccount.name)
|
||||
}
|
||||
|
||||
output.push(
|
||||
' </h3>',
|
||||
'</div>'
|
||||
)
|
||||
})
|
||||
|
||||
sponsorListEl.innerHTML = output.join('')
|
||||
}
|
||||
|
||||
function displayBackers(backerList) {
|
||||
var backerListEl = document.getElementById('backerList')
|
||||
var output = []
|
||||
|
||||
backerList.forEach(function (backer) {
|
||||
var backerAccount = backer.fromAccount
|
||||
|
||||
output.push(
|
||||
'<div class="m-1 position-relative">',
|
||||
' <div class="img-thumbnail d-flex align-items-center justify-content-center overflow-hidden sponsor">'
|
||||
)
|
||||
|
||||
if (backerAccount.website) {
|
||||
output.push(
|
||||
'<a href="' + backerAccount.website + '" class="stretched-link text-reset" title="' + backerAccount.name + '" target="_blank" rel="nofollow noopener noreferrer">'
|
||||
)
|
||||
}
|
||||
|
||||
output.push('<img src="' + backerAccount.imageUrl + '" alt="' + backerAccount.name + '" class="img-fluid d-block">')
|
||||
|
||||
if (backerAccount.website) {
|
||||
output.push('</a>')
|
||||
}
|
||||
|
||||
output.push(
|
||||
' </div>',
|
||||
'</div>',
|
||||
)
|
||||
})
|
||||
|
||||
backerListEl.innerHTML = output.join('')
|
||||
}
|
||||
|
||||
function requestOC(cb) {
|
||||
var ocURL = 'https://rest.opencollective.com/v2/bootstrap/orders/incoming/active'
|
||||
var xhr = new XMLHttpRequest()
|
||||
|
||||
xhr.open('GET', ocURL, true)
|
||||
xhr.addEventListener('load', function () {
|
||||
if (xhr.readyState !== 4) {
|
||||
return
|
||||
}
|
||||
|
||||
if (xhr.status === 200) {
|
||||
cb(JSON.parse(xhr.responseText), null)
|
||||
} else {
|
||||
cb(null, xhr.statusText)
|
||||
}
|
||||
})
|
||||
|
||||
xhr.send()
|
||||
}
|
||||
|
||||
(function () {
|
||||
requestOC(function (data) {
|
||||
var allBackerList = data.nodes
|
||||
var backerList = allBackerList.filter(function (backer) {
|
||||
return backer.tier && backer.tier.slug === 'backer'
|
||||
})
|
||||
var sponsorList = allBackerList.filter(function (backer) {
|
||||
return backer.tier && backer.tier.slug === 'sponsor'
|
||||
})
|
||||
|
||||
// Sort by total amount donated
|
||||
sponsorList.sort(function (sponsor1, sponsor2) {
|
||||
return sponsor2.totalDonations.value - sponsor1.totalDonations.value
|
||||
})
|
||||
sponsorList = sponsorList.slice(0, backerDisplayed)
|
||||
|
||||
displaySponsors(sponsorList)
|
||||
|
||||
// Sort by total amount donated
|
||||
backerList.sort(function (backer1, backer2) {
|
||||
return backer2.totalDonations.value - backer1.totalDonations.value
|
||||
})
|
||||
backerList = backerList.slice(0, backerDisplayed)
|
||||
|
||||
displayBackers(backerList)
|
||||
})
|
||||
})()
|
||||
})()
|
||||
</script>
|
||||
{{< /services.inline >}}
|
||||
6
site/data/services.yml
Normal file
6
site/data/services.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- name: Browserstack
|
||||
image: browserstack.svg
|
||||
website: https://www.browserstack.com/
|
||||
- name: Netlify
|
||||
image: netlify.svg
|
||||
website: https://www.netlify.com
|
||||
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 203 45" width="140" height="40"><defs><radialGradient id="a" cx="50.08%" cy="50.66%" r="50.4%" fx="50.08%" fy="50.66%"><stop offset="0%" stop-color="#797979"/><stop offset="100%" stop-color="#4C4C4C"/></radialGradient></defs><g fill="none"><circle cx="22.7" cy="22.4" r="21.7" fill="#F4B960"/><circle cx="20.5" cy="20.2" r="19.6" fill="#E66F32"/><circle cx="23.2" cy="17.7" r="17" fill="#E43C41"/><circle cx="24.5" cy="19" r="15.6" fill="#BDD041"/><circle cx="23.4" cy="20.2" r="14.5" fill="#6DB54C"/><circle cx="21.1" cy="17.8" r="12.1" fill="#AEDAE6"/><circle cx="23" cy="15.8" r="10.2" fill="#56B8DE"/><circle cx="24.3" cy="17.2" r="8.9" fill="#00B1D5"/><circle cx="23" cy="18.4" r="7.6" fill="url(#a)"/><circle cx="23" cy="18.4" r="7.6" fill="#221F1F"/><ellipse cx="26.04" cy="15.65" fill="#FFF" rx="2.4" ry="1.5" transform="rotate(-65.834 26.044 15.648)"/><path fill="#202020" d="M51.5 14.2c0-.1.1-.3.3-.3h6.9c3.9 0 5.7 1.8 5.7 4.5 0 2-1 3-2.2 3.6v.1c1.1.4 2.5 1.8 2.5 3.9 0 3.4-2.3 5-6.3 5h-6.6c-.1 0-.3-.1-.3-.3V14.2zm7.1 6.8c1.6 0 2.6-.9 2.6-2.2 0-1.4-1-2.3-2.6-2.3h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.1.3.1.3a6 6 0 0 1-4.5 1.8c-2.6.1-4.6-1.1-5.4-3.3zm20.5 3c-.2 0-.3-.1-.5-.3l-3.3-5-1.8 1.9v3.1c0 .1-.1.3-.3.3h-2.5c-.1 0-.3-.1-.3-.3V14c0-.1.1-.3.3-.3h2.5c.1 0 .3.1.3.3v9.8L199 19c.1-.2.3-.3.5-.3h2.8c.1 0 .3.1.1.3l-4.2 4.4 4.7 7.2c.1.1.1.3-.1.3l-2.7-.1z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 4.4 KiB |
1
site/static/docs/5.0/assets/img/services/netlify.svg
Normal file
1
site/static/docs/5.0/assets/img/services/netlify.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 5.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue