From 3cc4bd3f54578bcbf6786052ffcc42a89c05c9a7 Mon Sep 17 00:00:00 2001 From: madarsbiss Date: Thu, 23 Sep 2021 13:03:05 +0300 Subject: [PATCH] add classnames --- components/MainCard.js | 7 +++---- components/MainCard.module.css | 7 ++++++- components/MetricsCard.js | 2 +- components/MetricsCard.module.css | 5 +++++ 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/components/MainCard.js b/components/MainCard.js index f22a42c..986cf85 100644 --- a/components/MainCard.js +++ b/components/MainCard.js @@ -17,12 +17,11 @@ export const MainCard = ({

{description}

weatherIcon -

+

{systemUsed == "metric" ? Math.round(weatherData.main.temp) : Math.round(ctoF(weatherData.main.temp))} diff --git a/components/MainCard.module.css b/components/MainCard.module.css index f1b9666..b0eef1f 100644 --- a/components/MainCard.module.css +++ b/components/MainCard.module.css @@ -13,6 +13,11 @@ margin-bottom: 20px; } -.mainTemp { +.image { + width: 300px; + height: 300px; +} + +.temperature { font-size: 84px; } diff --git a/components/MetricsCard.js b/components/MetricsCard.js index e55804a..37e2f90 100644 --- a/components/MetricsCard.js +++ b/components/MetricsCard.js @@ -6,7 +6,7 @@ export const MetricsCard = ({ title, iconSrc, metric, unit }) => {

{title}

- weatherIcon + weatherIcon

{metric}

{unit}

diff --git a/components/MetricsCard.module.css b/components/MetricsCard.module.css index 7161eff..f5d3d2d 100644 --- a/components/MetricsCard.module.css +++ b/components/MetricsCard.module.css @@ -9,6 +9,11 @@ grid-template-columns: 1fr 1fr; } +.image { + height: 100px; + width: 100px; +} + @media only screen and (max-width: 475px) { .content { grid-template-columns: 1fr 2fr;