forked from Yanabada/Yanabada_FE
-
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.
Merge pull request Yanabada#33 from Yanabada/feature/Yanabada#27
Design: 전체 상품 리스트 화면 구현
- Loading branch information
Showing
21 changed files
with
847 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import * as S from "./style"; | ||
import { useLocation, Link } from "react-router-dom"; | ||
|
||
const categoryList = [ | ||
{ id: "ALL", name: "전체", search: "" }, | ||
{ id: "HOTEL_RESORT", name: "호텔/리조트", search: "?category=HOTEL_RESORT" }, | ||
{ id: "MOTEL", name: "모텔", search: "?category=MOTEL" }, | ||
{ id: "PENSION", name: "펜션", search: "?category=PENSION" }, | ||
{ id: "GUESTHOUSE", name: "게스트하우스", search: "?category=GUESTHOUSE" }, | ||
{ id: "POOL_VILLA", name: "풀빌라", search: "?category=POOL_VILLA" } | ||
]; | ||
|
||
const CategoryTab = () => { | ||
const { search } = useLocation(); | ||
|
||
return ( | ||
<S.CategoryContainer> | ||
{categoryList.map((category) => { | ||
return ( | ||
<Link to={category.search} key={category.id}> | ||
<S.CategoryList className={search === category.search ? "selected_category" : ""}> | ||
{category.name} | ||
</S.CategoryList> | ||
</Link> | ||
); | ||
})} | ||
</S.CategoryContainer> | ||
); | ||
}; | ||
|
||
export default CategoryTab; |
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,22 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
export const CategoryContainer = styled.ul` | ||
display: flex; | ||
justify-content: space-around; | ||
width: 100%; | ||
gap: 1rem; | ||
padding: 0rem 1rem 0.75rem 1rem; | ||
border-bottom: 1px solid ${({ theme }) => theme.colors.gray[300]}; | ||
.selected_category { | ||
color: ${({ theme }) => theme.colors.gray[900]}; | ||
${({ theme }) => theme.text.button1}; | ||
} | ||
`; | ||
|
||
export const CategoryList = styled.li` | ||
color: ${({ theme }) => theme.colors.gray[600]}; | ||
${({ theme }) => theme.text.button2}; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
`; |
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,204 @@ | ||
import * as S from "./style"; | ||
import MapIcon from "assets/map.svg?react"; | ||
import StarIcon from "assets/icons/Star.svg?react"; | ||
|
||
const Items = () => { | ||
return ( | ||
<S.Container> | ||
<S.ItemContainer> | ||
<S.ImageContainer> | ||
<S.Image src="https://bit.ly/2Z4KKcF" /> | ||
<S.DiscountRate>70%</S.DiscountRate> | ||
<S.LocationContainer> | ||
<MapIcon /> | ||
<S.Location>강원도 강릉시</S.Location> | ||
</S.LocationContainer> | ||
</S.ImageContainer> | ||
<S.InformationContainer> | ||
<S.ProductName>속초 굿모닝 호텔 앤 리조트</S.ProductName> | ||
<S.RoomName>Forest Tower Deluxe King</S.RoomName> | ||
<S.Period>12/25 ~ 12/26 (1박)</S.Period> | ||
<S.StarUserContainer> | ||
<S.StarContainer> | ||
<StarIcon /> | ||
<S.StarRating>4.4</S.StarRating> | ||
</S.StarContainer> | ||
<S.UserContainer> | ||
<S.UserIcon /> | ||
<S.UserNumber>기준 2명 / 최대 4명</S.UserNumber> | ||
</S.UserContainer> | ||
</S.StarUserContainer> | ||
<S.RightInnerContainer> | ||
<S.TimerNegoContainer> | ||
<S.TimerContainer> | ||
<S.TimerIcon /> | ||
<S.TimerText>3일 15시간 23분</S.TimerText> | ||
</S.TimerContainer> | ||
<S.NegoContainer> | ||
<S.NegoText>가격제안가능</S.NegoText> | ||
</S.NegoContainer> | ||
</S.TimerNegoContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>원가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>구매가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>판매가</S.PriceText> | ||
<S.Price className="sellingPrice">1,264,000원</S.Price> | ||
</S.PriceContainer> | ||
</S.RightInnerContainer> | ||
</S.InformationContainer> | ||
</S.ItemContainer> | ||
<S.ItemContainer> | ||
<S.ImageContainer> | ||
<S.Image src="https://bit.ly/2Z4KKcF" /> | ||
<S.DiscountRate>70%</S.DiscountRate> | ||
<S.LocationContainer> | ||
<MapIcon /> | ||
<S.Location>강원도 강릉시</S.Location> | ||
</S.LocationContainer> | ||
</S.ImageContainer> | ||
<S.InformationContainer> | ||
<S.ProductName>속초 굿모닝 호텔 앤 리조트</S.ProductName> | ||
<S.RoomName>Forest Tower Deluxe King</S.RoomName> | ||
<S.Period>12/25 ~ 12/26 (1박)</S.Period> | ||
<S.StarUserContainer> | ||
<S.StarContainer> | ||
<StarIcon /> | ||
<S.StarRating>4.4</S.StarRating> | ||
</S.StarContainer> | ||
<S.UserContainer> | ||
<S.UserIcon /> | ||
<S.UserNumber>기준 2명 / 최대 4명</S.UserNumber> | ||
</S.UserContainer> | ||
</S.StarUserContainer> | ||
<S.RightInnerContainer> | ||
<S.TimerNegoContainer> | ||
<S.TimerContainer> | ||
<S.TimerIcon /> | ||
<S.TimerText>3일 15시간 23분</S.TimerText> | ||
</S.TimerContainer> | ||
<S.NegoContainer> | ||
<S.NegoText>가격제안가능</S.NegoText> | ||
</S.NegoContainer> | ||
</S.TimerNegoContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>원가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>구매가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>판매가</S.PriceText> | ||
<S.Price className="sellingPrice">1,264,000원</S.Price> | ||
</S.PriceContainer> | ||
</S.RightInnerContainer> | ||
</S.InformationContainer> | ||
</S.ItemContainer> | ||
<S.ItemContainer> | ||
<S.ImageContainer> | ||
<S.Image src="https://bit.ly/2Z4KKcF" /> | ||
<S.DiscountRate>70%</S.DiscountRate> | ||
<S.LocationContainer> | ||
<MapIcon /> | ||
<S.Location>강원도 강릉시</S.Location> | ||
</S.LocationContainer> | ||
</S.ImageContainer> | ||
<S.InformationContainer> | ||
<S.ProductName>속초 굿모닝 호텔 앤 리조트</S.ProductName> | ||
<S.RoomName>Forest Tower Deluxe King</S.RoomName> | ||
<S.Period>12/25 ~ 12/26 (1박)</S.Period> | ||
<S.StarUserContainer> | ||
<S.StarContainer> | ||
<StarIcon /> | ||
<S.StarRating>4.4</S.StarRating> | ||
</S.StarContainer> | ||
<S.UserContainer> | ||
<S.UserIcon /> | ||
<S.UserNumber>기준 2명 / 최대 4명</S.UserNumber> | ||
</S.UserContainer> | ||
</S.StarUserContainer> | ||
<S.RightInnerContainer> | ||
<S.TimerNegoContainer> | ||
<S.TimerContainer> | ||
<S.TimerIcon /> | ||
<S.TimerText>3일 15시간 23분</S.TimerText> | ||
</S.TimerContainer> | ||
<S.NegoContainer> | ||
<S.NegoText>가격제안가능</S.NegoText> | ||
</S.NegoContainer> | ||
</S.TimerNegoContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>원가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>구매가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>판매가</S.PriceText> | ||
<S.Price className="sellingPrice">1,264,000원</S.Price> | ||
</S.PriceContainer> | ||
</S.RightInnerContainer> | ||
</S.InformationContainer> | ||
</S.ItemContainer> | ||
<S.ItemContainer> | ||
<S.ImageContainer> | ||
<S.Image src="https://bit.ly/2Z4KKcF" /> | ||
<S.DiscountRate>70%</S.DiscountRate> | ||
<S.LocationContainer> | ||
<MapIcon /> | ||
<S.Location>강원도 강릉시</S.Location> | ||
</S.LocationContainer> | ||
</S.ImageContainer> | ||
<S.InformationContainer> | ||
<S.ProductName>속초 굿모닝 호텔 앤 리조트</S.ProductName> | ||
<S.RoomName>Forest Tower Deluxe King</S.RoomName> | ||
<S.Period>12/25 ~ 12/26 (1박)</S.Period> | ||
<S.StarUserContainer> | ||
<S.StarContainer> | ||
<StarIcon /> | ||
<S.StarRating>4.4</S.StarRating> | ||
</S.StarContainer> | ||
<S.UserContainer> | ||
<S.UserIcon /> | ||
<S.UserNumber>기준 2명 / 최대 4명</S.UserNumber> | ||
</S.UserContainer> | ||
</S.StarUserContainer> | ||
<S.RightInnerContainer> | ||
<S.TimerNegoContainer> | ||
<S.TimerContainer> | ||
<S.TimerIcon /> | ||
<S.TimerText>3일 15시간 23분</S.TimerText> | ||
</S.TimerContainer> | ||
<S.NegoContainer> | ||
<S.NegoText>가격제안가능</S.NegoText> | ||
</S.NegoContainer> | ||
</S.TimerNegoContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>원가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>구매가</S.PriceText> | ||
<S.Price>2,000,000원</S.Price> | ||
</S.PriceContainer> | ||
<S.PriceContainer> | ||
<S.PriceText>판매가</S.PriceText> | ||
<S.Price className="sellingPrice">1,264,000원</S.Price> | ||
</S.PriceContainer> | ||
</S.RightInnerContainer> | ||
</S.InformationContainer> | ||
</S.ItemContainer> | ||
</S.Container> | ||
); | ||
}; | ||
|
||
export default Items; |
Oops, something went wrong.