diff --git a/pages/index.js b/pages/index.js index 5577a4a..4d109f3 100644 --- a/pages/index.js +++ b/pages/index.js @@ -19,11 +19,13 @@ export default function Home() { return (
-

My weather app {input}

- setInput(e.target.value)} /> - + {/*

My weather app {input}

*/} + {weatherData && ( <> +

+ {weatherData.name}, {weatherData.sys.country} +

{weatherData.weather[0].description}

weatherIcon -

- {weatherData.name}, {weatherData.sys.country} -

{Math.round(weatherData.main.temp)}°

Feels like {weatherData.main.feels_like}°

+ setInput(e.target.value)} + /> + )}
diff --git a/styles/Home.module.css b/styles/Home.module.css index 5bbbf0a..a16ae82 100644 --- a/styles/Home.module.css +++ b/styles/Home.module.css @@ -3,8 +3,19 @@ margin: 0 auto; /* border: 1px solid grey; */ text-align: center; + padding: 30px; } .mainTemp { font-size: 84px; } + +.search { + margin-top: 300px; + height: 30px; + width: 200px; + border-radius: 10px; + border: none; + color: rgb(224, 237, 241); + padding: 0 10px; +}