Skip to content

Commit

Permalink
#10 Add sign up form
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 20, 2023
1 parent cac3b68 commit 4f291a5
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions src/pages/auth/SignUpForm.js
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;

0 comments on commit 4f291a5

Please sign in to comment.