diff --git a/pages/index.js b/pages/index.js index 93d6894..e67d471 100644 --- a/pages/index.js +++ b/pages/index.js @@ -94,11 +94,6 @@ export default function Home() { /> {weatherData && (
-
Stats card1
-
Stats card2
-
- Visibility: {weatherData.visibility / 1000} km -

Humidity

@@ -114,7 +109,6 @@ export default function Home() {
-

Wind speed

@@ -130,6 +124,39 @@ export default function Home() {
+
+

Wind direction

+
+ weatherIcon +
+

{degToCompass(weatherData.wind.deg)}

+
+
+
+
+

Visibility

+
+ weatherIcon +
+

{weatherData.visibility / 1000}

+

Km

+
+
+
+ {/*
+ Visibility: {weatherData.visibility / 1000} km +
*/} + {/*

Wind:{" "} diff --git a/public/icons/binocular.png b/public/icons/binocular.png new file mode 100644 index 0000000..1d07a0b Binary files /dev/null and b/public/icons/binocular.png differ diff --git a/styles/Home.module.css b/styles/Home.module.css index 6adb4d2..969488d 100644 --- a/styles/Home.module.css +++ b/styles/Home.module.css @@ -19,12 +19,12 @@ .locationTitle { font-size: 38px; - margin-bottom: 20px; + margin-bottom: 10px; } .weatherDescription { font-size: 24px; - margin-bottom: 30px; + margin-bottom: 20px; } .statsWrapper {