From f3d38b2068212b81e849f9fa73d212bfe611f8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=98=81=EC=9A=B0?= Date: Wed, 20 Dec 2023 21:33:32 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20css=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ImageSvg/UserInfoSvg.tsx | 33 +++++++++++++++++++++++++++++ components/ProfileCard/index.tsx | 17 ++++++++------- pages/userInfo/index.tsx | 5 +++-- 3 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 components/ImageSvg/UserInfoSvg.tsx diff --git a/components/ImageSvg/UserInfoSvg.tsx b/components/ImageSvg/UserInfoSvg.tsx new file mode 100644 index 0000000..7aa1a8e --- /dev/null +++ b/components/ImageSvg/UserInfoSvg.tsx @@ -0,0 +1,33 @@ +import React from 'react'; + +interface ImageSvgProps { + imageUrl: string; +} + +const UserInfoSvg = ({ imageUrl }: ImageSvgProps) => { + return ( + + + + + + + + + + ); +}; + +export default UserInfoSvg; diff --git a/components/ProfileCard/index.tsx b/components/ProfileCard/index.tsx index f57c77b..accb78f 100644 --- a/components/ProfileCard/index.tsx +++ b/components/ProfileCard/index.tsx @@ -14,6 +14,7 @@ import { signOut } from 'next-auth/react'; import { UserInfoProps } from '@/context/UserInfoProvider.tsx'; // import { Profile } from '@/public/types/user'; import { formatAge } from '@/utils/transform'; +import UserInfoSvg from '../ImageSvg/UserInfoSvg'; interface ListItemProps { IconComponent: React.FC>; @@ -77,8 +78,8 @@ export default function ProfileCard({ imageSrc, userInfo }: ProfileCard) { onClick={() => handleClick({ route, onclick })} >
- -
{text}
+ +
{text}
{hoveredIndex === index && } @@ -114,16 +115,16 @@ export default function ProfileCard({ imageSrc, userInfo }: ProfileCard) { <>
-
- {' +
+
-
-
{userInfo?.firstName}
-
+
+
{userInfo?.firstName}
+
{age} years old | {userInfo?.gender}
-
+