-
Notifications
You must be signed in to change notification settings - Fork 42
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 #46 from ghojeong/fe/41/new-search-bar
[FE] chore: 초기세팅 컴포넌트 구조, 이미지 추가
- Loading branch information
Showing
14 changed files
with
159 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
import React from 'react' | ||
import CalendarModal from 'components/SearchBar/Calendar/CalendarModal'; | ||
|
||
function Calendar() { | ||
import CalendarModal from "components/SearchBar/Calendar/CalendarModal"; | ||
import styled from "styled-components"; | ||
import * as S from "components/SearchBar/SearchBarStyles"; | ||
import CancelButton from "components/common/CancelButton"; | ||
const Calendar = () => { | ||
return ( | ||
<> | ||
<CalendarModal/> | ||
<S.SearchBarBox _width="20%" className="check-in"> | ||
<S.SearchBarTitle>체크인</S.SearchBarTitle> | ||
<S.SearchBarText>날짜 입력</S.SearchBarText> | ||
<CancelButton /> | ||
</S.SearchBarBox> | ||
<S.SearchBarBox _width="20%" className="check-out"> | ||
<S.SearchBarTitle>체크아웃</S.SearchBarTitle> | ||
<S.SearchBarText>날짜 입력</S.SearchBarText> | ||
<CancelButton /> | ||
</S.SearchBarBox> | ||
<CalendarModal /> | ||
</> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Calendar; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const Guests = () => { | ||
return <div></div>; | ||
return <div>??</div>; | ||
}; | ||
|
||
export default Guests; |
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,5 +1,17 @@ | ||
import RoomPriceModal from "components/SearchBar/RoomPrice/RoomPriceModal"; | ||
import * as S from "components/SearchBar/SearchBarStyles"; | ||
import CancelButton from "components/common/CancelButton"; | ||
const RoomPrice = () => { | ||
return <div></div>; | ||
return ( | ||
<> | ||
<S.SearchBarBox _width="20%" className="price"> | ||
<S.SearchBarTitle>요금</S.SearchBarTitle> | ||
<S.SearchBarText>100,000~1,000,000</S.SearchBarText> | ||
{/* <CancelButton /> */} | ||
</S.SearchBarBox> | ||
<RoomPriceModal /> | ||
</> | ||
); | ||
}; | ||
|
||
export default RoomPrice; |
14 changes: 4 additions & 10 deletions
14
frontend/src/components/SearchBar/RoomPrice/RoomPriceModal.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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import React from 'react' | ||
const RoomPriceModal = () => { | ||
return <div></div>; | ||
}; | ||
|
||
function RoomPriceModal() { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default RoomPriceModal | ||
export default RoomPriceModal; |
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,28 @@ | ||
import styled from "styled-components"; | ||
|
||
type TSearchBarBox = { | ||
_width: string; | ||
}; | ||
|
||
const SearchBarTitle = styled.div` | ||
font-size: 1.2rem; | ||
font-weight: bold; | ||
margin-bottom: 1rem; | ||
padding: 0 10%; | ||
`; | ||
const SearchBarText = styled.div` | ||
padding: 0 10%; | ||
font-size: 1.6rem; | ||
`; | ||
|
||
const SearchBarBox = styled.div` | ||
position: relative; | ||
width: ${(props: TSearchBarBox) => props._width}; | ||
padding: 1.5rem 2rem; | ||
border-radius: 60px; | ||
:hover { | ||
background-color: #f5f5f7; | ||
} | ||
`; | ||
|
||
export { SearchBarTitle, SearchBarText, SearchBarBox }; |
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,5 +1,17 @@ | ||
import { ReactComponent as CancelBtn } from "image/cancelBtn.svg"; | ||
import styled from "styled-components"; | ||
const CancelButton = () => { | ||
return <div></div>; | ||
return ( | ||
<CancelButtonWrap> | ||
<CancelBtn /> | ||
</CancelButtonWrap> | ||
); | ||
}; | ||
|
||
const CancelButtonWrap = styled.div` | ||
position: absolute; | ||
top: 2.5rem; | ||
right: 0; | ||
`; | ||
|
||
export default CancelButton; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.