Skip to content

Commit

Permalink
docs: add homepage banner in support of Ukraine (facebook#12113)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryvinn authored and abhiisheek committed May 24, 2023
1 parent 248f56d commit 8146209
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docusaurus/website/docusaurus.config.js
Expand Up @@ -33,7 +33,17 @@ const siteConfig = {
],
themeConfig: {
image: 'img/logo-og.png',
announcementBar: {
id: 'support_ukraine',
content:
'Support Ukraine 🇺🇦 <a target="_blank" rel="noopener noreferrer" \
href="https://opensource.facebook.com/support-ukraine"> Help Provide Humanitarian Aid to Ukraine</a>.',
backgroundColor: '#20232a',
textColor: '#fff',
isCloseable: false,
},
algolia: {
appId: 'create-react-app',
apiKey: '3be60f4f8ffc24c75da84857d6323791',
indexName: 'create-react-app',
},
Expand Down
42 changes: 42 additions & 0 deletions docusaurus/website/src/css/custom.css
Expand Up @@ -31,3 +31,45 @@
flex-shrink: 0;
max-width: 100%;
}


/* Announcement banner */

:root {
--docusaurus-announcement-bar-height: auto !important;
}

div[class^="announcementBar"][role="banner"] {
border-bottom-color: var(--deepdark);
}

div[class^="announcementBarContent"] {
line-height: 40px;
font-size: 20px;
font-weight: bold;
padding: 8px 30px;
}

div[class^="announcementBarContent"] a {
text-decoration: underline;
display: inline-block;
color: var(--ifm-color-primary) !important;
}

div[class^="announcementBarContent"] a:hover {
color: var(--brand) !important;
}

@media only screen and (max-width: 768px) {
.announcement {
font-size: 18px;
}
}

@media only screen and (max-width: 500px) {
.announcement {
font-size: 15px;
line-height: 22px;
padding: 6px 30px;
}
}

0 comments on commit 8146209

Please sign in to comment.