add location

This commit is contained in:
Pritimay Sarkar
2023-07-31 18:04:44 +05:30
parent fb602e56d7
commit ba7c8e9d2f
6 changed files with 34 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
.locations-card {
width: 40vw;
height: 45vh;
background-color: white;
margin: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

View File

@@ -0,0 +1,14 @@
import React from 'react';
import WorldMap from './WorldMap';
import './Locations.css';
function Locations({ show }) {
return (
<div className='locations-card'>
<WorldMap show={show} />
</div>
);
}
export default Locations;

View File

@@ -8,7 +8,7 @@ import db from '../firebase';
import './TestAnalytics.css';
import TestAnalyticsGraph from './TestAnalyticsGraph';
import TestAnalyticsPie from './TestAnalyticsPie';
import WorldMap from './WorldMap';
import Locations from './Locations';
const styles = {
menuList: (base) => ({
@@ -116,7 +116,8 @@ const TestAnalytics = () => {
{dailyResults && <TestAnalyticsGraph data={dailyResults} />}
</div>
<div className='container'>
<WorldMap />
<Locations />
<Locations />
</div>
</div>

View File

@@ -9,12 +9,17 @@
height: 45vh;
background-color: white;
margin: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.graph-title {
text-align: center;
font-weight: 600;
padding: 15px;
padding: 5px;
bottom: -10;
}
.axis-grid line {

View File

@@ -20,7 +20,7 @@ class TestAnalyticsGraph extends Component {
data.reverse();
var margin = { top: 20, right: 20, bottom: 30, left: 50 },
var margin = { top: 60, right: 20, bottom: 30, left: 50 },
width = 450 - margin.left - margin.right,
height = 200 - margin.top - margin.bottom;

View File

@@ -8,14 +8,12 @@
width: 40vw;
height: 45vh;
background-color: white;
margin: 10px;
}
.graph-title {
text-align: center;
font-weight: 600;
padding: 15px;
top: -10;
}
.title {