Skip to content

Commit 16d0aa8

Browse files
dmitryvinnfacebook-github-bot
authored andcommitted
docs: add social banner in support of Ukraine (#1101)
Summary: Our mission at [Meta Open Source](https://opensource.facebook.com/) is to empower communities through open source, and we believe that it means building a welcoming and safe environment for all. As a part of this work, we are adding this banner in support for Ukraine during this crisis. ![image](https://user-images.githubusercontent.com/12485205/156670302-756fac7c-51ba-4e24-b463-f79730dbaba6.png) Pull Request resolved: #1101 Reviewed By: bottler Differential Revision: D34628257 Pulled By: dmitryvinn-fb fbshipit-source-id: 5863afb59a2b9431e8e2ebc5856254ab0cdfcfe8
1 parent 69b27d1 commit 16d0aa8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

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="socialBanner">
80+
<div>
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;
@@ -212,6 +226,7 @@ loss_chamfer, _ = chamfer_distance(sample_sphere, sample_test)
212226

213227
return (
214228
<div>
229+
<SocialBanner />
215230
<HomeSplash siteConfig={siteConfig} language={language} />
216231
<div className="landingPage mainContainer">
217232
<Features />

website/static/css/custom.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,17 @@ p a:hover {
344344

345345
@media only screen and (min-width: 1500px) {
346346
}
347+
348+
/* Social Banner */
349+
.socialBanner {
350+
font-weight: bold;
351+
font-size: 20px;
352+
padding: 20px;
353+
max-width: 768px;
354+
margin: 0 auto;
355+
text-align: center;
356+
}
357+
358+
.socialBanner a {
359+
text-decoration: underline;
360+
}

0 commit comments

Comments
 (0)