Delete Sukoon_Github/user_research
Browse files- Sukoon_Github/user_research/Project Sukoon_ Help Us Help You - Sheet1.csv +0 -0
- Sukoon_Github/user_research/README.txt +0 -4
- Sukoon_Github/user_research/mental-health-dashboard/.gitignore +0 -23
- Sukoon_Github/user_research/mental-health-dashboard/README.md +0 -70
- Sukoon_Github/user_research/mental-health-dashboard/package.json +0 -44
- Sukoon_Github/user_research/mental-health-dashboard/postcss.config.js +0 -6
- Sukoon_Github/user_research/mental-health-dashboard/public/favicon.ico +0 -0
- Sukoon_Github/user_research/mental-health-dashboard/public/index.html +0 -43
- Sukoon_Github/user_research/mental-health-dashboard/public/logo192.png +0 -0
- Sukoon_Github/user_research/mental-health-dashboard/public/logo512.png +0 -0
- Sukoon_Github/user_research/mental-health-dashboard/public/manifest.json +0 -25
- Sukoon_Github/user_research/mental-health-dashboard/public/robots.txt +0 -3
- Sukoon_Github/user_research/mental-health-dashboard/src/App.css +0 -38
- Sukoon_Github/user_research/mental-health-dashboard/src/App.js +0 -387
- Sukoon_Github/user_research/mental-health-dashboard/src/App.test.js +0 -8
- Sukoon_Github/user_research/mental-health-dashboard/src/components/ui/card.js +0 -13
- Sukoon_Github/user_research/mental-health-dashboard/src/index.css +0 -12
- Sukoon_Github/user_research/mental-health-dashboard/src/index.js +0 -17
- Sukoon_Github/user_research/mental-health-dashboard/src/logo.svg +0 -1
- Sukoon_Github/user_research/mental-health-dashboard/src/reportWebVitals.js +0 -13
- Sukoon_Github/user_research/mental-health-dashboard/src/setupTests.js +0 -5
- Sukoon_Github/user_research/mental-health-dashboard/tailwind.config.js +0 -11
- Sukoon_Github/user_research/project-sukoon-user-survey-analysis.ipynb +0 -0
Sukoon_Github/user_research/Project Sukoon_ Help Us Help You - Sheet1.csv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Sukoon_Github/user_research/README.txt
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
To start the dashboard, use:
|
| 2 |
-
npm start
|
| 3 |
-
|
| 4 |
-
This will start the development server and you should be able to see your dashboard at http://localhost:3000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/.gitignore
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
| 2 |
-
|
| 3 |
-
# dependencies
|
| 4 |
-
/node_modules
|
| 5 |
-
/.pnp
|
| 6 |
-
.pnp.js
|
| 7 |
-
|
| 8 |
-
# testing
|
| 9 |
-
/coverage
|
| 10 |
-
|
| 11 |
-
# production
|
| 12 |
-
/build
|
| 13 |
-
|
| 14 |
-
# misc
|
| 15 |
-
.DS_Store
|
| 16 |
-
.env.local
|
| 17 |
-
.env.development.local
|
| 18 |
-
.env.test.local
|
| 19 |
-
.env.production.local
|
| 20 |
-
|
| 21 |
-
npm-debug.log*
|
| 22 |
-
yarn-debug.log*
|
| 23 |
-
yarn-error.log*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/README.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
| 1 |
-
# Getting Started with Create React App
|
| 2 |
-
|
| 3 |
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
| 4 |
-
|
| 5 |
-
## Available Scripts
|
| 6 |
-
|
| 7 |
-
In the project directory, you can run:
|
| 8 |
-
|
| 9 |
-
### `npm start`
|
| 10 |
-
|
| 11 |
-
Runs the app in the development mode.\
|
| 12 |
-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
| 13 |
-
|
| 14 |
-
The page will reload when you make changes.\
|
| 15 |
-
You may also see any lint errors in the console.
|
| 16 |
-
|
| 17 |
-
### `npm test`
|
| 18 |
-
|
| 19 |
-
Launches the test runner in the interactive watch mode.\
|
| 20 |
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
| 21 |
-
|
| 22 |
-
### `npm run build`
|
| 23 |
-
|
| 24 |
-
Builds the app for production to the `build` folder.\
|
| 25 |
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
| 26 |
-
|
| 27 |
-
The build is minified and the filenames include the hashes.\
|
| 28 |
-
Your app is ready to be deployed!
|
| 29 |
-
|
| 30 |
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
| 31 |
-
|
| 32 |
-
### `npm run eject`
|
| 33 |
-
|
| 34 |
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
| 35 |
-
|
| 36 |
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
| 37 |
-
|
| 38 |
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
| 39 |
-
|
| 40 |
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
| 41 |
-
|
| 42 |
-
## Learn More
|
| 43 |
-
|
| 44 |
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
| 45 |
-
|
| 46 |
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
| 47 |
-
|
| 48 |
-
### Code Splitting
|
| 49 |
-
|
| 50 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
| 51 |
-
|
| 52 |
-
### Analyzing the Bundle Size
|
| 53 |
-
|
| 54 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
| 55 |
-
|
| 56 |
-
### Making a Progressive Web App
|
| 57 |
-
|
| 58 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
| 59 |
-
|
| 60 |
-
### Advanced Configuration
|
| 61 |
-
|
| 62 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
| 63 |
-
|
| 64 |
-
### Deployment
|
| 65 |
-
|
| 66 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
| 67 |
-
|
| 68 |
-
### `npm run build` fails to minify
|
| 69 |
-
|
| 70 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/package.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "mental-health-dashboard",
|
| 3 |
-
"version": "0.1.0",
|
| 4 |
-
"private": true,
|
| 5 |
-
"dependencies": {
|
| 6 |
-
"@testing-library/jest-dom": "^5.17.0",
|
| 7 |
-
"@testing-library/react": "^13.4.0",
|
| 8 |
-
"@testing-library/user-event": "^13.5.0",
|
| 9 |
-
"react": "^18.3.1",
|
| 10 |
-
"react-dom": "^18.3.1",
|
| 11 |
-
"react-scripts": "5.0.1",
|
| 12 |
-
"recharts": "^2.12.7",
|
| 13 |
-
"web-vitals": "^2.1.4"
|
| 14 |
-
},
|
| 15 |
-
"scripts": {
|
| 16 |
-
"start": "react-scripts start",
|
| 17 |
-
"build": "react-scripts build",
|
| 18 |
-
"test": "react-scripts test",
|
| 19 |
-
"eject": "react-scripts eject"
|
| 20 |
-
},
|
| 21 |
-
"eslintConfig": {
|
| 22 |
-
"extends": [
|
| 23 |
-
"react-app",
|
| 24 |
-
"react-app/jest"
|
| 25 |
-
]
|
| 26 |
-
},
|
| 27 |
-
"browserslist": {
|
| 28 |
-
"production": [
|
| 29 |
-
">0.2%",
|
| 30 |
-
"not dead",
|
| 31 |
-
"not op_mini all"
|
| 32 |
-
],
|
| 33 |
-
"development": [
|
| 34 |
-
"last 1 chrome version",
|
| 35 |
-
"last 1 firefox version",
|
| 36 |
-
"last 1 safari version"
|
| 37 |
-
]
|
| 38 |
-
},
|
| 39 |
-
"devDependencies": {
|
| 40 |
-
"autoprefixer": "^10.4.19",
|
| 41 |
-
"postcss": "^8.4.39",
|
| 42 |
-
"tailwindcss": "^3.4.4"
|
| 43 |
-
}
|
| 44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/postcss.config.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
module.exports = {
|
| 2 |
-
plugins: {
|
| 3 |
-
tailwindcss: {},
|
| 4 |
-
autoprefixer: {},
|
| 5 |
-
},
|
| 6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/public/favicon.ico
DELETED
|
Binary file (3.87 kB)
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/public/index.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="utf-8" />
|
| 5 |
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
| 6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 7 |
-
<meta name="theme-color" content="#000000" />
|
| 8 |
-
<meta
|
| 9 |
-
name="description"
|
| 10 |
-
content="Web site created using create-react-app"
|
| 11 |
-
/>
|
| 12 |
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
| 13 |
-
<!--
|
| 14 |
-
manifest.json provides metadata used when your web app is installed on a
|
| 15 |
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
| 16 |
-
-->
|
| 17 |
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
| 18 |
-
<!--
|
| 19 |
-
Notice the use of %PUBLIC_URL% in the tags above.
|
| 20 |
-
It will be replaced with the URL of the `public` folder during the build.
|
| 21 |
-
Only files inside the `public` folder can be referenced from the HTML.
|
| 22 |
-
|
| 23 |
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
| 24 |
-
work correctly both with client-side routing and a non-root public URL.
|
| 25 |
-
Learn how to configure a non-root public URL by running `npm run build`.
|
| 26 |
-
-->
|
| 27 |
-
<title>React App</title>
|
| 28 |
-
</head>
|
| 29 |
-
<body>
|
| 30 |
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
| 31 |
-
<div id="root"></div>
|
| 32 |
-
<!--
|
| 33 |
-
This HTML file is a template.
|
| 34 |
-
If you open it directly in the browser, you will see an empty page.
|
| 35 |
-
|
| 36 |
-
You can add webfonts, meta tags, or analytics to this file.
|
| 37 |
-
The build step will place the bundled scripts into the <body> tag.
|
| 38 |
-
|
| 39 |
-
To begin the development, run `npm start` or `yarn start`.
|
| 40 |
-
To create a production bundle, use `npm run build` or `yarn build`.
|
| 41 |
-
-->
|
| 42 |
-
</body>
|
| 43 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/public/logo192.png
DELETED
|
Binary file (5.35 kB)
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/public/logo512.png
DELETED
|
Binary file (9.66 kB)
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/public/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"short_name": "React App",
|
| 3 |
-
"name": "Create React App Sample",
|
| 4 |
-
"icons": [
|
| 5 |
-
{
|
| 6 |
-
"src": "favicon.ico",
|
| 7 |
-
"sizes": "64x64 32x32 24x24 16x16",
|
| 8 |
-
"type": "image/x-icon"
|
| 9 |
-
},
|
| 10 |
-
{
|
| 11 |
-
"src": "logo192.png",
|
| 12 |
-
"type": "image/png",
|
| 13 |
-
"sizes": "192x192"
|
| 14 |
-
},
|
| 15 |
-
{
|
| 16 |
-
"src": "logo512.png",
|
| 17 |
-
"type": "image/png",
|
| 18 |
-
"sizes": "512x512"
|
| 19 |
-
}
|
| 20 |
-
],
|
| 21 |
-
"start_url": ".",
|
| 22 |
-
"display": "standalone",
|
| 23 |
-
"theme_color": "#000000",
|
| 24 |
-
"background_color": "#ffffff"
|
| 25 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/public/robots.txt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
# https://www.robotstxt.org/robotstxt.html
|
| 2 |
-
User-agent: *
|
| 3 |
-
Disallow:
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/App.css
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
.App {
|
| 2 |
-
text-align: center;
|
| 3 |
-
}
|
| 4 |
-
|
| 5 |
-
.App-logo {
|
| 6 |
-
height: 40vmin;
|
| 7 |
-
pointer-events: none;
|
| 8 |
-
}
|
| 9 |
-
|
| 10 |
-
@media (prefers-reduced-motion: no-preference) {
|
| 11 |
-
.App-logo {
|
| 12 |
-
animation: App-logo-spin infinite 20s linear;
|
| 13 |
-
}
|
| 14 |
-
}
|
| 15 |
-
|
| 16 |
-
.App-header {
|
| 17 |
-
background-color: #282c34;
|
| 18 |
-
min-height: 100vh;
|
| 19 |
-
display: flex;
|
| 20 |
-
flex-direction: column;
|
| 21 |
-
align-items: center;
|
| 22 |
-
justify-content: center;
|
| 23 |
-
font-size: calc(10px + 2vmin);
|
| 24 |
-
color: white;
|
| 25 |
-
}
|
| 26 |
-
|
| 27 |
-
.App-link {
|
| 28 |
-
color: #61dafb;
|
| 29 |
-
}
|
| 30 |
-
|
| 31 |
-
@keyframes App-logo-spin {
|
| 32 |
-
from {
|
| 33 |
-
transform: rotate(0deg);
|
| 34 |
-
}
|
| 35 |
-
to {
|
| 36 |
-
transform: rotate(360deg);
|
| 37 |
-
}
|
| 38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/App.js
DELETED
|
@@ -1,387 +0,0 @@
|
|
| 1 |
-
import React from 'react';
|
| 2 |
-
import { PieChart, Pie, Cell, BarChart, Bar, XAxis, YAxis, Tooltip, ResponsiveContainer } from 'recharts';
|
| 3 |
-
import { Card, CardHeader, CardContent } from './components/ui/card';
|
| 4 |
-
|
| 5 |
-
const Dashboard = () => {
|
| 6 |
-
// Data for various charts
|
| 7 |
-
const symptomsData = [
|
| 8 |
-
{ name: "Excessive worrying or fear", value: 63 },
|
| 9 |
-
{ name: "Avoiding social situations", value: 59 },
|
| 10 |
-
{ name: "Fatigue or sleep problems", value: 61 },
|
| 11 |
-
{ name: "Feelings of sadness or isolation", value: 59 },
|
| 12 |
-
{ name: "Problems concentrating", value: 46 },
|
| 13 |
-
{ name: "Sudden mood changes", value: 49 },
|
| 14 |
-
];
|
| 15 |
-
|
| 16 |
-
const supportMethodsData = [
|
| 17 |
-
{ name: "Speaking to friends", value: 66 },
|
| 18 |
-
{ name: "Distractions (TV, reading)", value: 63 },
|
| 19 |
-
{ name: "Sleeping", value: 51 },
|
| 20 |
-
{ name: "Physical Activity", value: 49 },
|
| 21 |
-
{ name: "Speaking to parents", value: 31 },
|
| 22 |
-
{ name: "Meditation", value: 25 },
|
| 23 |
-
];
|
| 24 |
-
|
| 25 |
-
const platformPreferencesData = [
|
| 26 |
-
{ name: "In-person", value: 75 },
|
| 27 |
-
{ name: "Mobile app", value: 34 },
|
| 28 |
-
{ name: "Chat services", value: 15 },
|
| 29 |
-
{ name: "Website", value: 13 },
|
| 30 |
-
];
|
| 31 |
-
|
| 32 |
-
const trustFactorsData = [
|
| 33 |
-
{ name: "Data Privacy", value: 66 },
|
| 34 |
-
{ name: "Anonymity Options", value: 56 },
|
| 35 |
-
{ name: "Data Deletion Policies", value: 51 },
|
| 36 |
-
];
|
| 37 |
-
|
| 38 |
-
const ageGroupData = [
|
| 39 |
-
{ name: "18-21", value: 17 },
|
| 40 |
-
{ name: "21-25", value: 35 },
|
| 41 |
-
{ name: "26-30", value: 22 },
|
| 42 |
-
{ name: "30-35", value: 12 },
|
| 43 |
-
{ name: "35+", value: 13 },
|
| 44 |
-
];
|
| 45 |
-
|
| 46 |
-
const COLORS = ['#0088FE', '#00C49F', '#FFBB28', '#FF8042', '#8884D8', '#82ca9d'];
|
| 47 |
-
|
| 48 |
-
return (
|
| 49 |
-
<div className="p-4 bg-gray-100 min-h-screen">
|
| 50 |
-
<h1 className="text-3xl font-bold mb-6 text-center">Sukoon Survey Dashboard</h1>
|
| 51 |
-
|
| 52 |
-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 53 |
-
<Card>
|
| 54 |
-
<CardHeader>
|
| 55 |
-
<h2 className="text-xl font-semibold">Common Symptoms</h2>
|
| 56 |
-
</CardHeader>
|
| 57 |
-
<CardContent>
|
| 58 |
-
<ResponsiveContainer width="100%" height={400}>
|
| 59 |
-
<BarChart data={symptomsData} layout="vertical" margin={{ left: 200 }}>
|
| 60 |
-
<XAxis type="number" />
|
| 61 |
-
<YAxis dataKey="name" type="category" width={180} />
|
| 62 |
-
<Tooltip />
|
| 63 |
-
<Bar dataKey="value" fill="#8884d8">
|
| 64 |
-
{symptomsData.map((entry, index) => (
|
| 65 |
-
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 66 |
-
))}
|
| 67 |
-
</Bar>
|
| 68 |
-
</BarChart>
|
| 69 |
-
</ResponsiveContainer>
|
| 70 |
-
</CardContent>
|
| 71 |
-
</Card>
|
| 72 |
-
|
| 73 |
-
<Card>
|
| 74 |
-
<CardHeader>
|
| 75 |
-
<h2 className="text-xl font-semibold">Preferred Support Methods</h2>
|
| 76 |
-
</CardHeader>
|
| 77 |
-
<CardContent>
|
| 78 |
-
<ResponsiveContainer width="100%" height={400}>
|
| 79 |
-
<PieChart>
|
| 80 |
-
<Pie
|
| 81 |
-
data={supportMethodsData}
|
| 82 |
-
cx="50%"
|
| 83 |
-
cy="50%"
|
| 84 |
-
labelLine={false}
|
| 85 |
-
outerRadius={120}
|
| 86 |
-
fill="#8884d8"
|
| 87 |
-
dataKey="value"
|
| 88 |
-
label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
| 89 |
-
>
|
| 90 |
-
{supportMethodsData.map((entry, index) => (
|
| 91 |
-
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 92 |
-
))}
|
| 93 |
-
</Pie>
|
| 94 |
-
<Tooltip />
|
| 95 |
-
</PieChart>
|
| 96 |
-
</ResponsiveContainer>
|
| 97 |
-
</CardContent>
|
| 98 |
-
</Card>
|
| 99 |
-
|
| 100 |
-
<Card>
|
| 101 |
-
<CardHeader>
|
| 102 |
-
<h2 className="text-xl font-semibold">Platform Preferences</h2>
|
| 103 |
-
</CardHeader>
|
| 104 |
-
<CardContent>
|
| 105 |
-
<ResponsiveContainer width="100%" height={300}>
|
| 106 |
-
<BarChart data={platformPreferencesData}>
|
| 107 |
-
<XAxis dataKey="name" />
|
| 108 |
-
<YAxis />
|
| 109 |
-
<Tooltip />
|
| 110 |
-
<Bar dataKey="value" fill="#82ca9d">
|
| 111 |
-
{platformPreferencesData.map((entry, index) => (
|
| 112 |
-
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 113 |
-
))}
|
| 114 |
-
</Bar>
|
| 115 |
-
</BarChart>
|
| 116 |
-
</ResponsiveContainer>
|
| 117 |
-
</CardContent>
|
| 118 |
-
</Card>
|
| 119 |
-
|
| 120 |
-
<Card>
|
| 121 |
-
<CardHeader>
|
| 122 |
-
<h2 className="text-xl font-semibold">Trust Factors for AI-based Tools</h2>
|
| 123 |
-
</CardHeader>
|
| 124 |
-
<CardContent>
|
| 125 |
-
<ResponsiveContainer width="100%" height={300}>
|
| 126 |
-
<PieChart>
|
| 127 |
-
<Pie
|
| 128 |
-
data={trustFactorsData}
|
| 129 |
-
cx="50%"
|
| 130 |
-
cy="50%"
|
| 131 |
-
labelLine={false}
|
| 132 |
-
outerRadius={80}
|
| 133 |
-
fill="#8884d8"
|
| 134 |
-
dataKey="value"
|
| 135 |
-
label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
| 136 |
-
>
|
| 137 |
-
{trustFactorsData.map((entry, index) => (
|
| 138 |
-
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 139 |
-
))}
|
| 140 |
-
</Pie>
|
| 141 |
-
<Tooltip />
|
| 142 |
-
</PieChart>
|
| 143 |
-
</ResponsiveContainer>
|
| 144 |
-
</CardContent>
|
| 145 |
-
</Card>
|
| 146 |
-
|
| 147 |
-
<Card>
|
| 148 |
-
<CardHeader>
|
| 149 |
-
<h2 className="text-xl font-semibold">Age Distribution</h2>
|
| 150 |
-
</CardHeader>
|
| 151 |
-
<CardContent>
|
| 152 |
-
<ResponsiveContainer width="100%" height={300}>
|
| 153 |
-
<PieChart>
|
| 154 |
-
<Pie
|
| 155 |
-
data={ageGroupData}
|
| 156 |
-
cx="50%"
|
| 157 |
-
cy="50%"
|
| 158 |
-
labelLine={false}
|
| 159 |
-
outerRadius={80}
|
| 160 |
-
fill="#8884d8"
|
| 161 |
-
dataKey="value"
|
| 162 |
-
label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
| 163 |
-
>
|
| 164 |
-
{ageGroupData.map((entry, index) => (
|
| 165 |
-
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 166 |
-
))}
|
| 167 |
-
</Pie>
|
| 168 |
-
<Tooltip />
|
| 169 |
-
</PieChart>
|
| 170 |
-
</ResponsiveContainer>
|
| 171 |
-
</CardContent>
|
| 172 |
-
</Card>
|
| 173 |
-
|
| 174 |
-
<Card>
|
| 175 |
-
<CardHeader>
|
| 176 |
-
<h2 className="text-xl font-semibold">Key Insights</h2>
|
| 177 |
-
</CardHeader>
|
| 178 |
-
<CardContent>
|
| 179 |
-
<ul className="list-disc pl-5">
|
| 180 |
-
<li>65% of respondents experience excessive worrying or fear</li>
|
| 181 |
-
<li>Speaking to friends (66%) is the most common coping method</li>
|
| 182 |
-
<li>Data privacy (66%) is the top concern for AI-based mental health tools</li>
|
| 183 |
-
<li>The 21-25 age group (36%) forms the largest user base</li>
|
| 184 |
-
</ul>
|
| 185 |
-
</CardContent>
|
| 186 |
-
</Card>
|
| 187 |
-
</div>
|
| 188 |
-
</div>
|
| 189 |
-
);
|
| 190 |
-
};
|
| 191 |
-
|
| 192 |
-
export default Dashboard;
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
// import React from 'react';
|
| 196 |
-
// import { PieChart, Pie, Cell, BarChart, Bar, XAxis, YAxis, Tooltip, Legend, ResponsiveContainer } from 'recharts';
|
| 197 |
-
// import { Card, CardHeader, CardContent } from './components/ui/card';
|
| 198 |
-
|
| 199 |
-
// const Dashboard = () => {
|
| 200 |
-
// // Data for various charts
|
| 201 |
-
// const symptomsData = [
|
| 202 |
-
// { name: "Excessive worrying or fear", value: 65 },
|
| 203 |
-
// { name: "Avoiding social situations", value: 59 },
|
| 204 |
-
// { name: "Fatigue or sleep problems", value: 60 },
|
| 205 |
-
// { name: "Feelings of sadness or isolation", value: 60 },
|
| 206 |
-
// { name: "Problems concentrating", value: 46 },
|
| 207 |
-
// { name: "Sudden mood changes", value: 49 },
|
| 208 |
-
// ];
|
| 209 |
-
|
| 210 |
-
// const supportMethodsData = [
|
| 211 |
-
// { name: "Speaking to friends", value: 66 },
|
| 212 |
-
// { name: "Distractions (TV, reading)", value: 64 },
|
| 213 |
-
// { name: "Sleeping", value: 50 },
|
| 214 |
-
// { name: "Physical Activity", value: 49 },
|
| 215 |
-
// { name: "Speaking to parents", value: 31 },
|
| 216 |
-
// { name: "Meditation", value: 25 },
|
| 217 |
-
// ];
|
| 218 |
-
|
| 219 |
-
// const platformPreferencesData = [
|
| 220 |
-
// { name: "In-person", value: 75 },
|
| 221 |
-
// { name: "Mobile app", value: 33 },
|
| 222 |
-
// { name: "Chat services", value: 15 },
|
| 223 |
-
// { name: "Website", value: 13 },
|
| 224 |
-
// ];
|
| 225 |
-
|
| 226 |
-
// const trustFactorsData = [
|
| 227 |
-
// { name: "Data Privacy", value: 66 },
|
| 228 |
-
// { name: "Anonymity Options", value: 56 },
|
| 229 |
-
// { name: "Data Deletion Policies", value: 51 },
|
| 230 |
-
// ];
|
| 231 |
-
|
| 232 |
-
// const ageGroupData = [
|
| 233 |
-
// { name: "18-21", value: 17 },
|
| 234 |
-
// { name: "21-25", value: 36 },
|
| 235 |
-
// { name: "26-30", value: 21 },
|
| 236 |
-
// { name: "30-35", value: 12 },
|
| 237 |
-
// { name: "35+", value: 13 },
|
| 238 |
-
// ];
|
| 239 |
-
|
| 240 |
-
// const COLORS = ['#0088FE', '#00C49F', '#FFBB28', '#FF8042', '#8884D8', '#82ca9d'];
|
| 241 |
-
|
| 242 |
-
// return (
|
| 243 |
-
// <div className="p-4 bg-gray-100 min-h-screen">
|
| 244 |
-
// <h1 className="text-3xl font-bold mb-6 text-center">Mental Health App Survey Dashboard</h1>
|
| 245 |
-
|
| 246 |
-
// <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 247 |
-
// <Card>
|
| 248 |
-
// <CardHeader>
|
| 249 |
-
// <h2 className="text-xl font-semibold">Common Symptoms</h2>
|
| 250 |
-
// </CardHeader>
|
| 251 |
-
// <CardContent>
|
| 252 |
-
// <ResponsiveContainer width="100%" height={300}>
|
| 253 |
-
// <BarChart data={symptomsData}>
|
| 254 |
-
// <XAxis dataKey="name" angle={-45} textAnchor="end" height={100} />
|
| 255 |
-
// <YAxis />
|
| 256 |
-
// <Tooltip />
|
| 257 |
-
// <Bar dataKey="value" fill="#8884d8">
|
| 258 |
-
// {symptomsData.map((entry, index) => (
|
| 259 |
-
// <Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 260 |
-
// ))}
|
| 261 |
-
// </Bar>
|
| 262 |
-
// </BarChart>
|
| 263 |
-
// </ResponsiveContainer>
|
| 264 |
-
// </CardContent>
|
| 265 |
-
// </Card>
|
| 266 |
-
|
| 267 |
-
// <Card>
|
| 268 |
-
// <CardHeader>
|
| 269 |
-
// <h2 className="text-xl font-semibold">Preferred Support Methods</h2>
|
| 270 |
-
// </CardHeader>
|
| 271 |
-
// <CardContent>
|
| 272 |
-
// <ResponsiveContainer width="100%" height={300}>
|
| 273 |
-
// <PieChart>
|
| 274 |
-
// <Pie
|
| 275 |
-
// data={supportMethodsData}
|
| 276 |
-
// cx="50%"
|
| 277 |
-
// cy="50%"
|
| 278 |
-
// labelLine={false}
|
| 279 |
-
// outerRadius={80}
|
| 280 |
-
// fill="#8884d8"
|
| 281 |
-
// dataKey="value"
|
| 282 |
-
// label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
| 283 |
-
// >
|
| 284 |
-
// {supportMethodsData.map((entry, index) => (
|
| 285 |
-
// <Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 286 |
-
// ))}
|
| 287 |
-
// </Pie>
|
| 288 |
-
// <Tooltip />
|
| 289 |
-
// </PieChart>
|
| 290 |
-
// </ResponsiveContainer>
|
| 291 |
-
// </CardContent>
|
| 292 |
-
// </Card>
|
| 293 |
-
|
| 294 |
-
// <Card>
|
| 295 |
-
// <CardHeader>
|
| 296 |
-
// <h2 className="text-xl font-semibold">Platform Preferences</h2>
|
| 297 |
-
// </CardHeader>
|
| 298 |
-
// <CardContent>
|
| 299 |
-
// <ResponsiveContainer width="100%" height={300}>
|
| 300 |
-
// <BarChart data={platformPreferencesData}>
|
| 301 |
-
// <XAxis dataKey="name" />
|
| 302 |
-
// <YAxis />
|
| 303 |
-
// <Tooltip />
|
| 304 |
-
// <Bar dataKey="value" fill="#82ca9d">
|
| 305 |
-
// {platformPreferencesData.map((entry, index) => (
|
| 306 |
-
// <Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 307 |
-
// ))}
|
| 308 |
-
// </Bar>
|
| 309 |
-
// </BarChart>
|
| 310 |
-
// </ResponsiveContainer>
|
| 311 |
-
// </CardContent>
|
| 312 |
-
// </Card>
|
| 313 |
-
|
| 314 |
-
// <Card>
|
| 315 |
-
// <CardHeader>
|
| 316 |
-
// <h2 className="text-xl font-semibold">Trust Factors for AI-based Tools</h2>
|
| 317 |
-
// </CardHeader>
|
| 318 |
-
// <CardContent>
|
| 319 |
-
// <ResponsiveContainer width="100%" height={300}>
|
| 320 |
-
// <PieChart>
|
| 321 |
-
// <Pie
|
| 322 |
-
// data={trustFactorsData}
|
| 323 |
-
// cx="50%"
|
| 324 |
-
// cy="50%"
|
| 325 |
-
// labelLine={false}
|
| 326 |
-
// outerRadius={80}
|
| 327 |
-
// fill="#8884d8"
|
| 328 |
-
// dataKey="value"
|
| 329 |
-
// label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
| 330 |
-
// >
|
| 331 |
-
// {trustFactorsData.map((entry, index) => (
|
| 332 |
-
// <Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 333 |
-
// ))}
|
| 334 |
-
// </Pie>
|
| 335 |
-
// <Tooltip />
|
| 336 |
-
// </PieChart>
|
| 337 |
-
// </ResponsiveContainer>
|
| 338 |
-
// </CardContent>
|
| 339 |
-
// </Card>
|
| 340 |
-
|
| 341 |
-
// <Card>
|
| 342 |
-
// <CardHeader>
|
| 343 |
-
// <h2 className="text-xl font-semibold">Age Distribution</h2>
|
| 344 |
-
// </CardHeader>
|
| 345 |
-
// <CardContent>
|
| 346 |
-
// <ResponsiveContainer width="100%" height={300}>
|
| 347 |
-
// <PieChart>
|
| 348 |
-
// <Pie
|
| 349 |
-
// data={ageGroupData}
|
| 350 |
-
// cx="50%"
|
| 351 |
-
// cy="50%"
|
| 352 |
-
// labelLine={false}
|
| 353 |
-
// outerRadius={80}
|
| 354 |
-
// fill="#8884d8"
|
| 355 |
-
// dataKey="value"
|
| 356 |
-
// label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
| 357 |
-
// >
|
| 358 |
-
// {ageGroupData.map((entry, index) => (
|
| 359 |
-
// <Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
| 360 |
-
// ))}
|
| 361 |
-
// </Pie>
|
| 362 |
-
// <Tooltip />
|
| 363 |
-
// </PieChart>
|
| 364 |
-
// </ResponsiveContainer>
|
| 365 |
-
// </CardContent>
|
| 366 |
-
// </Card>
|
| 367 |
-
|
| 368 |
-
// <Card>
|
| 369 |
-
// <CardHeader>
|
| 370 |
-
// <h2 className="text-xl font-semibold">Key Insights</h2>
|
| 371 |
-
// </CardHeader>
|
| 372 |
-
// <CardContent>
|
| 373 |
-
// <ul className="list-disc pl-5">
|
| 374 |
-
// <li>65% of respondents experience excessive worrying or fear</li>
|
| 375 |
-
// <li>75% prefer in-person support over digital platforms</li>
|
| 376 |
-
// <li>Speaking to friends (66%) is the most common coping method</li>
|
| 377 |
-
// <li>Data privacy (66%) is the top concern for AI-based mental health tools</li>
|
| 378 |
-
// <li>The 21-25 age group (36%) forms the largest user base</li>
|
| 379 |
-
// </ul>
|
| 380 |
-
// </CardContent>
|
| 381 |
-
// </Card>
|
| 382 |
-
// </div>
|
| 383 |
-
// </div>
|
| 384 |
-
// );
|
| 385 |
-
// };
|
| 386 |
-
|
| 387 |
-
// export default Dashboard;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/App.test.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
import { render, screen } from '@testing-library/react';
|
| 2 |
-
import App from './App';
|
| 3 |
-
|
| 4 |
-
test('renders learn react link', () => {
|
| 5 |
-
render(<App />);
|
| 6 |
-
const linkElement = screen.getByText(/learn react/i);
|
| 7 |
-
expect(linkElement).toBeInTheDocument();
|
| 8 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/components/ui/card.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
import React from 'react';
|
| 2 |
-
|
| 3 |
-
export const Card = ({ children }) => (
|
| 4 |
-
<div className="bg-white shadow-md rounded-lg overflow-hidden">{children}</div>
|
| 5 |
-
);
|
| 6 |
-
|
| 7 |
-
export const CardHeader = ({ children }) => (
|
| 8 |
-
<div className="px-4 py-5 border-b border-gray-200 sm:px-6">{children}</div>
|
| 9 |
-
);
|
| 10 |
-
|
| 11 |
-
export const CardContent = ({ children }) => (
|
| 12 |
-
<div className="px-4 py-5 sm:p-6">{children}</div>
|
| 13 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/index.css
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
@import 'tailwindcss/base';
|
| 2 |
-
@import 'tailwindcss/components';
|
| 3 |
-
@import 'tailwindcss/utilities';
|
| 4 |
-
|
| 5 |
-
body {
|
| 6 |
-
margin: 0;
|
| 7 |
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
| 8 |
-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
| 9 |
-
sans-serif;
|
| 10 |
-
-webkit-font-smoothing: antialiased;
|
| 11 |
-
-moz-osx-font-smoothing: grayscale;
|
| 12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
import React from 'react';
|
| 2 |
-
import ReactDOM from 'react-dom/client';
|
| 3 |
-
import './index.css';
|
| 4 |
-
import App from './App';
|
| 5 |
-
import reportWebVitals from './reportWebVitals';
|
| 6 |
-
|
| 7 |
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
| 8 |
-
root.render(
|
| 9 |
-
<React.StrictMode>
|
| 10 |
-
<App />
|
| 11 |
-
</React.StrictMode>
|
| 12 |
-
);
|
| 13 |
-
|
| 14 |
-
// If you want to start measuring performance in your app, pass a function
|
| 15 |
-
// to log results (for example: reportWebVitals(console.log))
|
| 16 |
-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
| 17 |
-
reportWebVitals();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/logo.svg
DELETED
Sukoon_Github/user_research/mental-health-dashboard/src/reportWebVitals.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
const reportWebVitals = onPerfEntry => {
|
| 2 |
-
if (onPerfEntry && onPerfEntry instanceof Function) {
|
| 3 |
-
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
| 4 |
-
getCLS(onPerfEntry);
|
| 5 |
-
getFID(onPerfEntry);
|
| 6 |
-
getFCP(onPerfEntry);
|
| 7 |
-
getLCP(onPerfEntry);
|
| 8 |
-
getTTFB(onPerfEntry);
|
| 9 |
-
});
|
| 10 |
-
}
|
| 11 |
-
};
|
| 12 |
-
|
| 13 |
-
export default reportWebVitals;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/src/setupTests.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
| 2 |
-
// allows you to do things like:
|
| 3 |
-
// expect(element).toHaveTextContent(/react/i)
|
| 4 |
-
// learn more: https://github.com/testing-library/jest-dom
|
| 5 |
-
import '@testing-library/jest-dom';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/mental-health-dashboard/tailwind.config.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
module.exports = {
|
| 2 |
-
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
|
| 3 |
-
darkMode: false,
|
| 4 |
-
theme: {
|
| 5 |
-
extend: {},
|
| 6 |
-
},
|
| 7 |
-
variants: {
|
| 8 |
-
extend: {},
|
| 9 |
-
},
|
| 10 |
-
plugins: [],
|
| 11 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sukoon_Github/user_research/project-sukoon-user-survey-analysis.ipynb
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|