From f68f28a291bfbe243a99eb3910d6b1ea1cc5c799 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sun, 22 May 2016 20:25:38 +0300 Subject: [PATCH] #96: contact us popup and footer links --- src/components/auth/appInfo/AppInfo.jsx | 2 + src/components/auth/appInfo/appInfo.scss | 2 + src/components/contact/ContactForm.jsx | 78 ++++++++++++++++++ src/components/contact/contactForm.intl.json | 7 ++ src/components/contact/contactForm.scss | 31 +++++++ src/components/footerMenu/FooterMenu.jsx | 43 ++++++++++ .../footerMenu/footerMenu.intl.json | 4 + src/components/footerMenu/footerMenu.scss | 16 ++++ src/components/footerMenu/index.js | 5 ++ .../profile/changeEmail/ChangeEmail.jsx | 1 + src/components/ui/form/TextArea.jsx | 81 +++++++++++++++++++ src/components/ui/form/form.scss | 11 +++ src/components/ui/form/index.js | 2 + src/components/ui/popup/popup.scss | 6 +- src/i18n/en.json | 7 ++ src/i18n/ru.json | 7 ++ src/pages/index/IndexPage.jsx | 4 +- src/pages/profile/ProfilePage.jsx | 6 ++ src/pages/profile/profile.scss | 8 ++ src/services/api/site.js | 14 ++++ 20 files changed, 332 insertions(+), 3 deletions(-) create mode 100644 src/components/contact/ContactForm.jsx create mode 100644 src/components/contact/contactForm.intl.json create mode 100644 src/components/contact/contactForm.scss create mode 100644 src/components/footerMenu/FooterMenu.jsx create mode 100644 src/components/footerMenu/footerMenu.intl.json create mode 100644 src/components/footerMenu/footerMenu.scss create mode 100644 src/components/footerMenu/index.js create mode 100644 src/components/ui/form/TextArea.jsx create mode 100644 src/services/api/site.js diff --git a/src/components/auth/appInfo/AppInfo.jsx b/src/components/auth/appInfo/AppInfo.jsx index 7f7c92b..9f7217a 100644 --- a/src/components/auth/appInfo/AppInfo.jsx +++ b/src/components/auth/appInfo/AppInfo.jsx @@ -4,6 +4,7 @@ import { FormattedMessage as Message } from 'react-intl'; import { Button } from 'components/ui/form'; import { LangMenu } from 'components/langMenu'; +import { FooterMenu } from 'components/footerMenu'; import styles from './appInfo.scss'; import messages from './AppInfo.intl.json'; @@ -39,6 +40,7 @@ export default class AppInfo extends Component {
+
diff --git a/src/components/auth/appInfo/appInfo.scss b/src/components/auth/appInfo/appInfo.scss index eac2921..e74cab7 100644 --- a/src/components/auth/appInfo/appInfo.scss +++ b/src/components/auth/appInfo/appInfo.scss @@ -56,4 +56,6 @@ bottom: 10px; left: 0; right: 0; + text-align: center; + line-height: 1.5; } diff --git a/src/components/contact/ContactForm.jsx b/src/components/contact/ContactForm.jsx new file mode 100644 index 0000000..a710194 --- /dev/null +++ b/src/components/contact/ContactForm.jsx @@ -0,0 +1,78 @@ +import React, { Component, PropTypes } from 'react'; + +import classNames from 'classnames'; +import { FormattedMessage as Message } from 'react-intl'; + +import { Input, TextArea, Button, Form, FormModel } from 'components/ui/form'; +import site from 'services/api/site'; +import icons from 'components/ui/icons.scss'; + +import styles from './contactForm.scss'; +import messages from './contactForm.intl.json'; + +export default class ContactForm extends Component { + static displayName = 'ContactForm'; + + static propTypes = { + onClose: PropTypes.func.isRequired + }; + + form = new FormModel(); + + render() { + const {onClose} = this.props; + const {form} = this; + + return ( +
+
+

+ +

+ +
+ +
+ + + + +