-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ Refacotring ] tailwind - home (#323)
* 🐛fix: public file * ♻️refactor: HomeView convention * ♻️refactor: MyInfo convention * ♻️refactor: findDust utils 분리 * ♻️refactor: MyLocationWeather remove styled * ♻️refactor: MyWalkRecord remove styled * ♻️refactor: WalkListDisplay edit convention * ♻️refactor: WalkStartButton using twConfig * 🗑️remove: not using file * 🐛fix: Style 미적용 버튼 개선
- Loading branch information
Showing
20 changed files
with
89 additions
and
200 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "./MyInfo"; |
41 changes: 0 additions & 41 deletions
41
src/app/home/components/MyLocationWeather/MyLocationWeather.styles.ts
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 |
---|---|---|
@@ -1,42 +1 @@ | ||
import { FONT_WEIGHT } from "@/styles/theme"; | ||
import styled from "styled-components"; | ||
|
||
export const MyLocationWeatherLayout = styled.article` | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-bottom: 1rem; | ||
`; | ||
|
||
export const MyLocation = styled.div` | ||
display: flex; | ||
svg { | ||
margin-right: 0.5rem; | ||
} | ||
`; | ||
|
||
export const MyWeather = styled.ul` | ||
display: flex; | ||
list-style: none; | ||
font-weight: ${FONT_WEIGHT.BOLD}; | ||
li { | ||
display: flex; | ||
align-items: center; | ||
} | ||
li svg { | ||
margin-right: 0.5rem; | ||
stroke: ${(props) => props.theme.gray_200}; | ||
} | ||
li.temperatures { | ||
margin-right: 0.7rem; | ||
color: ${(props) => props.theme.yellow_500}; | ||
} | ||
li.fineDust { | ||
color: ${(props) => props.theme.green_500}; | ||
} | ||
`; |
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
17 changes: 17 additions & 0 deletions
17
src/app/home/components/MyLocationWeather/utils/findDust.ts
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,17 @@ | ||
const findDust = (pm10: number | null) => { | ||
if (!pm10) { | ||
return; | ||
} | ||
|
||
if (pm10 >= 0 && pm10 <= 30) { | ||
return "좋음"; | ||
} else if (pm10 >= 31 && pm10 <= 80) { | ||
return "보통"; | ||
} else if (pm10 >= 81 && pm10 <= 150) { | ||
return "나쁨"; | ||
} else if (pm10 > 150) { | ||
return "매우 나쁨"; | ||
} | ||
}; | ||
|
||
export default findDust; |
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 @@ | ||
export { default as findDist } from "./findDust"; |
58 changes: 0 additions & 58 deletions
58
src/app/home/components/MyWalkRecord/MyWalkRecord.module.css
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
src/app/home/components/WalkList/components/MyLikeWalkingTrails/MyLikeWalkingTrails.style.ts
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...me/components/WalkList/components/PopularTrailsInOurTown/PopularTrailsInOurTown.styles.ts
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...omponents/WalkList/components/PopularTrailsInOurTown/components/PopularWalkList.styles.ts
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...pp/home/components/WalkList/components/PopularWalkingTrails/PopularWalkingTrails.style.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/app/home/components/WalkList/components/WalkListDisplay/WalkListDisplay.styles.ts
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.