Skip to content

Commit

Permalink
in solidarity (#1918)
Browse files Browse the repository at this point in the history
https://twitter.com/kwuchu/status/1267436741692133376
https://github.com/reactjs/reactjs.org
https://react-bootstrap.github.io/

Adds a banner for the Black Lives Matter movement, to spread
awareness for the cause.
  • Loading branch information
bpas247 committed Jul 6, 2020
1 parent f3c2586 commit cefd92b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions docs/lib/UI/Banner.js
@@ -0,0 +1,19 @@
import React from "react";

export default function Banner() {
return (
<div className="bg-dark fixed-top" style={{ width: "100%", minHeight: "4em" }}>
<div className="mx-auto d-flex flex-column flex-md-row justify-content-center" style={{ width: "65vw" }}>
<span className="text-light mr-3 h4">Black Lives Matter.</span>
<a
className="h4 banner-link"
target="_blank"
rel="noreferrer"
href="https://support.eji.org/give/153413/#!/donation/checkout"
>
Support the Equal Justice Initiative.
</a>
</div>
</div>
)
}
2 changes: 2 additions & 0 deletions docs/lib/UI/Layout.js
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import Helmet from 'react-helmet';
import Footer from './Footer';
import Nav from './Nav';
import Banner from './Banner';

export default (props) => {
return (
Expand All @@ -15,6 +16,7 @@ export default (props) => {
{ 'property': 'og:type', 'content': 'article' }
]}
/>
<Banner />
<Nav />
{props.children}
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion docs/lib/UI/Nav.js
Expand Up @@ -20,7 +20,7 @@ export default class UINav extends React.Component {
}
render() {
return (
<Navbar className="header" color="faded" light expand="md">
<Navbar className="header" color="faded" light expand="md" style={{ marginTop: "100px" }}>
<Container>
<NavbarBrand className="mr-auto" tag={Link} to="/">reactstrap</NavbarBrand>
<NavbarToggler onClick={this.toggleNavbar} />
Expand Down

0 comments on commit cefd92b

Please sign in to comment.