-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from WrippleFoss/feature/form-setup-login-screen
Feature/form setup login screen
- Loading branch information
Showing
25 changed files
with
2,043 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import React from 'react' | ||
import LandingView from './views/LandingView' | ||
import { Router } from '@reach/router' | ||
import LoginView from './views/LoginView' | ||
|
||
import SignUpView from './views/SignUpView' | ||
export default () => { | ||
return ( | ||
<Router> | ||
<LandingView path='/' /> | ||
<LoginView path='/login' /> | ||
<SignUpView path='/sign-up' /> | ||
</Router> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@import './mixins'; | ||
|
||
.loginDiv { | ||
display: flex; | ||
justify-content: center; | ||
align-content: center; | ||
flex-direction: column; | ||
align-self: center; | ||
flex-shrink: 1; | ||
padding: 5rem 0rem; | ||
width: 80%; | ||
max-width: 36rem; | ||
|
||
>a { | ||
cursor: pointer; | ||
align-self: center; | ||
margin-top: 1rem; | ||
} | ||
|
||
>h1 { | ||
align-self: center; | ||
font-weight: 400; | ||
} | ||
|
||
@include for-desktop { | ||
box-shadow: 0px 0px 30px -2px rgba(150, 144, 150, 0.85); | ||
padding: 5rem 3rem; | ||
width: 50%; | ||
|
||
} | ||
|
||
&Wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
justify-content: center; | ||
} | ||
|
||
.loginForm { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 2rem 0 0 0; | ||
|
||
>button { | ||
width: 100%; | ||
margin: 2rem 0 0 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@import './mixins'; | ||
|
||
.signUpDiv { | ||
display: flex; | ||
justify-content: center; | ||
align-content: center; | ||
flex-direction: column; | ||
align-self: center; | ||
flex-shrink: 1; | ||
padding: 5rem 0rem; | ||
width: 80%; | ||
max-width: 36rem; | ||
|
||
>h1 { | ||
align-self: center; | ||
font-weight: 400; | ||
} | ||
|
||
@include for-desktop { | ||
box-shadow: 0px 0px 30px -2px rgba(150, 144, 150, 0.85); | ||
padding: 5rem 3rem; | ||
width: 50%; | ||
|
||
} | ||
|
||
&Wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
justify-content: center; | ||
} | ||
|
||
.signUpForm { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 2rem 0 0 0; | ||
|
||
>button { | ||
width: 100%; | ||
margin: 2rem 0 0 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,34 @@ | ||
@import '../mixins'; | ||
|
||
.AppLayout { | ||
display: flex; | ||
.navbar { | ||
padding: 1rem; | ||
box-shadow: 0px 2px 5px rgba(68, 68, 68, 0.6); | ||
} | ||
|
||
display: flex; | ||
flex-direction: column; | ||
|
||
.childContent { | ||
position: relative; | ||
flex: 1; | ||
padding: 0 1rem; | ||
margin-bottom: 2rem; | ||
|
||
@include for-desktop { | ||
padding: 0 1.625rem; | ||
} | ||
|
||
|
||
&Wrapper { | ||
display: flex; | ||
flex-flow: column; | ||
min-height: 90vh; | ||
|
||
@include for-desktop { | ||
flex-flow: row; | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@import '../variables'; | ||
|
||
.error { | ||
transition: all ease 0.3s; | ||
color: var(--red); | ||
margin: 0 0.5rem; | ||
|
||
&.hasError { | ||
margin: 0.5rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
.navbar { | ||
display: flex; | ||
|
||
.navRight { | ||
font-weight: 600; | ||
display: flex; | ||
flex-grow: 1; | ||
justify-content: flex-end; | ||
margin-top: 0.5rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import classNames from "classnames"; | ||
import styles from "../assets/styles/components/FormikError.module.scss"; | ||
|
||
const FormikError = ({ name, error, touched }) => { | ||
const hasError = error[name] && touched[name]; | ||
return ( | ||
<div className={classNames(styles.error, hasError && styles.hasError)}> | ||
{hasError ? errors[name] : ""} | ||
</div> | ||
); | ||
}; | ||
|
||
FormikError.propTypes = { | ||
name: PropTypes.string, | ||
error: PropTypes.object, | ||
touched: PropTypes.object, | ||
}; | ||
|
||
FormikError.defaultProps = { | ||
name: "", | ||
error: {}, | ||
touched: {}, | ||
}; | ||
|
||
export default FormikError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React, { useState } from "react"; | ||
import PropTypes from "prop-types"; | ||
import classNames from "classnames"; | ||
import { Field } from "formik"; | ||
import FormikError from "../components/FormikError"; | ||
|
||
const TextInput = { | ||
errors, | ||
touched | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.