mirror of https://github.com/twbs/bootstrap.git
Merge d5b5c3b0e1
into 99a0dc628a
This commit is contained in:
commit
5a700dca1a
|
@ -0,0 +1,9 @@
|
|||
.sponsor {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.sponsor-md {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
|
@ -40,6 +40,7 @@ $enable-cssgrid: true;
|
|||
@import "ads";
|
||||
@import "content";
|
||||
@import "skippy";
|
||||
@import "sponsor";
|
||||
@import "sidebar";
|
||||
@import "layout";
|
||||
@import "toc";
|
||||
|
|
|
@ -0,0 +1,158 @@
|
|||
---
|
||||
layout: docs
|
||||
title: Support Bootstrap
|
||||
description: Show your support through donations and sponsorships to help maintaining Bootstrap
|
||||
group: about
|
||||
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 gap-3 text-center mt-3"></div>
|
||||
{{< /sponsors.inline >}}
|
||||
|
||||
## Backers
|
||||
|
||||
{{< backers.inline >}}
|
||||
<div id="backerList" class="d-flex flex-wrap gap-3 text-center mt-3"></div>
|
||||
{{< /backers.inline >}}
|
||||
|
||||
## Services
|
||||
|
||||
{{< services.inline >}}
|
||||
<div class="d-flex flex-wrap gap-3 mt-3">
|
||||
{{- range (index $.Site.Data "services") }}
|
||||
<div class="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="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="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 >}}
|
|
@ -0,0 +1,6 @@
|
|||
- name: Browserstack
|
||||
image: browserstack.svg
|
||||
website: https://www.browserstack.com/
|
||||
- name: Netlify
|
||||
image: netlify.svg
|
||||
website: https://www.netlify.com
|
|
@ -155,5 +155,6 @@
|
|||
- title: Brand
|
||||
- title: License
|
||||
- title: Translations
|
||||
- title: Support Bootstrap
|
||||
|
||||
- title: Migration
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
{{ partial "home/plugins" . }}
|
||||
{{ partial "home/icons" . }}
|
||||
{{ partial "home/themes" . }}
|
||||
{{ partial "home/sponsoring" . }}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<section class="row g-3 g-md-5 pb-md-5 mb-5 align-items-center">
|
||||
<div class="col-lg-6">
|
||||
<div class="masthead-followup-icon d-inline-block mb-3" style="--bg-rgb: var(--bd-violet-rgb);">
|
||||
{{ partial "icons/bag-heart-fill.svg" (dict "width" "32" "height" "32") }}
|
||||
</div>
|
||||
<h2 class="display-5 mb-3 fw-semibold lh-sm">Support Bootstrap</h2>
|
||||
<p class="lead fw-normal">
|
||||
Our passionated maintainers dedicate their time to ensure that Bootstrap continues to evolve since 2011. Support us by donating to our collective.
|
||||
</p>
|
||||
<p class="d-flex justify-content-start lead fw-normal mb-md-0">
|
||||
<a href="{{ .Site.Params.opencollective }}" class="icon-link icon-link-hover fw-semibold">
|
||||
Support us via Open Collective
|
||||
<svg class="bi"><use xlink:href="#arrow-right"></use></svg>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<img class="img-fluid mt-3 mx-auto" srcset="/docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-sponsoring.png,
|
||||
/docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-sponsoring@2x.png 2x"
|
||||
src="/docs/{{ .Site.Params.docs_version }}/assets/img/bootstrap-sponsoring.png"
|
||||
alt="Bootstrap Sponsoring" width="700" height="500" loading="lazy">
|
||||
</div>
|
||||
</section>
|
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} fill="currentColor" focusable="false" viewBox="0 0 16 16">
|
||||
<path d="M11.5 4v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4h-3.5ZM8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1Zm0 6.993c1.664-1.711 5.825 1.283 0 5.132-5.825-3.85-1.664-6.843 0-5.132Z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 450 B |
Binary file not shown.
After Width: | Height: | Size: 215 KiB |
Binary file not shown.
After Width: | Height: | Size: 215 KiB |
|
@ -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.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.1.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 |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.7 KiB |
Loading…
Reference in New Issue