Nareshkumar Rao
3 years ago
6 changed files with 182 additions and 146 deletions
@ -1,26 +1,31 @@ |
|||||
# SSR Contact Tracing App |
# SSR Contact Tracing App |
||||
|
|
||||
This app was created to serve the need for easy to use contact tracing. |
|
||||
|
This app was created to serve the need for easy to use contact tracing. |
||||
|
|
||||
## Usage |
## Usage |
||||
|
|
||||
The app should work as such: |
The app should work as such: |
||||
|
|
||||
1. Group/Organization leaders will be created an account on the app. |
1. Group/Organization leaders will be created an account on the app. |
||||
2. Upon logging in, they will see a QR code that they can display |
2. Upon logging in, they will see a QR code that they can display |
||||
3. Their members can scan this QR code, in order to create their own accounts. This way, there each member has a "parent" member, and all memberships can be traced. |
3. Their members can scan this QR code, in order to create their own accounts. This way, there each member has a "parent" member, and all memberships can be traced. |
||||
4. Upon creating their account, new members will also have a QR Code they can display. |
4. Upon creating their account, new members will also have a QR Code they can display. |
||||
5. Other members can scan each other QR codes in order to register a *Contact* in the backend. |
|
||||
6. All *Contacts* between members can be retrievable from the backend at a later time. |
|
||||
|
5. Other members can scan each other QR codes in order to register a _Contact_ in the backend. |
||||
|
6. All _Contacts_ between members can be retrievable from the backend at a later time. |
||||
|
|
||||
## Development |
## Development |
||||
|
|
||||
### Prerequisites |
### Prerequisites |
||||
|
|
||||
- NodeJS |
- NodeJS |
||||
- Yarn |
- Yarn |
||||
|
|
||||
|
|
||||
### Building |
### Building |
||||
|
|
||||
- Use `yarn install` to install the necessary packages |
- Use `yarn install` to install the necessary packages |
||||
- Use `yarn start` to start app in development mode in [http://localhost:3000](http://localhost:3000) |
- Use `yarn start` to start app in development mode in [http://localhost:3000](http://localhost:3000) |
||||
- Use `yarn build` to build an optimized app for production. |
- Use `yarn build` to build an optimized app for production. |
||||
|
|
||||
### .env |
### .env |
||||
Don't forget to copy the .env.template to .env and fill in the values |
|
||||
|
|
||||
|
Don't forget to copy the .env.template to .env and fill in the values |
||||
|
@ -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