Skip to content

Commit

Permalink
#10 Style alert messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraBergstrom committed Jun 21, 2023
1 parent 73807ce commit 4896532
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/pages/auth/SignUpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Link, useHistory } 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 alertStyles from '../../styles/AlertMessages.module.css'

import {
Form,
Expand Down Expand Up @@ -74,7 +75,7 @@ const SignUpForm = () => {
/>
</Form.Group>
{errors.username?.map((message, idx) => (
<Alert variant="warning" key={idx}>
<Alert variant="warning" key={idx} className={alertStyles['alert-warning-custom']}>
{message}
</Alert>
))}
Expand All @@ -91,7 +92,7 @@ const SignUpForm = () => {
/>
</Form.Group>
{errors.password1?.map((message, idx) => (
<Alert variant="warning" key={idx}>
<Alert variant="warning" className={alertStyles['alert-warning-custom']} key={idx}>
{message}
</Alert>
))}
Expand All @@ -108,7 +109,7 @@ const SignUpForm = () => {
/>
</Form.Group>
{errors.password2?.map((message, idx) => (
<Alert variant="warning" key={idx}>
<Alert variant="warning" className={alertStyles['alert-warning-custom']} key={idx}>
{message}
</Alert>
))}
Expand Down
6 changes: 6 additions & 0 deletions src/styles/AlertMessages.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.alert-warning-custom {
background-color: var(--clr-accent-pink);
color: var(--clr-primary-light);
border: 1px solid var(--clr-accent-pink);
padding: 8px;
}
4 changes: 2 additions & 2 deletions src/styles/SignInUpForm.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
height: calc(100vh - 81px);
}
.Input {
background: var(--clr-primary-light);
background: var(--clr-primary-pink);
border: 1px solid var(--clr-accent-light);
box-sizing: border-box;
border-radius: 10px;
Expand Down Expand Up @@ -45,4 +45,4 @@
.SignUpCol {
height: 375px;
} */
} */

0 comments on commit 4896532

Please sign in to comment.