diff --git a/.eslintrc.js b/.eslintrc.js
index 9e17dd1..a24fda3 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -40,6 +40,7 @@ module.exports = {
'no-bitwise': 'off',
'react/no-array-index-key': 'off',
'nonblock-statement-body-position': 'off',
- 'react/button-has-type': 'off'
+ 'react/button-has-type': 'off',
+ 'no-unused-vars': 'warn',
},
};
diff --git a/src/components/App.css b/src/components/App.css
index 2d4eba4..73ebd88 100644
--- a/src/components/App.css
+++ b/src/components/App.css
@@ -26,12 +26,6 @@ body {
width: 100%;
height: 100%;
background: var(--main);
- background: linear-gradient(
- 165deg,
- rgba(87, 35, 117, 1) 0%,
- rgba(148, 62, 197, 1) 40%,
- rgba(169, 100, 208, 1) 100%
- );
z-index: -1;
}
@@ -58,7 +52,7 @@ b {
.tableWrap {
border: 1px solid var(--border);
- border-radius: 6px;
+ border-radius: 4px;
}
table {
@@ -118,7 +112,7 @@ input[type="checkbox"] {
display: block;
background-color: var(--main);
color: #fff;
- border-radius: 6px;
+ border-radius: 4px;
box-sizing: border-box;
text-align: center;
width: 100%;
@@ -136,7 +130,7 @@ input[type="checkbox"] {
.boxWrap {
border: 1px solid var(--border);
- border-radius: 6px;
+ border-radius: 4px;
padding: 10px;
}
diff --git a/src/components/Blocks.css b/src/components/Blocks.css
index 9722ef5..d8ad609 100644
--- a/src/components/Blocks.css
+++ b/src/components/Blocks.css
@@ -1,7 +1,7 @@
.contentBlock {
color: var(--text);
background-color: #fff;
- border-radius: 6px;
+ border-radius: 4px;
box-sizing: border-box;
padding: 20px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
diff --git a/src/components/Blocks.js b/src/components/Blocks.js
index 84f9d94..12a3911 100644
--- a/src/components/Blocks.js
+++ b/src/components/Blocks.js
@@ -43,59 +43,53 @@ const Blocks = () => {
return (
<>
- {initialData && delayedData && frameData && workerData ? (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ) : (
-
-
Loading...
+
+
+
+
+
- )}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
>
);
};
diff --git a/src/components/DataBlock.js b/src/components/DataBlock.js
index 6a39945..c3304f1 100644
--- a/src/components/DataBlock.js
+++ b/src/components/DataBlock.js
@@ -4,7 +4,18 @@ import Block from './Block';
import TableRow from './TableRow';
const DataBlock = ({ title, type }) => {
- const { initialData, delayedData, frameData, workerData } = useContext(DataContext);
+ const { initialData, delayedData, frameData, workerData } =
+ useContext(DataContext);
+
+ // const test = !workerData || !window.Worker.length;
+
+ const isWorkerValid = workerData && window.Worker.length;
+
+ // if(workerData && window.Worker.length) {
+ // isWorkerValid = true
+ // }
+
+ // console.log(isWorkerValid);
return (
@@ -12,17 +23,33 @@ const DataBlock = ({ title, type }) => {
-
- Date and language data can be used to identify your
- location. Changing the settings on your computer can prevent this.
-
);
};
diff --git a/src/components/GeolocationBlock.js b/src/components/GeolocationBlock.js
index 24ef8aa..39d18fe 100644
--- a/src/components/GeolocationBlock.js
+++ b/src/components/GeolocationBlock.js
@@ -17,9 +17,6 @@ const GeolocationBlock = () => {
) : (
<>
-
- This data is not included in location prediction
-
@@ -48,11 +45,6 @@ const GeolocationBlock = () => {
value={buttonValue}
/>
)}
-
- HTML Geolocation API is used to get the geographical position of a user.
- Since this can compromise privacy, its not available unless the user
- approves it.
-
);
};
diff --git a/src/components/HeaderBar.js b/src/components/HeaderBar.js
index cc3127c..f0d6f26 100644
--- a/src/components/HeaderBar.js
+++ b/src/components/HeaderBar.js
@@ -1,5 +1,7 @@
-import './Logo.css';
+// import './HeaderBar.css';
import { ReactComponent as LogoImg } from '../images/logo.svg';
+import chromeImage from '../images/chrome.png';
+import githubImage from '../images/github.png';
const HeaderBar = () => (
(
alignItems: 'center',
justifyContent: 'space-between',
width: '1024px',
+ margin: '18px 0',
}}
>
-
Download
+
+
+
+

+ Download Extension
+
+
+

+ Source Code
+
+
);
diff --git a/src/components/PredictionBlock.css b/src/components/PredictionBlock.css
index fc4381d..f183acc 100644
--- a/src/components/PredictionBlock.css
+++ b/src/components/PredictionBlock.css
@@ -1,6 +1,6 @@
.mapImg {
width: 100%;
- border-radius: 6px;
+ border-radius: 4px;
border: 1px solid var(--border);
box-sizing: border-box;
display: block;
diff --git a/src/components/TableRow.js b/src/components/TableRow.js
index 13c58e0..1ca40a7 100644
--- a/src/components/TableRow.js
+++ b/src/components/TableRow.js
@@ -15,7 +15,7 @@ const modalStyles = {
transform: 'translate(-50%, -50%)',
padding: '18px',
border: '1px solid var(--border)',
- borderRadius: '6px',
+ borderRadius: '4px',
},
};
diff --git a/src/images/chrome.png b/src/images/chrome.png
new file mode 100644
index 0000000..209f84c
Binary files /dev/null and b/src/images/chrome.png differ
diff --git a/src/images/github.png b/src/images/github.png
new file mode 100644
index 0000000..8f79106
Binary files /dev/null and b/src/images/github.png differ