From 39bc5e27c8faff330cf4306e6582b8b36be51a94 Mon Sep 17 00:00:00 2001 From: Kapil Jangid Date: Sun, 3 Nov 2024 12:55:15 +0530 Subject: [PATCH] feat(profile): update UI components for better responsiveness and styling --- src/app/profile/[userId]/page.tsx | 12 +++++++----- src/components/profile/AboutMe.tsx | 4 ++-- src/components/profile/ProfileEducation.tsx | 2 +- src/components/profile/ProfileExperience.tsx | 2 +- src/components/profile/ProfileHeroSection.tsx | 4 ++-- src/components/profile/ProfileHireme.tsx | 8 ++++---- src/components/profile/ProfileProjects.tsx | 2 +- src/components/profile/ProfileResume.tsx | 2 +- src/components/profile/ProfileSkills.tsx | 2 +- src/components/profile/ProfileSocials.tsx | 10 +++++----- .../emptycontainers/ProfileEmptyContainers.tsx | 2 +- src/components/profile/sheets/SheetWrapper.tsx | 7 ++++--- 12 files changed, 30 insertions(+), 27 deletions(-) diff --git a/src/app/profile/[userId]/page.tsx b/src/app/profile/[userId]/page.tsx index 6384616f..4b2fe37a 100644 --- a/src/app/profile/[userId]/page.tsx +++ b/src/app/profile/[userId]/page.tsx @@ -50,11 +50,13 @@ const Page = async ({ params: { userId } }: { params: { userId: string } }) => { isOwner={isOwner} education={userDetails.education} /> - + {!isOwner && ( + + )} )} diff --git a/src/components/profile/AboutMe.tsx b/src/components/profile/AboutMe.tsx index 4c67013e..701ae578 100644 --- a/src/components/profile/AboutMe.tsx +++ b/src/components/profile/AboutMe.tsx @@ -35,7 +35,7 @@ const ProfileAboutMe = ({ {isOwner && ( diff --git a/src/components/profile/ProfileHireme.tsx b/src/components/profile/ProfileHireme.tsx index 7b889076..c818682f 100644 --- a/src/components/profile/ProfileHireme.tsx +++ b/src/components/profile/ProfileHireme.tsx @@ -13,7 +13,7 @@ const ProfileHireme = ({ }) => { return ( <> -
+

Hire Me, Let’s Make Magic Happen! @@ -23,10 +23,10 @@ const ProfileHireme = ({ to your goals!

-
+

Contact Me

@@ -34,7 +34,7 @@ const ProfileHireme = ({ View Resume diff --git a/src/components/profile/ProfileProjects.tsx b/src/components/profile/ProfileProjects.tsx index f913238c..5f6a1e6f 100644 --- a/src/components/profile/ProfileProjects.tsx +++ b/src/components/profile/ProfileProjects.tsx @@ -60,7 +60,7 @@ const ProfileProjects = ({ {isOwner && (
{isOwner && ( - )} diff --git a/src/components/profile/sheets/SheetWrapper.tsx b/src/components/profile/sheets/SheetWrapper.tsx index 180fa408..892cb68e 100644 --- a/src/components/profile/sheets/SheetWrapper.tsx +++ b/src/components/profile/sheets/SheetWrapper.tsx @@ -24,13 +24,14 @@ const SheetWrapper: React.FC = ({ }) => { return ( - + {title} {description} - - {children} +
+ {children} +
);