aboutsummaryrefslogtreecommitdiffstats
path: root/components/Form.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-08-16 21:22:32 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-08-16 21:24:42 +0200
commiteb28244fc8f98e28728c7b3f951e102b9cc56590 (patch)
tree76237e414671730371f87c8e263a18c2d2e8c17f /components/Form.js
parentb43d34c0136552cd2d83258fb5523bb873177908 (diff)
downloadmy_apps-eb28244fc8f98e28728c7b3f951e102b9cc56590.tar.gz
my_apps-eb28244fc8f98e28728c7b3f951e102b9cc56590.tar.bz2
my_apps-eb28244fc8f98e28728c7b3f951e102b9cc56590.zip
styles moved to scss
Diffstat (limited to 'components/Form.js')
-rw-r--r--components/Form.js26
1 files changed, 2 insertions, 24 deletions
diff --git a/components/Form.js b/components/Form.js
index fc14a75..f41c958 100644
--- a/components/Form.js
+++ b/components/Form.js
@@ -1,8 +1,9 @@
+import styles from 'styles/Main.module.scss'
import React from 'react'
import PropTypes from 'prop-types'
const Form = ({errorMessage, onSubmit, isLogin}) => (
- <form className='window window--popup' onSubmit={onSubmit}>
+ <form className={`window window--popup ${styles.userForm}`} onSubmit={onSubmit}>
<div className="window__content--popup">
{isLogin ? 'Login to access your notes' : 'Register new user'}
</div>
@@ -12,29 +13,6 @@ const Form = ({errorMessage, onSubmit, isLogin}) => (
<input className='window__button' type="submit" value={isLogin ? 'Login' : 'Register'} />
{errorMessage && <p className="error">{errorMessage}</p>}
-
- <style jsx>{`
- form,
- label {
- display: flex;
- flex-flow: column;
- }
- label > span {
- font-weight: 600;
- }
- input[type=email],
- input[type=password] {
- padding: .5em;
- margin: .5em 0;
- border: 1px solid #ccc;
- border-radius: .25px;
- }
- .error {
- text-align: center;
- color: brown;
- margin: 1rem 0 0;
- }
- `}</style>
</form>
)