-
Notifications
You must be signed in to change notification settings - Fork 0
feature: [#4] SearchDetail 페이지 ui구현 #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dkswndus
wants to merge
1
commit into
main
Choose a base branch
from
feature/#5
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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,11 @@ | ||
| 'use client'; | ||
|
|
||
| import ContainerCamera from '@/pages/ContainerCamera'; | ||
| import SearchDetail from '@/pages/SearchDetail'; | ||
|
|
||
| export default function Home() { | ||
| return ( | ||
| <main> | ||
| <ContainerCamera /> | ||
| <SearchDetail /> | ||
| </main> | ||
| ); | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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,95 @@ | ||
| import styled from 'styled-components'; | ||
| import ArrowBackIcon from '@mui/icons-material/ArrowBack'; | ||
| import SearchIcon from '@mui/icons-material/Search'; | ||
| import RestoreIcon from '@mui/icons-material/Restore'; | ||
| import ClearIcon from '@mui/icons-material/Clear'; | ||
| import ListItem from '@mui/material/ListItem'; | ||
| import ListItemText from '@mui/material/ListItemText'; | ||
|
|
||
| function SearchDetail() { | ||
| return ( | ||
| <> | ||
| <SearchContainer> | ||
| <ArrowBackIcon /> | ||
| <SearchText>검색어</SearchText> | ||
| <SearchIcon /> | ||
| </SearchContainer> | ||
| <DeleteRecentContainer> | ||
| <RecentText>최근 검색어</RecentText> | ||
| <DeleteText>전체 삭제</DeleteText> | ||
| </DeleteRecentContainer> | ||
| <SearchList> | ||
| {searchData.map((search) => ( | ||
| <ListItem key={search.text}> | ||
| <RestoreIcon /> | ||
| <SearchListItemText primary={search.text} /> | ||
| <ClearIcon /> | ||
| </ListItem> | ||
| ))} | ||
| </SearchList> | ||
| </> | ||
| ); | ||
| } | ||
|
|
||
| const searchData = [ | ||
| { | ||
| text: '용용인형', | ||
| }, | ||
| { | ||
| text: '쉽게 배우는 파이썬', | ||
| }, | ||
| { | ||
| text: '미분적분학', | ||
| }, | ||
| { | ||
| text: 'lg 그램 2023', | ||
| }, | ||
| { | ||
| text: '태권도 도복', | ||
| }, | ||
| ]; | ||
|
|
||
| const SearchText = styled.div` | ||
| margin-left: 10px; | ||
| font-size: 16px; | ||
| font-weight: bold; | ||
| flex: 1; | ||
| `; | ||
|
|
||
| const SearchContainer = styled.div` | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: flex-start; | ||
| height: 50px; | ||
| padding: 0 10px; | ||
| border-bottom: 1px solid #5dda6f; | ||
| width: 100%; | ||
| `; | ||
|
|
||
| const DeleteRecentContainer = styled.div` | ||
| display: flex; | ||
| justify-content: space-between; | ||
| padding: 5% 5%; | ||
| align-items: center; | ||
| `; | ||
|
|
||
| const RecentText = styled.div` | ||
| font-size: 14px; | ||
| font-weight: bold; | ||
| `; | ||
|
|
||
| const DeleteText = styled.div` | ||
| font-size: 14px; | ||
| font-weight: bold; | ||
| `; | ||
|
|
||
| const SearchList = styled.div` | ||
| width: 100%; | ||
| `; | ||
|
|
||
| const SearchListItemText = styled(ListItemText)` | ||
| color: black; | ||
| margin-left: 5%; | ||
| `; | ||
|
|
||
| export default SearchDetail; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주연님 Detail 같은 경우에 이벤트 정도는 미리 등록해두면 좋을 것 같습니다...!
검색 버튼에
onClick이라던지 전체삭제 같은 버튼이라던지 이벤트는 미리 등록시켜두고, 나중에 함수를 구현하는 방식으로 가면 좋을 것 같아요.