Skip to content

Commit

Permalink
Feat: NoResultIcon 컴포넌트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
se0kcess committed Oct 1, 2024
1 parent 58e4ca2 commit 24b6441
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/assets/imgs/noResultIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/components/NoResultIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as S from './styles';

export const NoResultIcon = () => {
return (
<S.NoResultIcon>
<S.Icon src="src/assets/imgs/noResultIcon.svg" alt="noResultLogo" />
<S.Message>검색 결과가 존재하지 않습니다.</S.Message>
</S.NoResultIcon>
);
};
19 changes: 19 additions & 0 deletions src/components/NoResultIcon/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { H32 } from '@/components/Text';
import styled from 'styled-components';

export const NoResultIcon = styled.div`
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
`;

export const Icon = styled.img`
width: 200px;
height: 200px;
`;

export const Message = styled(H32)`
margin-top: 2rem;
color: ${({ theme }) => theme.colors.black};
`;

0 comments on commit 24b6441

Please sign in to comment.