-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
532 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { SearchOutlined } from '@ant-design/icons' | ||
import { SearchPageInputContainer } from './style' | ||
|
||
const SearchPageInput = () => { | ||
return ( | ||
<SearchPageInputContainer> | ||
<button> | ||
<span> | ||
<SearchOutlined | ||
style={{ fontSize: '1.8rem', color: 'rgb(176, 184, 193)' }} | ||
/> | ||
</span> | ||
</button> | ||
<input | ||
type='text' | ||
placeholder='검색어를 입력하세요.' | ||
/> | ||
</SearchPageInputContainer> | ||
) | ||
} | ||
|
||
export default SearchPageInput |
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,36 @@ | ||
import styled from 'styled-components' | ||
|
||
export const SearchPageInputContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
border-bottom: 1.5px solid rgb(176, 184, 193); | ||
& button { | ||
border: none; | ||
background-color: transparent; | ||
} | ||
& input { | ||
font-family: 'Noto Sans KR', sans-serif !important; | ||
width: 100%; | ||
height: 4rem; | ||
border: none; | ||
background-color: transparent; | ||
padding-left: 1rem; | ||
font-size: 1.3rem; | ||
font-weight: 500; | ||
} | ||
& input::placeholder { | ||
color: #7d7d7d; | ||
} | ||
& input:focus { | ||
outline: none; | ||
} | ||
&:focus-within { | ||
border-bottom: 1.5px solid #1c1c1c; | ||
} | ||
` |
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,29 @@ | ||
import { SearchPageNavContainer, SearchPageNavItem } from './style' | ||
|
||
const SearchPageNav = () => { | ||
const categories = [ | ||
'전체', | ||
'한식', | ||
'중식', | ||
'일식', | ||
'양식', | ||
'동남아 요리', | ||
'남미 요리', | ||
'중동 요리', | ||
'퓨전 요리', | ||
'채식 요리', | ||
'해산물 요리', | ||
'바베큐 요리', | ||
'디저트 요리', | ||
] | ||
|
||
return ( | ||
<SearchPageNavContainer> | ||
{categories.map((category) => ( | ||
<SearchPageNavItem key={category}>{category}</SearchPageNavItem> | ||
))} | ||
</SearchPageNavContainer> | ||
) | ||
} | ||
|
||
export default SearchPageNav |
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' | ||
|
||
export const SearchPageNavContainer = styled.ul` | ||
font-family: 'Noto Sans KR', sans-serif; | ||
` | ||
export const SearchPageNavItem = styled.a` | ||
display: block; | ||
width: 100%; | ||
margin-bottom: 1rem; | ||
list-style: none; | ||
padding: 1rem 4rem 1rem 1rem; | ||
font-size: 1.1rem; | ||
font-weight: 600; | ||
border-radius: 0.7rem; | ||
color: #7d7d7d; | ||
letter-spacing: -0.05rem; | ||
cursor: pointer; | ||
&:hover { | ||
background-color: #f0f0f0; | ||
color: #1c1c1c; | ||
} | ||
&:active { | ||
background-color: #e0e0e0; | ||
color: #1c1c1c; | ||
} | ||
` |
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.