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