-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/catchroom/FE_CatchRoom into …
…feature/#180
- Loading branch information
Showing
42 changed files
with
766 additions
and
202 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
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,48 @@ | ||
import Header from '@/components/common/header'; | ||
import FilterBar from '@/components/search-result/filterBar'; | ||
import ProductListControls from '@/components/search-result/list/productListControls'; | ||
import React, { ReactNode } from 'react'; | ||
|
||
const locations = ['서울', '제주']; | ||
const checkInDate = '12.1'; | ||
const checkOutDate = '12.2'; | ||
const accommodationType = '호텔'; | ||
const adultsCount = 2; | ||
|
||
const dayOfWeekIn = '목'; | ||
const dayOfWeekOut = '금'; | ||
|
||
const locationLabel = | ||
locations.length > 1 | ||
? `${locations[0]} 외 ${locations.length - 1}건` | ||
: locations[0]; | ||
const datesLabel = `${checkInDate} ${dayOfWeekIn} ~ ${checkOutDate} ${dayOfWeekOut}`; | ||
const accommodationLabel = accommodationType; | ||
const guestsLabel = `성인 ${adultsCount}명`; | ||
|
||
const filters = [ | ||
{ id: 'location', label: locationLabel }, | ||
{ id: 'date', label: datesLabel }, | ||
{ id: 'accommodation', label: accommodationLabel }, | ||
{ id: 'guests', label: guestsLabel }, | ||
]; | ||
|
||
const Searchlayout = ({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
showProductListControls?: boolean; | ||
}) => { | ||
return ( | ||
<> | ||
<Header title="검색 결과" showBackButton showHomeButton /> | ||
<FilterBar filters={filters} /> | ||
<ProductListControls /> | ||
<main className="w-full absolute h-[calc(100vh-200px)] top-[200px] overflow-y-auto "> | ||
{children} | ||
</main> | ||
</> | ||
); | ||
}; | ||
|
||
export default Searchlayout; |
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
2 changes: 0 additions & 2 deletions
2
app/search-result/no-results/page.tsx → ...arch-result/(sortBtn)/no-results/page.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
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,15 @@ | ||
import { DateRange } from 'react-day-picker'; | ||
import { atom } from 'recoil'; | ||
|
||
export const singleDate = atom<Date | undefined>({ | ||
key: 'singleDate', | ||
default: undefined, | ||
}); | ||
|
||
export const rangeDate = atom<DateRange | undefined>({ | ||
key: 'rangeDate', | ||
default: { | ||
from: undefined, | ||
to: undefined, | ||
}, | ||
}); |
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,11 @@ | ||
import { atom } from 'recoil'; | ||
|
||
export const adultCountState = atom<number>({ | ||
key: 'adultCountState', | ||
default: 2, | ||
}); | ||
|
||
export const childCountState = atom<number>({ | ||
key: 'childCountState', | ||
default: 0, | ||
}); |
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
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,98 @@ | ||
/*------------------- 기본 스타일 초기화 -------------------*/ | ||
|
||
/* 1. 전체 margin값 제거 및 강조효과 제거 */ | ||
.rdp { | ||
margin: 0; | ||
--rdp-outline: 2px solid #fff; | ||
} | ||
|
||
/* 2. 크기 조정 */ | ||
.rdp-table { | ||
max-width: 440px; | ||
width: 100%; | ||
margin-top: 30px; | ||
} | ||
.rdp-caption_start { | ||
width: 100%; | ||
} | ||
.rdp-tbody { | ||
margin-bottom: 40px; | ||
} | ||
.rdp-months { | ||
padding: 30px 0 30px 0; | ||
} | ||
|
||
/*------------------- 커스텀 스타일 적용 -------------------*/ | ||
|
||
/* 1. 달력 table 정렬 및 크기수정 */ | ||
tr { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
|
||
margin-bottom: 10px; | ||
} | ||
.rpd-row > :last-child { | ||
margin-bottom: 10px; | ||
} | ||
|
||
th { | ||
width: 40px; | ||
} | ||
|
||
/* 2. 요일 색상 및 폰트 수정 */ | ||
.rdp-head_cell { | ||
font-size: 16px; | ||
font-weight: 400; | ||
|
||
color: #717680; | ||
} | ||
|
||
/* 3. 오늘 날짜 표시효과 추가 */ | ||
.rdp-day_today::before { | ||
content: ''; | ||
|
||
position: absolute; | ||
bottom: 0; | ||
left: 50%; | ||
|
||
transform: translate(-50%, -50%); | ||
width: 5px; | ||
height: 5px; | ||
|
||
background-color: #ff3478; | ||
border-radius: 50%; | ||
} | ||
.rdp-day_today:not(.rdp-day_outside) { | ||
font-weight: 400; | ||
} | ||
|
||
/* 4-1. 선택된 날짜 (single-picker)*/ | ||
.rdp-day_selected, | ||
.rdp-day_selected:hover { | ||
background-color: #ff3478; | ||
} | ||
|
||
/* 4-2. 선택된 날짜 (range-picker) */ | ||
/* 첫 날짜 */ | ||
.rdp:not([dir='rtl']) .rdp-day_range_start:not(.rdp-day_range_end) { | ||
border-radius: 20px; | ||
} | ||
|
||
/* 중간 날짜들 */ | ||
.rdp-button_reset.rdp-button.rdp-day.rdp-day_selected.rdp-day_range_middle { | ||
border-radius: 20px; | ||
background-color: #ffebf1; | ||
|
||
color: black; | ||
} | ||
|
||
/* 마지막 날짜 */ | ||
.rdp:not([dir='rtl']) .rdp-day_range_end:not(.rdp-day_range_start) { | ||
border-radius: 20px; | ||
} | ||
|
||
/* 5. 버튼 취소 후 남아있는 selected 배경 white로 제거 */ | ||
.rdp-button:hover:not([disabled]):not(.rdp-day_selected) { | ||
background-color: white; | ||
} |
Oops, something went wrong.