Nareshkumar Rao
3 years ago
6 changed files with 182 additions and 146 deletions
@ -1,9 +1,9 @@ |
|||||
#QRFlex{ |
|
||||
width: 30%; |
|
||||
|
#QRFlex { |
||||
|
width: 30%; |
||||
} |
} |
||||
|
|
||||
@media only screen and (max-width: 600px) { |
@media only screen and (max-width: 600px) { |
||||
#QRFlex { |
|
||||
width: 90% ; |
|
||||
} |
|
||||
|
#QRFlex { |
||||
|
width: 90%; |
||||
|
} |
||||
} |
} |
@ -1,23 +1,32 @@ |
|||||
import { Button, Flex, Heading, Text } from "@chakra-ui/react"; |
|
||||
import { useHistory } from "react-router-dom"; |
|
||||
|
import { Button, Flex, Heading, Text } from '@chakra-ui/react'; |
||||
|
import { useHistory } from 'react-router-dom'; |
||||
|
|
||||
function Success(){ |
|
||||
const history = useHistory(); |
|
||||
|
function Success() { |
||||
|
const history = useHistory(); |
||||
|
|
||||
return ( |
|
||||
<Flex |
|
||||
height="100vh" |
|
||||
background="teal.100" |
|
||||
alignItems="center" |
|
||||
justifyContent="center" |
|
||||
|
return ( |
||||
|
<Flex |
||||
|
height="100vh" |
||||
|
background="teal.100" |
||||
|
alignItems="center" |
||||
|
justifyContent="center" |
||||
|
> |
||||
|
<Flex direction="column" background="white" p={12} rounded={6}> |
||||
|
<Heading>Success!</Heading> |
||||
|
<Text fontSize="lg"> |
||||
|
We have succesfully saved your contact! Stay safe out there, and let |
||||
|
others scan your QR code too! |
||||
|
</Text> |
||||
|
<Button |
||||
|
onClick={() => { |
||||
|
history.push('/home'); |
||||
|
}} |
||||
> |
> |
||||
<Flex direction="column" background="white" p={12} rounded={6}> |
|
||||
<Heading>Success!</Heading> |
|
||||
<Text fontSize="lg">We have succesfully saved your contact! Stay safe out there, and let others scan your QR code too!</Text> |
|
||||
<Button onClick={()=>{history.push("/home")}}>Return home</Button> |
|
||||
</Flex> |
|
||||
</Flex> |
|
||||
); |
|
||||
|
Return home |
||||
|
</Button> |
||||
|
</Flex> |
||||
|
</Flex> |
||||
|
); |
||||
} |
} |
||||
|
|
||||
export default Success; |
export default Success; |
Loading…
Reference in new issue