diff options
Diffstat (limited to 'web-ui/src/account_recovery')
| -rw-r--r-- | web-ui/src/account_recovery/account_recovery.html | 12 | ||||
| -rw-r--r-- | web-ui/src/account_recovery/account_recovery.js | 35 | ||||
| -rw-r--r-- | web-ui/src/account_recovery/page.js | 48 | ||||
| -rw-r--r-- | web-ui/src/account_recovery/page.scss | 115 | 
4 files changed, 0 insertions, 210 deletions
diff --git a/web-ui/src/account_recovery/account_recovery.html b/web-ui/src/account_recovery/account_recovery.html deleted file mode 100644 index bd451ebc..00000000 --- a/web-ui/src/account_recovery/account_recovery.html +++ /dev/null @@ -1,12 +0,0 @@ -<!DOCTYPE html> -<html> -  <head> -    <meta charset="utf-8"/> -    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/> -    <title>Pixelated Account Recovery</title> -  </head> -  <body> -    <div id="root"/> -    <script type="text/javascript" src="/assets/account_recovery.js"></script> -  </body> -</html> diff --git a/web-ui/src/account_recovery/account_recovery.js b/web-ui/src/account_recovery/account_recovery.js deleted file mode 100644 index d4e0f4e8..00000000 --- a/web-ui/src/account_recovery/account_recovery.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2017 ThoughtWorks, Inc. - * - * Pixelated is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Pixelated is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with Pixelated. If not, see <http://www.gnu.org/licenses/>. - */ - -import React from 'react'; -import { render } from 'react-dom'; -import a11y from 'react-a11y'; -import { I18nextProvider } from 'react-i18next'; - -import 'font-awesome/scss/font-awesome.scss'; - -import PageWrapper from './page'; -import i18n from '../i18n'; - -if (process.env.NODE_ENV === 'development') a11y(React); - -render( -  <I18nextProvider i18n={i18n}> -    <PageWrapper /> -  </I18nextProvider>, -  document.getElementById('root') -); diff --git a/web-ui/src/account_recovery/page.js b/web-ui/src/account_recovery/page.js deleted file mode 100644 index ac01529d..00000000 --- a/web-ui/src/account_recovery/page.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2017 ThoughtWorks, Inc. - * - * Pixelated is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Pixelated is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with Pixelated. If not, see <http://www.gnu.org/licenses/>. - */ - -import React from 'react'; -import { translate } from 'react-i18next'; -import SubmitButton from 'src/common/submit_button/submit_button'; -import InputField from 'src/common/input_field/input_field'; - -import './page.scss'; - -export const Page = ({ t }) => ( -  <div className='container'> -    <img src='assets/images/forgot-my-password.svg' alt={t('backup-account.image-description')} /> -    <form> -      <h1>{t('backup-account.title')}</h1> -      <p>{t('backup-account.paragraph1')}</p> -      <p>{t('backup-account.paragraph2')}</p> -      <InputField name='email' label={t('backup-account.input-label')} /> -      <SubmitButton buttonText={t('backup-account.button')} /> -      <div> -        <a href='/'> -          <i className='fa fa-angle-left' aria-hidden='true' /> -          <span>{t('back-to-inbox')}</span> -        </a> -      </div> -    </form> -  </div> -); - -Page.propTypes = { -  t: React.PropTypes.func.isRequired -}; - -export default translate('', { wait: true })(Page); diff --git a/web-ui/src/account_recovery/page.scss b/web-ui/src/account_recovery/page.scss deleted file mode 100644 index 619d1105..00000000 --- a/web-ui/src/account_recovery/page.scss +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2017 ThoughtWorks, Inc. - * - * Pixelated is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Pixelated is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with Pixelated. If not, see <http://www.gnu.org/licenses/>. - */ - -@import "~scss/vendor/reset"; -@import "~scss/base/colors"; -@import "~scss/base/fonts"; - -html { -  min-height: 100%; -} - -body { -  font-family: "Open Sans", "Microsoft YaHei", "Hiragino Sans GB", "Hiragino Sans GB W3", "微软雅黑", "Helvetica Neue", Arial, sans-serif; -  background: $dark_blue; /* For browsers that do not support gradients */ -  background: -webkit-linear-gradient(left top, $dark_blue, $middle_blue); /* For Safari 5.1 to 6.0 */ -  background: -o-linear-gradient(bottom right, $dark_blue, $middle_blue); /* For Opera 11.1 to 12.0 */ -  background: -moz-linear-gradient(bottom right, $dark_blue, $middle_blue); /* For Firefox 3.6 to 15 */ -  background: linear-gradient(to bottom right, $dark_blue, $middle_blue); /* Standard syntax */ -  color: $dark_grey_text; -  min-height: 100%; -} - -h1 { -  font-size: 1.3em; -  font-weight: 600; -} - -p { -  -webkit-margin-before: 0.5em; -  -webkit-margin-after: 0.5em; -  margin-before: 0.5em; -  margin-after: 0.5em; -} - -a { -  text-decoration: none; -  color: $dark_blue; -  font-style: italic; - -  .fa { -    font-size: 1.6em; -    position: relative; -    top: 3px; -    margin-right: 0.3em; -  } - -} - -.container { -  background: $white; -  width: 84%; -  margin: 3% auto; -  padding: 6% 5%; -  display: flex; -  align-items: flex-start; -  flex-direction: column; -} - -img { -  width: 50%; -  align-self: center; -} - -@media only screen and (min-width : 500px) { -  body { -    font-size: 1.3em; -  } - -  form { -    display: flex; -    flex-direction: column; - -    div { -      width: 70%; -      align-self: center; -    } -  } -} - -@media only screen and (min-width : 960px) { -  .container{ -    width: 60%; -    padding: 3%; -    align-items: flex-start; -    flex-direction: row; -    max-width: 700px; -  } - -  form { -    margin-left: 2.5em; - -    div { -      width: 300px; -      align-self: flex-start; -    } -  } - -  img { -    width: 300px; -  } -}  | 
