Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 32 additions & 23 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/page.tsx
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>
);
}
2 changes: 2 additions & 0 deletions components/header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import styled from 'styled-components';
import ArrowBackIcon from '@mui/icons-material/ArrowBack';

type HeaderProps = {
label: string;
};

function Header({ label }: HeaderProps) {
return (
<HeaderContainer>
Expand Down
2 changes: 1 addition & 1 deletion pages/ChangePwd.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from 'styled-components';
import Header from '@/components/header';
import LInput from '@/components/input/LInput';
import LButton from '@/components/button/largeButton';
import Header from '@/components/header/Header';

function ChangePwd() {
return (
Expand Down
95 changes: 95 additions & 0 deletions pages/SearchDetail.tsx

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

주연님 Detail 같은 경우에 이벤트 정도는 미리 등록해두면 좋을 것 같습니다...!

검색 버튼에 onClick 이라던지 전체삭제 같은 버튼이라던지 이벤트는 미리 등록시켜두고, 나중에 함수를 구현하는 방식으로 가면 좋을 것 같아요.

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;