From 00774dea25eb5a456d8f23ca8fb395e696743742 Mon Sep 17 00:00:00 2001 From: "Edwin P. Magezi" Date: Mon, 10 Jun 2019 15:10:36 +0300 Subject: [PATCH 1/7] [New] hard coded banner --- src/components/molecules/Banner/Banner.tsx | 21 +++++++++++++++++++++ src/components/molecules/Banner/index.ts | 1 + src/components/templates/Generic/index.tsx | 14 ++++++++------ 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 src/components/molecules/Banner/Banner.tsx create mode 100644 src/components/molecules/Banner/index.ts diff --git a/src/components/molecules/Banner/Banner.tsx b/src/components/molecules/Banner/Banner.tsx new file mode 100644 index 000000000..a28f38217 --- /dev/null +++ b/src/components/molecules/Banner/Banner.tsx @@ -0,0 +1,21 @@ +import * as React from 'react'; +import { css } from 'glamor'; +import { Message } from 'semantic-ui-react'; + +const messageStyles = css({ + textAlign: 'center', + marginBottom: '0 !important', + borderRadius: '0 !important' +}); + +const Banner = () => { + return ( + + The Development Data Hub is not currently displaying the most up-to-date data, + as it is soon to undergo redevelopment. + If you have any data-related questions please email info@devinit.org + + ); +}; + +export default Banner; diff --git a/src/components/molecules/Banner/index.ts b/src/components/molecules/Banner/index.ts new file mode 100644 index 000000000..bc95f09d6 --- /dev/null +++ b/src/components/molecules/Banner/index.ts @@ -0,0 +1 @@ +export * from './Banner'; diff --git a/src/components/templates/Generic/index.tsx b/src/components/templates/Generic/index.tsx index a9df40a89..6c055188e 100644 --- a/src/components/templates/Generic/index.tsx +++ b/src/components/templates/Generic/index.tsx @@ -1,8 +1,9 @@ +import Link from 'next/link'; import * as React from 'react'; import { Container } from 'semantic-ui-react'; +import Banner from '../../molecules/Banner/Banner'; import Footer from '../../molecules/Footer'; import Menu from '../../molecules/Menu'; -import Link from 'next/link'; import { menuData } from './data'; interface Props { @@ -11,11 +12,12 @@ interface Props { const Generic: React.SFC = ({ children }) => - -
- { children } -
-