Skip to content

Commit

Permalink
docs: add homepage banner in support of Ukraine (#12113)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryvinn authored Mar 2, 2022
1 parent 428ddb6 commit fd8c5f7
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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;
}
}

3 comments on commit fd8c5f7

@eranshapira
Copy link

Choose a reason for hiding this comment

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

are you serious? as much as i love ukraine, this is a code related project, not a news related site, or a political party site. this is outrageous.

@blling
Copy link

@blling blling commented on fd8c5f7 Mar 4, 2022

Choose a reason for hiding this comment

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

i love ukraine, but this is a open source project, why do this?

@vatosarmat
Copy link

Choose a reason for hiding this comment

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

@blling @eranshapira Of course open source software should be out of politics. But this case is extraordinary. Those who fighting a mad dictator threatening the world with nuclear weapon are worth to mention and support

Please sign in to comment.