diff --git a/src/frontend/apps/web/src/shared/components/header/header.tsx b/src/frontend/apps/web/src/shared/components/header/header.tsx new file mode 100644 index 00000000..92e4b1a0 --- /dev/null +++ b/src/frontend/apps/web/src/shared/components/header/header.tsx @@ -0,0 +1,33 @@ +import { Avatar, AvatarFallback, AvatarImage, Popover, PopoverContent, PopoverTrigger } from '@workspace/ui/components'; +import ProfileContainer from './profile-container'; + +//로고 이미지 경로 변경 필요 +const Header = () => { + return ( +
+ + + logo + + + + + + Avatar + + + + + + +
+ ); +}; + +export default Header; diff --git a/src/frontend/apps/web/src/shared/components/header/index.ts b/src/frontend/apps/web/src/shared/components/header/index.ts new file mode 100644 index 00000000..7899000d --- /dev/null +++ b/src/frontend/apps/web/src/shared/components/header/index.ts @@ -0,0 +1 @@ +export { default as Header } from './header'; diff --git a/src/frontend/apps/web/src/shared/components/header/nickname.tsx b/src/frontend/apps/web/src/shared/components/header/nickname.tsx new file mode 100644 index 00000000..b9b8487e --- /dev/null +++ b/src/frontend/apps/web/src/shared/components/header/nickname.tsx @@ -0,0 +1,29 @@ +'use client'; + +import { Button, Input, Label } from '@workspace/ui/components'; +import { Pencil } from 'lucide-react'; + +const Nickname = () => { + //임시변수 + const isNameEditMode = false; + const name = '공작새'; + + return ( +
+ + + +
+ ); +}; +export default Nickname; diff --git a/src/frontend/apps/web/src/shared/components/header/profile-container.tsx b/src/frontend/apps/web/src/shared/components/header/profile-container.tsx new file mode 100644 index 00000000..d86482ce --- /dev/null +++ b/src/frontend/apps/web/src/shared/components/header/profile-container.tsx @@ -0,0 +1,23 @@ +import { Button } from '@workspace/ui/components'; +import ProfilePicture from './profile-picture'; +import Nickname from './nickname'; + +const ProfileContainer = () => { + return ( +
+

My Account

+
+ + +
+ +
+ ); +}; +export default ProfileContainer; diff --git a/src/frontend/apps/web/src/shared/components/header/profile-picture.tsx b/src/frontend/apps/web/src/shared/components/header/profile-picture.tsx new file mode 100644 index 00000000..e6257a16 --- /dev/null +++ b/src/frontend/apps/web/src/shared/components/header/profile-picture.tsx @@ -0,0 +1,35 @@ +'use client'; + +import { Avatar, AvatarFallback, AvatarImage, Button, Input } from '@workspace/ui/components'; + +const ProfilePicture = () => { + //임시변수 + const isPictureEditMode = false; + const pictureUrl = 'https://github.com/shadcn.png'; + + return ( +
+ {isPictureEditMode ? ( + + ) : ( + + + Profile Image + + )} + +
+ ); +}; +export default ProfilePicture; diff --git a/src/frontend/apps/web/src/shared/components/index.ts b/src/frontend/apps/web/src/shared/components/index.ts index 6ca2c8e7..0fae2bd5 100644 --- a/src/frontend/apps/web/src/shared/components/index.ts +++ b/src/frontend/apps/web/src/shared/components/index.ts @@ -1,2 +1,3 @@ export * from './providers'; export * from './react-query'; +export * from './header';