feat(Flash): Add initial ui

This commit is contained in:
Berkeley Martinez
2018-01-04 09:18:20 -08:00
parent aa1dfb98a5
commit 9e9e39b8b0
7 changed files with 37 additions and 4 deletions

View File

@ -10,6 +10,7 @@ import {
isSignedInSelector
} from './redux';
import Flash from './Flash';
import Nav from './Nav';
import Toasts from './Toasts';
import NotFound from './NotFound';
@ -60,12 +61,9 @@ export class FreeCodeCamp extends React.Component {
route
} = this.props;
const Child = routes[route] || NotFound;
// we render nav after the content
// to allow the panes to update
// redux store, which will update the bin
// buttons in the nav
return (
<div className={ `${ns}-container` }>
<Flash />
<Nav />
<Child />
<Toasts />

View File

@ -0,0 +1,21 @@
import React from 'react';
import { CloseButton } from 'react-bootstrap';
import ns from './ns.json';
const propTypes = {};
export default function Flash() {
return (
<div className={`${ns}-container bg-info`}>
<div className={`${ns}-content`}>
<div>
Content
</div>
<CloseButton />
</div>
</div>
);
}
Flash.displayName = 'Flash';
Flash.propTypes = propTypes;

View File

@ -0,0 +1,10 @@
@ns: flash;
.@{ns}-container {
width: 100%;
}
.@{ns}-content {
.center(@value: @container-md, @padding: @grid-gutter-width);
.row(@justify: around);
}

View File

@ -0,0 +1 @@
export { default } from './Flash.jsx';

1
common/app/Flash/ns.json Normal file
View File

@ -0,0 +1 @@
"flash"

View File

@ -0,0 +1 @@

View File

@ -1,4 +1,5 @@
&{ @import "./app.less"; }
&{ @import "./Map/map.less"; }
&{ @import "./Nav/nav.less"; }
&{ @import "./Flash/flash.less"; }
&{ @import "./routes/index.less"; }