Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit b334b60

Browse files
Merge pull request #197 from dmitryvinn/social-banner
docs: add social banner in support of Ukraine
2 parents 27ffd64 + 36bd09b commit b334b60

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

docs/website/website/pages/en/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ class HomeSplash extends React.Component {
7474
}
7575
}
7676

77+
function SocialBanner() {
78+
return (
79+
<div className="SocialBannerWrapper">
80+
<div className="SocialBanner">
81+
Support Ukraine 🇺🇦{' '}
82+
<a href="https://opensource.fb.com/support-ukraine">
83+
Help Provide Humanitarian Aid to Ukraine
84+
</a>
85+
.
86+
</div>
87+
</div>
88+
);
89+
}
90+
7791
class Index extends React.Component {
7892
render() {
7993
const {config: siteConfig, language = ''} = this.props;
@@ -227,6 +241,7 @@ class Index extends React.Component {
227241

228242
return (
229243
<div>
244+
<SocialBanner />
230245
<HomeSplash siteConfig={siteConfig} language={language} />
231246
<div className="mainContainer">
232247
<FeatureCallout />

docs/website/website/static/css/custom.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,26 @@
9090

9191
a {
9292
color: #3eb0f7;
93-
}
93+
}
94+
95+
/* Social Banner */
96+
97+
.SocialBannerWrapper {
98+
padding: 0 0;
99+
background-color: black;
100+
}
101+
102+
.SocialBanner {
103+
font-weight: bold;
104+
font-size: 20px;
105+
padding: 20px;
106+
max-width: 768px;
107+
margin: 0 auto;
108+
color: white;
109+
text-align: center;
110+
}
111+
112+
.SocialBanner a {
113+
text-decoration: underline;
114+
color: white;
115+
}

0 commit comments

Comments
 (0)