From 89de30a6f8db3d2cb9e13569e5e8a7e6ae21c76d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 13 Sep 2018 13:38:29 +0200 Subject: [PATCH] Dialog for Functionality under Development --- client/src/App.js | 2 + client/src/components/About.js | 52 ++++++++++++--- client/src/components/Contact.js | 98 +++++++++++++---------------- client/src/components/Footer.js | 2 +- client/src/components/Modules.js | 48 ++++++++++++++ client/src/components/NavBar.js | 3 +- client/src/components/Search.js | 49 ++++++++++++--- client/src/components/UserImages.js | 52 ++++++++++++--- 8 files changed, 222 insertions(+), 84 deletions(-) create mode 100644 client/src/components/Modules.js diff --git a/client/src/App.js b/client/src/App.js index 12d9b3651..37711c7ae 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -22,6 +22,7 @@ import User from './components/User' import Browse from './components/Browse' import Search from './components/Search' import About from './components/About' +import Modules from './components/Modules' import Contact from './components/Contact' import Logout from './components/Logout' import Post from './components/Post' @@ -92,6 +93,7 @@ class App extends Component { + diff --git a/client/src/components/About.js b/client/src/components/About.js index 34b02a317..3c85b4d5e 100644 --- a/client/src/components/About.js +++ b/client/src/components/About.js @@ -1,14 +1,48 @@ -import React from 'react' +import React from 'react'; +import Button from '@material-ui/core/Button'; +import Dialog from '@material-ui/core/Dialog'; +import DialogActions from '@material-ui/core/DialogActions'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogContentText from '@material-ui/core/DialogContentText'; +import DialogTitle from '@material-ui/core/DialogTitle'; -const About = () => { - return ( -
+class About extends React.Component { + state = { + open: true, + }; + + handleClickOpen = () => { + this.setState({ open: true }); + }; + + handleClose = () => { + this.setState({ open: false }); + }; + + render() { + return (
-

About

-

This Module was developed by the AATeam. Contributions are welcomed.

+ + {"Section under development."} + + + The functionality of this section has not been developed yet. We expect to have it for October 2018. Thanks for your understanding. + + + + + +
-
- ) + ); + } } -export default About +export default About; diff --git a/client/src/components/Contact.js b/client/src/components/Contact.js index a8640488b..db8b43271 100644 --- a/client/src/components/Contact.js +++ b/client/src/components/Contact.js @@ -1,58 +1,48 @@ -import React from 'react' +import React from 'react'; +import Button from '@material-ui/core/Button'; +import Dialog from '@material-ui/core/Dialog'; +import DialogActions from '@material-ui/core/DialogActions'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogContentText from '@material-ui/core/DialogContentText'; +import DialogTitle from '@material-ui/core/DialogTitle'; -const Contact = () => { - return ( -
-
-
-
-

Get in Touch

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum at lacus congue, suscipit elit nec, tincidunt orci.

-

Mauris dolor augue, vulputate in pharetra ac, facilisis nec libero. Fusce condimentum gravida urna, vitae scelerisque erat ornare nec.

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum at lacus congue, suscipit elit nec, tincidunt orci.

-

Mauris dolor augue, vulputate in pharetra ac, facilisis nec libero. Fusce condimentum gravida urna, vitae scelerisque erat ornare nec.

-
-
-
-
- email - - -
-
- message - - -
-
- date_range - - -
-
-

Services required:

-

- -

-

- -

-
-
- -
-
-
+class Contact extends React.Component { + state = { + open: true, + }; + + handleClickOpen = () => { + this.setState({ open: true }); + }; + + handleClose = () => { + this.setState({ open: false }); + }; + + render() { + return ( +
+ + {"Section under development."} + + + The functionality of this section has not been developed yet. We expect to have it for October 2018. Thanks for your understanding. + + + + + +
-
-
- ) + ); + } } -export default Contact +export default Contact; diff --git a/client/src/components/Footer.js b/client/src/components/Footer.js index 6d47695c7..fb7254f07 100644 --- a/client/src/components/Footer.js +++ b/client/src/components/Footer.js @@ -70,7 +70,7 @@ class Footer extends Component { diff --git a/client/src/components/Modules.js b/client/src/components/Modules.js new file mode 100644 index 000000000..483136459 --- /dev/null +++ b/client/src/components/Modules.js @@ -0,0 +1,48 @@ +import React from 'react'; +import Button from '@material-ui/core/Button'; +import Dialog from '@material-ui/core/Dialog'; +import DialogActions from '@material-ui/core/DialogActions'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogContentText from '@material-ui/core/DialogContentText'; +import DialogTitle from '@material-ui/core/DialogTitle'; + +class Modules extends React.Component { + state = { + open: true, + }; + + handleClickOpen = () => { + this.setState({ open: true }); + }; + + handleClose = () => { + this.setState({ open: false }); + }; + + render() { + return ( +
+ + {"Section under development."} + + + The functionality of this section has not been developed yet. We expect to have it for October 2018. Thanks for your understanding. + + + + + + +
+ ); + } +} + +export default Modules; diff --git a/client/src/components/NavBar.js b/client/src/components/NavBar.js index 9bfc5a147..e53b65521 100644 --- a/client/src/components/NavBar.js +++ b/client/src/components/NavBar.js @@ -22,6 +22,7 @@ import LoggedInUser from './LoggedInUser' // Images import AALogo from '../img/aa-logo-dark-8.png' +const ModulesLink = props => const AboutLink = props => const ContactLink = props => const SearchLink = props => @@ -90,7 +91,7 @@ class NavBar extends Component { - + diff --git a/client/src/components/Search.js b/client/src/components/Search.js index 384377801..9f9c9c734 100644 --- a/client/src/components/Search.js +++ b/client/src/components/Search.js @@ -1,19 +1,48 @@ -import React, { Component } from 'react' +import React from 'react'; +import Button from '@material-ui/core/Button'; +import Dialog from '@material-ui/core/Dialog'; +import DialogActions from '@material-ui/core/DialogActions'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogContentText from '@material-ui/core/DialogContentText'; +import DialogTitle from '@material-ui/core/DialogTitle'; -class Search extends Component { +class Search extends React.Component { state = { - posts: [] - } + open: true, + }; - render(){ + handleClickOpen = () => { + this.setState({ open: true }); + }; + + handleClose = () => { + this.setState({ open: false }); + }; + + render() { return (
-
- -
+ + {"Section under development."} + + + The functionality of this section has not been developed yet. We expect to have it for October 2018. Thanks for your understanding. + + + + + +
- ) + ); } } -export default Search +export default Search; diff --git a/client/src/components/UserImages.js b/client/src/components/UserImages.js index 08ba7c5e3..559d91787 100644 --- a/client/src/components/UserImages.js +++ b/client/src/components/UserImages.js @@ -1,14 +1,48 @@ -import React from 'react' +import React from 'react'; +import Button from '@material-ui/core/Button'; +import Dialog from '@material-ui/core/Dialog'; +import DialogActions from '@material-ui/core/DialogActions'; +import DialogContent from '@material-ui/core/DialogContent'; +import DialogContentText from '@material-ui/core/DialogContentText'; +import DialogTitle from '@material-ui/core/DialogTitle'; -const UserImages = () => { - return ( -
+class UserImages extends React.Component { + state = { + open: true, + }; + + handleClickOpen = () => { + this.setState({ open: true }); + }; + + handleClose = () => { + this.setState({ open: false }); + }; + + render() { + return (
-

Images Manager

-

This functionality has not been developed yet. Please visit this section later.

+ + {"Section under development."} + + + The functionality of this section has not been developed yet. We expect to have it for October 2018. Thanks for your understanding. + + + + + +
-
- ) + ); + } } -export default UserImages +export default UserImages;