Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BLM banner as announcement bar #241

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ module.exports = {
organizationName: 'facebookexperimental', // Usually your GitHub org/user name.
projectName: 'Recoil', // Usually your repo name.
themeConfig: {
algolia: {
announcementBar: {
id: 'black_lives_matter',
content:
'<div class="blm-bar">Black Lives Matter. <a style="color: rgb(97, 218, 251)" target="_blank" href="https://support.eji.org/give/153413/#!/donation/checkout">Support the Equal Justice Innitiative</a></div>',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "initiative"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh man I copy-pasted this I have no idea how that happened 😅 good catch!

backgroundColor: '#242526',
textColor: '#f5f6f7',
},
algolia: {
apiKey: '9c5a009951e793525603922b8ca66628',
indexName: 'recoiljs'
indexName: 'recoiljs',
},
googleAnalytics: {
trackingID: 'UA-44373548-46',
Expand Down
11 changes: 11 additions & 0 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
--ifm-color-primary-lighter: #5a91ea;
--ifm-color-primary-lightest: #80aaef;
--ifm-code-font-size: 95%;
--docusaurus-announcement-bar-height: 60px !important;
}

.docusaurus-highlight-code-line {
Expand All @@ -41,3 +42,13 @@
.hero__button.button.button--secondary.button--outline:not(.button--active):not(:hover) {
color: white;
}

.blm-bar {
height: 60px;
font-size: 20px;
padding: 1rem;
}

.blm-bar > a:link {
text-decoration: none;
}