Skip to content

Commit

Permalink
[Feat] kdt-8-4#3 업로드 페이지 - 날씨 아이콘 불러오기
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeiis committed Jan 26, 2024
1 parent c350c73 commit 8043b18
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import { WeatherIcon } from '@/Store/WeatherIcon'
import Image from 'next/image'

export default function UploadWeather() {
const { weatherIcon } = WeatherIcon()
return (
<div className="flex mb-3 items-center w-fit">
<p className="font-gmarketsans pt-[5px] mr-3 text-sm">업로드 날씨</p>
{/* Weather API에서 날씨 아이콘 가져와서 보여주기 */}
{weatherIcon && (
<Image
src={`https://openweathermap.org/img/wn/${weatherIcon}.png`}
alt="날씨"
width={10}
height={10}
loading="lazy"
/>
)}
</div>
)
}

0 comments on commit 8043b18

Please sign in to comment.