diff --git a/package-lock.json b/package-lock.json index 45a5ce30..63d1a2eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4967,6 +4967,95 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@testing-library/dom": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.1.0.tgz", + "integrity": "sha512-wdsYKy5zupPyLCW2Je5DLHSxSfbIp6h80WoHOQc+RPtmPGA52O9x5MJEkv92Sjonpq+poOAtUKhh1kBGAXBrNA==", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.3.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@testing-library/dom/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "peer": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "peer": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@testing-library/dom/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "peer": true + }, + "node_modules/@testing-library/dom/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/dom/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@testing-library/jest-dom": { "version": "5.17.0", "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.17.0.tgz", diff --git a/src/Components/user/FaqComponenet.jsx b/src/Components/user/FaqComponenet.jsx index f3de7006..1761ea7c 100644 --- a/src/Components/user/FaqComponenet.jsx +++ b/src/Components/user/FaqComponenet.jsx @@ -21,14 +21,12 @@ const Accordion = styled((props) => ( backgroundColor: 'rgba(255, 255, 255, 0.6)', // Adjust the opacity as needed })); - const AccordionSummary = styled((props) => ( } {...props} /> ))(({ theme }) => ({ - flexDirection: 'row-reverse', '& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': { transform: 'rotate(90deg)', @@ -42,6 +40,18 @@ const AccordionDetails = styled(MuiAccordionDetails)(({ theme }) => ({ padding: theme.spacing(2), borderTop: '1px solid rgba(0, 0, 0, .125)', textAlign: 'left', + '@media (max-width: 600px)': { + padding: theme.spacing(1), + }, +})); + +const Image = styled('img')(({ theme }) => ({ + borderRadius: '10px', + width: '100%', + height: 'auto', + '@media (max-width: 600px)': { + width: '100%', + }, })); export default function CustomizedAccordions() { @@ -55,37 +65,43 @@ export default function CustomizedAccordions() {
- Determine how badly the animal is injured + + Determine how badly the animal is injured + - + Some injuries need urgent care, like severe bleeding or serious distress. Minor injuries, like a mobile animal without distress, can be treated at home. Assess the situation and decide if the animal needs immediate medical attention based on its behavior. - + Determining injury - Provide first aid, if possible + + Provide first aid, if possible + - + For minor injuries, clean cuts with soap and water, cover with a bandage. Treat minor burns with cool water and a dry cloth. If unconscious, check for injuries and provide aid as needed. - + First aid - Approach the streetie slowly and calmly + + Approach the streetie slowly and calmly + - + If a stray dog shows aggression like growling, keep your distance and seek professional help. Approach calmly if the dog seems friendly, speaking softly to reassure it. - + Approach calmly
); -} \ No newline at end of file +} diff --git a/src/pages/user/ReportIncidentPages/SuccessPage.jsx b/src/pages/user/ReportIncidentPages/SuccessPage.jsx index d2881277..6b1671ac 100644 --- a/src/pages/user/ReportIncidentPages/SuccessPage.jsx +++ b/src/pages/user/ReportIncidentPages/SuccessPage.jsx @@ -2,74 +2,80 @@ import React from "react"; import { Link } from "react-router-dom"; import CustomizedAccordions from "../../../Components/user/FaqComponenet"; import Button from "../../../Components/shared/Button"; -const csrftoken = localStorage.getItem('csrftoken'); +const csrftoken = localStorage.getItem('csrftoken'); function SuccessPage() { - - // console.log(csrftoken) - - //backend endpoint required to fetch 3 closest NGO info + // backend endpoint required to fetch 3 closest NGO info const nearNGO = [ ["name1: ", "number1"], ["name2: ", "number2"], ["name3: ", "number3"] - ] + ]; return ( -
-
- {/*

Success

*/} -
-

Your report has been submitted successfully.

-
+
+
+
+ ✓ +
+

+ Your report has been submitted successfully. +

+
-
-
-

Contact the nearest NGO if you can!

+
+
+

+ Contact the nearest NGO if you can! +

-

These are the closest NGOs. Let them know a streetie needs help!

-
    +

    + These are the closest NGOs. Let them know a streetie needs help! +

    +
    1. {nearNGO[0]}
    2. {nearNGO[1]}
    3. {nearNGO[2]}
    -

    Doing this can let the animal receive help quicker.

    +

    + Doing this can let the animal receive help quicker. +

-
-
-

Here's what you can do in the meantime

+
+
+

+ Here's what you can do in the meantime +