diff --git a/package-lock.json b/package-lock.json index 2b9494837..c8111594c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@devinit/dh-app", - "version": "3.5.1", + "version": "3.5.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index eac79975f..9c541cbb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devinit/dh-app", - "version": "3.5.1", + "version": "3.5.2", "config": { "API": "http://212.111.41.68:3000/graphql", "API_DEV": "http://212.111.41.68:9090/graphql", diff --git a/src/components/molecules/Banner/Banner.tsx b/src/components/molecules/Banner/Banner.tsx new file mode 100644 index 000000000..7218fa477 --- /dev/null +++ b/src/components/molecules/Banner/Banner.tsx @@ -0,0 +1,69 @@ +import * as React from 'react'; +import { css } from 'glamor'; +import { Container, Grid, Message } from 'semantic-ui-react'; +import * as localforage from 'localforage'; + +const messageStyles = css({ + textAlign: 'center', + marginBottom: '0 !important', + backgroundColor: '#fee7c1 !important', + color: '#794b02 !important' +}); +const textStyle = css({ + fontWeight: 'bold', + paddingRight: '3rem !important' +}); +const closeButtonStyles = css({ + position: 'absolute', + top: '38px', + right: '16px', + cursor: 'pointer' +}); + +class Banner extends React.Component { + state = { showBanner: false }; + + render() { + if (this.state.showBanner) { + return ( + + + + + +