Skip to content

Commit

Permalink
docs: Moving to use Announcement Banner for the Support Ukraine Initi…
Browse files Browse the repository at this point in the history
…ative (#2988)
  • Loading branch information
dmitryvinn authored Mar 3, 2022
1 parent aed56f9 commit af1484b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
8 changes: 8 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ const lastVersion = versions[0];
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
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,
},
prism: {
defaultLanguage: 'jsx',
theme: require('./core/PrismTheme'),
Expand Down
10 changes: 0 additions & 10 deletions website/src/css/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,6 @@
}
}

/* Social Banner */
.SocialBanner {
font-weight: bold;
font-size: 20px;
padding: 20px;
max-width: 768px;
margin: 0 auto;
text-align: center;
}

/* Header Hero */

.HeaderHero {
Expand Down
15 changes: 0 additions & 15 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,20 +543,6 @@ function GetStarted() {
);
}

function SocialBanner() {
return (
<div className="SocialBanner">
<div>
Support Ukraine 🇺🇦{' '}
<a href="https://opensource.facebook.com/support-ukraine">
Help Provide Humanitarian Aid to Ukraine
</a>
.
</div>
</div>
);
}

const useHomePageAnimations = () => {
useEffect(() => setupHeaderAnimations(), []);
useEffect(() => setupDissectionAnimation(), []);
Expand All @@ -579,7 +565,6 @@ const Index = () => {
content="React Native · Learn once, write anywhere"
/>
</Head>
<SocialBanner />
<HeaderHero />
<NativeApps />
<NativeCode />
Expand Down

1 comment on commit af1484b

@pke
Copy link

@pke pke commented on af1484b Mar 3, 2022

Choose a reason for hiding this comment

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

I am missing the commit with the support banner for the people in east Ukraine from 2014-2022. Also not able to find the commit for the banner for Syria, Yemen, Afghanistan and some other countries that happened to have been victims of war.

Please sign in to comment.