From dd0bdfbd5c50d878c501518a8d94a75f581932c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Wed, 28 Aug 2024 09:17:50 +0900 Subject: [PATCH] =?UTF-8?q?Feat=20:=20Header=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20ui=20=EA=B5=AC=ED=98=84=20-=20S11P21S002-61?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/icons/bell.svg | 3 ++ frontend/src/assets/icons/user.svg | 3 ++ .../src/components/Header/index.stories.tsx | 12 +++++ frontend/src/components/Header/index.tsx | 48 +++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 frontend/src/assets/icons/bell.svg create mode 100644 frontend/src/assets/icons/user.svg create mode 100644 frontend/src/components/Header/index.stories.tsx create mode 100644 frontend/src/components/Header/index.tsx diff --git a/frontend/src/assets/icons/bell.svg b/frontend/src/assets/icons/bell.svg new file mode 100644 index 0000000..28c4e8a --- /dev/null +++ b/frontend/src/assets/icons/bell.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/assets/icons/user.svg b/frontend/src/assets/icons/user.svg new file mode 100644 index 0000000..3f0c997 --- /dev/null +++ b/frontend/src/assets/icons/user.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/components/Header/index.stories.tsx b/frontend/src/components/Header/index.stories.tsx new file mode 100644 index 0000000..4bce462 --- /dev/null +++ b/frontend/src/components/Header/index.stories.tsx @@ -0,0 +1,12 @@ +import type { Meta, StoryObj } from '@storybook/react'; +import Header from './index'; + +const meta: Meta = { + title: 'Components/Header', + component: Header, +}; + +export default meta; +type Story = StoryObj; + +export const Default: Story = {}; diff --git a/frontend/src/components/Header/index.tsx b/frontend/src/components/Header/index.tsx new file mode 100644 index 0000000..54b067d --- /dev/null +++ b/frontend/src/components/Header/index.tsx @@ -0,0 +1,48 @@ +import * as React from 'react'; +import { cn } from '@/lib/utils'; +import bellIcon from '@/assets/icons/bell.svg'; +import userIcon from '@/assets/icons/user.svg'; + +export interface HeaderProps extends React.HTMLAttributes {} + +export default function Header({ className, ...props }: HeaderProps) { + return ( +
+
+
+ WorLabel +
+ +
+
+ Bell Icon + User Icon +
+
+ ); +}