-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contact and registration confirmation
- Loading branch information
1 parent
82f11b2
commit 81815cb
Showing
6 changed files
with
105 additions
and
2 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,47 @@ | ||
import React, { useEffect } from "react"; | ||
import Router from 'next/router'; | ||
import styled from "styled-components"; | ||
|
||
|
||
const Container = styled.div` | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
background-color: white; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
max-width: 400px; | ||
width: 100%; | ||
text-align: center; | ||
`; | ||
|
||
const SuccessMessage = styled.p` | ||
color: red; | ||
font-size: 18px; | ||
`; | ||
|
||
const contactSuccess: React.FC = () => { | ||
|
||
useEffect(() => { | ||
const timeout = setTimeout(() => { | ||
Router.push('/'); | ||
}, 5000); | ||
|
||
return () => clearTimeout(timeout); | ||
}, [Router]); | ||
|
||
return ( | ||
<Container> | ||
<img src="https://res.cloudinary.com/vetswhocode/image/upload/f_auto,q_auto/v1627489505/VWC_Logo_Horizontal_gsxn3h.png" alt="Logo" width="158" height="26"></img> | ||
<br /> | ||
<SuccessMessage> | ||
Thank you for your message! | ||
We have received your message and will get back to you shortly. | ||
</SuccessMessage> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default contactSuccess; |
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
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
46 changes: 46 additions & 0 deletions
46
src/components/registration-success-page/registration-success-page.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,46 @@ | ||
import React, { useEffect } from "react"; | ||
import Router from 'next/router'; | ||
import styled from "styled-components"; | ||
|
||
|
||
const Container = styled.div` | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
background-color: white; | ||
padding: 20px; | ||
border-radius: 8px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
max-width: 400px; | ||
width: 100%; | ||
text-align: center; | ||
`; | ||
|
||
const SuccessMessage = styled.p` | ||
color: red; | ||
font-size: 18px; | ||
`; | ||
|
||
const registrationSuccessPage: React.FC = () => { | ||
|
||
useEffect(() => { | ||
const timeout = setTimeout(() => { | ||
Router.push('/'); | ||
}, 5000); | ||
|
||
return () => clearTimeout(timeout); | ||
}, [Router]); | ||
|
||
return ( | ||
<Container> | ||
<img src="https://res.cloudinary.com/vetswhocode/image/upload/f_auto,q_auto/v1627489505/VWC_Logo_Horizontal_gsxn3h.png" alt="Logo" width="158" height="26"></img> | ||
<br /> | ||
<SuccessMessage> | ||
Thank you for your registration! | ||
</SuccessMessage> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default registrationSuccessPage; |
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,3 @@ | ||
import contactSuccess from "@components/contact-success/contact-success"; | ||
|
||
export default contactSuccess; |
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,3 @@ | ||
import registrationSuccessPage from "@components/registration-success-page/registration-success-page"; | ||
|
||
export default registrationSuccessPage; |