@@ -2,6 +2,7 @@ import { Redirect, Route } from 'react-router-dom'; | |||||
import { IonApp, IonRouterOutlet } from '@ionic/react'; | import { IonApp, IonRouterOutlet } from '@ionic/react'; | ||||
import { IonReactRouter } from '@ionic/react-router'; | import { IonReactRouter } from '@ionic/react-router'; | ||||
import WelcomePage from './pages/onboarding/Welcome'; | import WelcomePage from './pages/onboarding/Welcome'; | ||||
import LoginPage from './pages/login/Login'; | |||||
/* Core CSS required for Ionic components to work properly */ | /* Core CSS required for Ionic components to work properly */ | ||||
import '@ionic/react/css/core.css'; | import '@ionic/react/css/core.css'; | ||||
@@ -30,6 +31,9 @@ const App: React.FC = () => ( | |||||
<Route exact path="/welcome"> | <Route exact path="/welcome"> | ||||
<WelcomePage /> | <WelcomePage /> | ||||
</Route> | </Route> | ||||
<Route exact path="/login"> | |||||
<LoginPage /> | |||||
</Route> | |||||
<Route exact path="/"> | <Route exact path="/"> | ||||
<Redirect to="/welcome" /> | <Redirect to="/welcome" /> | ||||
</Route> | </Route> | ||||
@@ -0,0 +1,26 @@ | |||||
import { IonContent, IonPage, IonButton } from '@ionic/react'; | |||||
import { Component } from 'react'; | |||||
import styles from './Login.module.scss'; | |||||
type Props = { }; | |||||
type OwnState = { }; | |||||
class LoginPage extends Component<Props, OwnState> { | |||||
constructor( | |||||
props: Props | |||||
) { | |||||
super(props); | |||||
this.state = {}; | |||||
} | |||||
render() { | |||||
return <IonPage> | |||||
<IonContent fullscreen> | |||||
Login Page | |||||
</IonContent> | |||||
</IonPage> | |||||
}; | |||||
}; | |||||
export default LoginPage; |
@@ -15,7 +15,7 @@ class WelcomePage extends Component<Props, OwnState> { | |||||
} | } | ||||
render() { | render() { | ||||
return <IonPage> | |||||
return <IonPage> | |||||
<IonContent fullscreen> | <IonContent fullscreen> | ||||
<section className={styles.upfold}> | <section className={styles.upfold}> | ||||
@@ -34,7 +34,7 @@ class WelcomePage extends Component<Props, OwnState> { | |||||
<div className={styles.actionButtonsHolder}> | <div className={styles.actionButtonsHolder}> | ||||
<IonButton className={styles.actionButton} expand="block"> Create Account </IonButton> | <IonButton className={styles.actionButton} expand="block"> Create Account </IonButton> | ||||
<IonButton className={styles.actionButton} fill="outline" expand="block"> Login </IonButton> | |||||
<IonButton className={styles.actionButton} fill="outline" expand="block" routerLink="/login"> Login </IonButton> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</section> | </section> | ||||