-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add success & error UIs for VSR form
- Loading branch information
1 parent
ba52b37
commit cc61737
Showing
8 changed files
with
411 additions
and
36 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
39 changes: 39 additions & 0 deletions
39
frontend/src/components/VSRForm/ConfirmVSRSubmissionModal/index.tsx
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,39 @@ | ||
import { Modal } from "@mui/material"; | ||
import styles from "@/components/VSRForm/ConfirmVSRSubmissionModal/styles.module.css"; | ||
import Image from "next/image"; | ||
|
||
interface ConfirmVSRSubmissionModalProps { | ||
isOpen: boolean; | ||
onClose: () => unknown; | ||
} | ||
|
||
export const ConfirmVSRSubmissionModal = ({ isOpen, onClose }: ConfirmVSRSubmissionModalProps) => { | ||
return ( | ||
<Modal open={isOpen} onClose={onClose}> | ||
<div className={styles.root}> | ||
<button onClick={onClose} className={styles.closeButton}> | ||
<Image src="/ic_close_large.svg" alt="close" width={24} height={24} /> | ||
</button> | ||
<h2 className={styles.title}>Submitted successfully!</h2> | ||
<p className={styles.content}> | ||
A copy of your submitted VSR form has been sent to your email. We'll review it | ||
promptly and respond via email as soon as possible. Allow up to 48 business hours to be | ||
contacted for appointment scheduling. | ||
<br></br> | ||
<br></br> | ||
Please check your spam folder if you don't receive a response within 48 business | ||
hours. | ||
<br></br> | ||
<br></br> | ||
If you need to make changes to your VSR form, submit another VSR form and let us know at{" "} | ||
<a | ||
style={{ textDecorationLine: "underline", fontStyle: "italic" }} | ||
href="[email protected]" | ||
> | ||
[email protected]. | ||
</a> | ||
</p> | ||
</div> | ||
</Modal> | ||
); | ||
}; |
71 changes: 71 additions & 0 deletions
71
frontend/src/components/VSRForm/ConfirmVSRSubmissionModal/styles.module.css
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,71 @@ | ||
.root { | ||
position: absolute; | ||
width: 723px; | ||
background-color: white; | ||
border-radius: 12px; | ||
border: none; | ||
display: flex; | ||
flex-direction: column; | ||
overflow-x: hidden; | ||
overflow-y: hidden; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
padding: 64px; | ||
gap: 16px; | ||
border: none !important; | ||
} | ||
|
||
.closeButton { | ||
position: absolute; | ||
top: 28px; | ||
right: 28px; | ||
cursor: pointer; | ||
border: none !important; | ||
background: transparent; | ||
} | ||
|
||
.title { | ||
color: var(--Secondary-1, #102d5f); | ||
font-family: "Lora"; | ||
font-size: 40px; | ||
font-weight: 700; | ||
} | ||
|
||
.content { | ||
color: #000; | ||
font-family: "Open Sans"; | ||
font-size: 20px; | ||
font-weight: 400; | ||
} | ||
|
||
/* tablet version */ | ||
@media screen and (max-width: 850px) { | ||
.root { | ||
width: calc(100% - 96px); | ||
} | ||
|
||
.title { | ||
font-size: 36px; | ||
} | ||
|
||
.content { | ||
font-size: 18px; | ||
} | ||
} | ||
|
||
/* mobile version */ | ||
@media screen and (max-width: 550px) { | ||
.root { | ||
width: calc(100% - 48px); | ||
padding: 64px 24px; | ||
} | ||
|
||
.title { | ||
font-size: 28px; | ||
} | ||
|
||
.content { | ||
font-size: 14px; | ||
} | ||
} |
Oops, something went wrong.