edit main card
This commit is contained in:
parent
19e23f2144
commit
f3ebc9f6ca
@ -1,7 +1,5 @@
|
|||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
import { ctoF } from "../services/converters";
|
import { ctoF } from "../services/converters";
|
||||||
|
|
||||||
import styles from "./MainCard.module.css";
|
import styles from "./MainCard.module.css";
|
||||||
|
|
||||||
const MainCard = ({
|
const MainCard = ({
|
||||||
@ -17,16 +15,13 @@ const MainCard = ({
|
|||||||
<h1 className={styles.location}>
|
<h1 className={styles.location}>
|
||||||
{city}, {country}
|
{city}, {country}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p className={styles.description}>{description}</p>
|
<p className={styles.description}>{description}</p>
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
alt="weatherIcon"
|
alt="weatherIcon"
|
||||||
src={`/icons/${iconName}.svg`}
|
src={`/icons/${iconName}.svg`}
|
||||||
height="300px"
|
height="300px"
|
||||||
width="300px"
|
width="300px"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<h1 className={styles.mainTemp}>
|
<h1 className={styles.mainTemp}>
|
||||||
{systemUsed == "metric"
|
{systemUsed == "metric"
|
||||||
? Math.round(weatherData.main.temp)
|
? Math.round(weatherData.main.temp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user