add desc
This commit is contained in:
parent
76c99cd18e
commit
ecaa1c410e
@ -24,9 +24,10 @@ export default function Home() {
|
|||||||
<button onClick={clickHandler}>Send</button>
|
<button onClick={clickHandler}>Send</button>
|
||||||
{weatherData && (
|
{weatherData && (
|
||||||
<>
|
<>
|
||||||
|
<p>{weatherData.weather[0].description}</p>
|
||||||
<Image
|
<Image
|
||||||
alt="weatherIcon"
|
alt="weatherIcon"
|
||||||
src={`http://openweathermap.org/img/wn/${weatherData.weather[0].icon}@2x.png`}
|
src={`/icons/002-sunny.svg`}
|
||||||
height="300px"
|
height="300px"
|
||||||
width="300px"
|
width="300px"
|
||||||
/>
|
/>
|
||||||
@ -43,10 +44,3 @@ export default function Home() {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// export const getServerSideProps = async () => {
|
|
||||||
// const res = async fetch()
|
|
||||||
// console.log(process.env.OPENWEATHER_API_KEY);
|
|
||||||
|
|
||||||
// return { props: {} };
|
|
||||||
// };
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user