Skip to content

Commit 6150fcf

Browse files
committed
design: icon 추가 및 icon import index 파일 생성
1 parent fec6ac3 commit 6150fcf

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

src/assets/icons/IconClose.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { FC } from 'react';
2+
3+
interface Props {
4+
style: string;
5+
}
6+
7+
const IconClose: FC<Props> = ({ style }) => {
8+
return (
9+
<svg
10+
xmlns="http://www.w3.org/2000/svg"
11+
fill="none"
12+
viewBox="0 0 24 24"
13+
strokeWidth="1.5"
14+
stroke="currentColor"
15+
className={`h-6 w-6 ${style}`}
16+
>
17+
<path strokeLinecap="round" strokeLinejoin="round" d="M6 18 18 6M6 6l12 12" />
18+
</svg>
19+
);
20+
};
21+
22+
export default IconClose;

src/assets/icons/IconLeaf.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const IconLeaf = () => {
2+
return (
3+
<svg width="46" height="48" viewBox="0 0 46 48" fill="none" xmlns="http://www.w3.org/2000/svg">
4+
<path
5+
d="M38.3476 42.3332C35.985 42.3332 33.3148 42.3332 30.3858 42.5167C22.9579 42.9754 12.9085 42.165 10.8371 32.1346C7.89185 17.8842 16.4363 6.20248 15.5463 9.04646C8.2155 32.3946 21.7118 37.9143 32.6028 40.7736C35.8879 41.6298 37.7327 41.8286 40.6294 37.5626C44.3514 32.1041 47.7012 21.9055 45.0472 16.9209C39.529 6.66119 19.0093 5.42268 20.2392 1.06498C21.6471 -3.88904 -1.12189 8.74065 0.0432616 32.7004C0.706751 46.3392 13.5234 52.1648 36.082 44.7643C38.3638 44.0151 38.3476 42.3485 38.3476 42.3485V42.3332Z"
6+
fill="#B8EA00"
7+
/>
8+
</svg>
9+
);
10+
};
11+
12+
export default IconLeaf;

src/assets/icons/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import IconClose from './IconClose';
2+
import IconLeaf from './IconLeaf';
3+
import IconPlus from './IconPlus';
4+
import IconSearch from './IconSearch';
5+
import IconUserPlus from './IconUserPlus';
6+
7+
export { IconClose, IconLeaf, IconPlus, IconSearch, IconUserPlus };

0 commit comments

Comments
 (0)