-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cac3b68
commit 4f291a5
Showing
1 changed file
with
78 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
|
||
import styles from "../../styles/SignInUpForm.module.css"; | ||
import btnStyles from "../../styles/Button.module.css"; | ||
import appStyles from "../../App.module.css"; | ||
|
||
import { Form, Button, Image, Col, Row, Container } from "react-bootstrap"; | ||
|
||
const SignUpForm = () => { | ||
return ( | ||
<Row className={styles.Row}> | ||
<Col | ||
md={6} | ||
className={`my-auto d-none d-md-block p-2 ${styles.SignUpCol}`} | ||
> | ||
<Image | ||
className={`${appStyles.FillerImage}`} | ||
src={ | ||
"https://res.cloudinary.com/sandrabergstrom/image/upload/v1687254447/blog_lwavan.png" | ||
} | ||
/> | ||
</Col> | ||
<Col className="my-auto py-2 p-md-2" md={6}> | ||
<Container className={`${appStyles.Content} p-4 `}> | ||
<h1 className={styles.Header}>sign up</h1> | ||
<Form> | ||
<Form.Group className="mb-3" controlId="username"> | ||
<Form.Label className="d-none">Username</Form.Label> | ||
<Form.Control | ||
className={styles.Input} | ||
type="text" | ||
placeholder="Username" | ||
name="username" | ||
/> | ||
</Form.Group> | ||
|
||
<Form.Group className="mb-3" controlId="password1"> | ||
<Form.Label className="d-none">Password</Form.Label> | ||
<Form.Control | ||
className={styles.Input} | ||
type="password" | ||
placeholder="Password" | ||
name="password1" | ||
/> | ||
</Form.Group> | ||
|
||
<Form.Group className="mb-3" controlId="password2"> | ||
<Form.Label className="d-none">Confirm password</Form.Label> | ||
<Form.Control | ||
className={styles.Input} | ||
type="password" | ||
placeholder="Confirm password" | ||
name="password2" | ||
/> | ||
</Form.Group> | ||
|
||
<Button | ||
className={ | ||
`${btnStyles.Button} ${btnStyles.Wide} ${btnStyles.Bright}` | ||
} | ||
type="submit" | ||
> | ||
Sign up! | ||
</Button> | ||
</Form> | ||
</Container> | ||
<Container className={`mt-3 ${appStyles.Content}`}> | ||
<Link className={styles.Link} to="/signin"> | ||
Already have an account? <span>Sign in</span> | ||
</Link> | ||
</Container> | ||
</Col> | ||
</Row> | ||
); | ||
}; | ||
|
||
export default SignUpForm; |