forked from kdt-8-4/Weatherfit_frontend_refactoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] kdt-8-4#3, kdt-8-4#14 게시물 관련 웹 크기 맞게 디자인 수정
- Loading branch information
Showing
9 changed files
with
40 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
weatherfit_refactoring/src/Components/Molecules/post/EditWeather.tsx
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
weatherfit_refactoring/src/Components/Molecules/post/UploadWeather.tsx
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
weatherfit_refactoring/src/Components/Molecules/post/Weather.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Image from 'next/image' | ||
import { WeatherIcon } from '@/Store/WeatherIcon' | ||
|
||
export default function Weather({ | ||
initialWeatherIcon, | ||
}: { | ||
initialWeatherIcon?: FEEDDATA_detail['weatherIcon'] | ||
}) { | ||
const { weatherIcon } = WeatherIcon() | ||
return ( | ||
<div className="flex mb-3 items-center w-fit"> | ||
<p className="font-gmarketsans pt-[5px] mr-3 text-sm"> | ||
{initialWeatherIcon ? '업로드 당시 날씨' : '업로드 날씨'} | ||
</p> | ||
<Image | ||
src={ | ||
initialWeatherIcon | ||
? initialWeatherIcon | ||
: `https://openweathermap.org/img/wn/${weatherIcon}.png` | ||
} | ||
alt="날씨" | ||
width={20} | ||
height={20} | ||
loading="lazy" | ||
/> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters