Tatiana Inama преди 6 години
родител
ревизия
238e7127df
променени са 2 файла, в които са добавени 24 реда и са изтрити 3 реда
  1. 22 1
      src/App.tsx
  2. 2 2
      src/Router.tsx

+ 22 - 1
src/App.tsx

@@ -1,5 +1,5 @@
 import React, { useState } from 'react';
-import { Container, Fade, Button, Form, FormGroup, Input, Label } from 'reactstrap';
+import { Container, Fade, Button, Form, FormGroup, Input, Label, Jumbotron } from 'reactstrap';
 import { Link } from 'react-router-dom';
 import PersonalInformation, { FormData } from './PersonalInformation';
 import DrawCanvas, { CanvasData } from './DrawCanvas';
@@ -7,6 +7,27 @@ import DrawCanvas, { CanvasData } from './DrawCanvas';
 type SectionComponentProps = {
   changePage: () => void
 }
+
+export const ClosureNotice = () => (
+  <Container style={{
+    height: '100vh',
+    display: 'flex',
+    flexDirection: 'column',
+    justifyContent: 'center'
+  }}>
+    <Jumbotron>
+      <h2>Voices of Merseyside</h2>
+      <p>
+      Thank you for your interest in the Voices of Merseyside project. Unfortunately, the survey phase of
+      this study has now been closed as the target number of responses has now been met.
+      </p>
+      <p>
+      I am incredibly grateful to everyone who has taken an interest in this project.
+      </p>
+    </Jumbotron>
+  </Container>
+);
+
 const Introduction: React.FunctionComponent<SectionComponentProps> = ({ changePage }) => (
   <Fade tag="section" id="vom-intro">
     <h2 className="mb-4">Voices of Merseyside</h2>

+ 2 - 2
src/Router.tsx

@@ -4,7 +4,7 @@ import {
   Switch,
   Route
 } from "react-router-dom";
-import App from './App';
+import App, { ClosureNotice } from './App';
 import Admin from './Admin';
 import ConsentInformation from './Consent';
 import MoreInfo from './MoreInfo';
@@ -16,7 +16,7 @@ export const AppRouting = () => {
       <div>
         <Switch>
           <Route exact path="/">
-            <App></App>
+            <ClosureNotice></ClosureNotice>
           </Route>
           <Route sensitive path="/admin">
             <Admin></Admin>