Skip to content

Commit

Permalink
Merge pull request #1733 from jsdelivr/develop
Browse files Browse the repository at this point in the history
prod sync
  • Loading branch information
jimaek authored Sep 22, 2021
2 parents a3dee37 + 397c271 commit 983d532
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# BootstrapCDN

![bootstrap-github-cover](https://user-images.githubusercontent.com/1834071/130998164-b140f92a-d60f-4277-96d1-5c16e59ea3d6.jpg)


[![jsDelivr Download Stats](https://data.jsdelivr.com/v1/package/npm/bootstrap/badge)](https://www.jsdelivr.com/package/npm/bootstrap)
[![Build Status](https://img.shields.io/github/workflow/status/jsdelivr/bootstrapcdn/Tests/develop?logo=github&label=Tests&style=flat-square)](https://github.com/jsdelivr/bootstrapcdn/actions?query=workflow%3ATests+branch%3Adevelop)
[![Coverage Status](https://img.shields.io/coveralls/github/jsdelivr/bootstrapcdn/develop?style=flat-square)](https://coveralls.io/github/jsdelivr/bootstrapcdn)
Expand Down
3 changes: 2 additions & 1 deletion config/helmet-csp.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const CSP = {
'img.shields.io',
'platform.twitter.com',
'syndication.twitter.com',
'https://cdn.jsdelivr.net'
'https://cdn.jsdelivr.net',
'https://github.com/sponsors/jsdelivr/button'
],
childSrc: [
'\'self\'',
Expand Down
8 changes: 8 additions & 0 deletions public/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ a.custom-link {
transition: transform 0.35s ease;
transition: transform 0.35s ease, -webkit-transform 0.35s ease;
}
.jsdelivr-github-btn > span {
display: inline-flex;
}

@media (max-width: 1400px) {
#jumbotron-content {
Expand Down Expand Up @@ -408,4 +411,9 @@ a.custom-link {
.social {
height: 30px;
}

.jsdelivr-sponsor-btn {
position: relative;
top: 1.5px;
}
}
13 changes: 10 additions & 3 deletions views/_partials/jumbotron.pug
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
a.text-decoration-none(href='https://icons.getbootstrap.com/', rel='noopener', target='_blank') Bootstrap Icons

.social.my-5.text-start
ul.list-inline
li.list-inline-item.d-block.d-sm-inline-block.mr-sm-3
ul.d-flex.flex-column.flex-sm-row
li.d-block.d-sm-inline-flex.align-items-center.mr-sm-3.jsdelivr-github-btn
a.github-button(href='https://github.com/jsdelivr/bootstrapcdn',
data-color-scheme='no-preference: dark; light: dark; dark: dark;',
data-icon='octicon-star',
Expand All @@ -31,12 +31,19 @@
data-show-count='true',
aria-label='Star jsdelivr/bootstrapcdn on GitHub')

li.list-inline-item.d-block.d-sm-inline-block.mx-sm-3
li.d-block.d-sm-inline-flex.align-items-center.mx-sm-3
a.twitter-follow-button(href='https://twitter.com/jsdelivr',
data-show-count='false',
data-size='large',
data-text='Follow @jsdelivr')

li.d-block.d-sm-inline-flex.align-items-center.mx-sm-3.jsdelivr-sponsor-btn
iframe(src='https://github.com/sponsors/jsdelivr/button',
title='Sponsor jsdelivr',
height='35',
width='116',
style='border: 0;')

.boxes-images.d-none.d-lg-block
include /assets/img/jumbotron_boxes.svg

Expand Down

0 comments on commit 983d532

Please sign in to comment.