diff --git a/public/images/Artboard_1.png b/public/images/Artboard_1.png new file mode 100644 index 0000000..877c64b Binary files /dev/null and b/public/images/Artboard_1.png differ diff --git a/src/components/atoms/Divider/index.tsx b/src/components/atoms/Divider/index.tsx new file mode 100644 index 0000000..5473b95 --- /dev/null +++ b/src/components/atoms/Divider/index.tsx @@ -0,0 +1,34 @@ +import { ComponentProps } from 'react'; + +interface Props extends ComponentProps<'div'> { + space?: number; + size?: 'sm' | 'md' | 'lg'; + color?: string; + type?: 'vertical' | 'horizontal'; +} + +const Divider = ({ + space = 22, + size = 'md', + color = '#ccc', + type = 'horizontal', + ...props +}: Props) => { + const horizontalStyle = { + marginTop: space, + marginBottom: space, + background: color, + height: size === 'md' ? '2px' : size === 'lg' ? '3px' : '1px', + }; + + const verticalStyle = { + marginLeft: space, + marginRight: space, + background: color, + width: size === 'md' ? '2px' : size === 'lg' ? '3px' : '1px', + }; + + return
; +}; + +export default Divider; diff --git a/src/components/layout/header/index.tsx b/src/components/layout/header/index.tsx index f13c793..4cb147d 100644 --- a/src/components/layout/header/index.tsx +++ b/src/components/layout/header/index.tsx @@ -8,7 +8,7 @@ import { MENU_ITEMS } from '@/constants/menus'; import toast from 'react-hot-toast'; import { signOut } from '@/components/signIn/utils/logout'; -type MenuType = 'community' | 'study' | 'project' | 'portfolio' | 'review'; +type MenuType = 'community' | 'study' | 'project' | 'portfolio' | 'review' | 'activity'; const Header = () => { const [selectedMenu, setSelectedMenu] = useState