From a81c0e24c02832238e7e0fca5f15c953d3b38e22 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Tue, 16 Feb 2021 19:19:39 +0530 Subject: [PATCH] Partial commit --- src/components/input/InputWidget.tsx | 4 +++- src/pages/signup/Signup.module.scss | 10 ++++++++++ src/pages/signup/Signup.tsx | 19 ++++++++++++++++--- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/src/components/input/InputWidget.tsx b/src/components/input/InputWidget.tsx index 3914f61..891596e 100644 --- a/src/components/input/InputWidget.tsx +++ b/src/components/input/InputWidget.tsx @@ -6,7 +6,7 @@ import styles from './InputWidget.module.scss'; type Props = { icon?: string, placeholder?: string, - type: 'TEXT' | 'PASSWORD'; + type: 'TEXT' | 'PASSWORD' | 'PHONE'; }; type OwnState = { @@ -30,6 +30,8 @@ class InputWidget extends Component { { this.props.type === 'TEXT' && } { this.props.type === 'PASSWORD' && } + { this.props.type === 'PHONE' && } + { this.props.type === 'PASSWORD' && this.setState({ showPassword: !this.state.showPassword })}> { this.state.showPassword && } diff --git a/src/pages/signup/Signup.module.scss b/src/pages/signup/Signup.module.scss index b1682e1..78527da 100644 --- a/src/pages/signup/Signup.module.scss +++ b/src/pages/signup/Signup.module.scss @@ -66,6 +66,16 @@ position: relative; animation: fadeIn 1s forwards; + .separator { + display: block; + width: 100%; + height: 0px; + overflow: visible; + margin: 40px 0; + border-bottom: 1px dashed var(--ash); + border-width: 2px; + } + .input { margin: 20px 0; } diff --git a/src/pages/signup/Signup.tsx b/src/pages/signup/Signup.tsx index 9e4bbc7..96ffa3a 100644 --- a/src/pages/signup/Signup.tsx +++ b/src/pages/signup/Signup.tsx @@ -1,5 +1,5 @@ import { IonContent, IonPage, IonButton } from '@ionic/react'; -import { personOutline, lockOpenOutline } from 'ionicons/icons'; +import { personOutline, lockOpenOutline, mailOutline, phonePortraitOutline } from 'ionicons/icons'; import { Component } from 'react'; import InputWidget from '../../components/input/InputWidget'; import styles from './Signup.module.scss'; @@ -31,15 +31,28 @@ class SignupPage extends Component {
- +
+
+ +
+
+ +
+ +
+
+
+ +
+
Login -
+
Already have an account? Login