From a13dcbf96d89fb4dbbac0a9bd20f6f3d57bc4280 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Mon, 12 Jan 2026 14:13:37 +0530 Subject: [PATCH] mobiel view --- .../assets/icons/edit-pencil-orange-icon.svg | 4 + .../dashboard/component/ProfileHeader.tsx | 6 +- .../dashboard/component/ProfileSidebar.tsx | 4 +- src/app/(agent)/agent/dashboard/page.tsx | 441 ++++++++++++++++-- 4 files changed, 411 insertions(+), 44 deletions(-) create mode 100644 public/assets/icons/edit-pencil-orange-icon.svg diff --git a/public/assets/icons/edit-pencil-orange-icon.svg b/public/assets/icons/edit-pencil-orange-icon.svg new file mode 100644 index 0000000..fad555e --- /dev/null +++ b/public/assets/icons/edit-pencil-orange-icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/app/(agent)/agent/dashboard/component/ProfileHeader.tsx b/src/app/(agent)/agent/dashboard/component/ProfileHeader.tsx index 911cdee..311573e 100644 --- a/src/app/(agent)/agent/dashboard/component/ProfileHeader.tsx +++ b/src/app/(agent)/agent/dashboard/component/ProfileHeader.tsx @@ -51,10 +51,10 @@ export function ProfileHeader({ )} diff --git a/src/app/(agent)/agent/dashboard/component/ProfileSidebar.tsx b/src/app/(agent)/agent/dashboard/component/ProfileSidebar.tsx index 5d19d0c..83b3cc5 100644 --- a/src/app/(agent)/agent/dashboard/component/ProfileSidebar.tsx +++ b/src/app/(agent)/agent/dashboard/component/ProfileSidebar.tsx @@ -10,9 +10,9 @@ interface ProfileSidebarProps { export function ProfileSidebar({ profileImage, email, phone }: ProfileSidebarProps) { return ( -
+
{/* Profile Image */} -
+
- {/* Main Profile Section with Left Sidebar */} -
+ {/* Mobile: Profile Image at Top */} +
+ {/* Profile Image */} +
+
+ Profile +
+ +
+ + {/* Available/Unavailable Buttons */} +
+
+
+ + Available. +
+ +
+
+
+ + Unavailable. +
+ +
+
+ + {/* Contact Info Card */} +
+
+ Email: + ********brian@gmail.com +
+
+ Ph.No: + {agentData.phone} + +
+
+ + {/* Name and Info - Centered for Mobile */} +
+
+

+ {firstName}{' '} + {lastName} +

+ {agentData.isVerified && ( + <> + Verified + + (Verified Expert) + + + )} + +
+

{agentData.title}

+
+ + Location + {agentData.location} + + + Calendar + Member Since {agentData.memberSince} + +
+
+ + {/* Bio - Centered for Mobile */} +

+ {agentData.bio} +

+
+ + {/* Desktop: Original Layout */} +
{/* Left Sidebar - Status & Contact */} - +
+ {/* Profile Image */} +
+
+ Profile +
+ +
+ + {/* Status Buttons */} +
+
+
+ + Available. +
+ +
+
+
+ + Unavailable. +
+ +
+
+ + {/* Contact Info */} +
+
+ Email: + *****brian@gmail.com +
+
+ Ph.No: + {agentData.phone} + +
+
+
{/* Right Content - Profile Info */}
- +
+ {/* Name and Actions Row */} +
+
+
+

+ {firstName}{' '} + {lastName} +

+ {agentData.isVerified && ( + <> + Verified + + (Verified Expert) + + + )} + +
+

{agentData.title}

+
+ + Location + {agentData.location} + + + Calendar + Member Since {agentData.memberSince} + +
+
+ + {/* Action Buttons */} +
+ + +
+
+ + {/* Bio */} +

{agentData.bio}

+ + {/* Expertise Tags */} +
+

Expertise:

+
+ {agentData.expertise.map((tag, idx) => ( + {tag} + ))} +
+
+
{/* Experience Section */} - +
+

Experience

+
+
+

Years in Experience

+
    +
  • {agentData.experience.years}
  • +
+
+
+

Number of contract closed

+
    +
  • {agentData.experience.contracts}
  • +
+
+
+

Licensing & Areas

+
+ {agentData.experience.licensingAreas.map((area, idx) => ( + {area} + ))} + + +3 More + +
+
+
+

Areas in expertise & Years

+
+ {agentData.experience.expertiseYears.map((item, idx) => ( + + {item.area} – {item.years} + + ))} + + +3More + +
+
+
+

Certifications

+
    + {agentData.experience.certifications.map((cert, idx) => ( +
  • + • {cert.name} +

    {cert.org}

    +
  • + ))} +
+
+
+
- {/* Info Cards Section */} -
+ {/* Desktop Experience Section */} +
+

Experience

+
+
+
+

Years in Experience

+
    +
  • {agentData.experience.years}
  • +
+
+
+

Number of contract closed

+
    +
  • {agentData.experience.contracts}
  • +
+
+
+

Licensing & Areas

+
+ {agentData.experience.licensingAreas.slice(0, 5).map((area, idx) => ( + {area} + ))} + {agentData.experience.licensingAreas.length > 5 && ( + +{agentData.experience.licensingAreas.length - 5} More + )} +
+
+
+
+
+
+

Areas in expertise & Years

+
+ {agentData.experience.expertiseYears.slice(0, 3).map((item, idx) => ( + + {item.area} – {item.years} + + ))} + {agentData.experience.expertiseYears.length > 3 && ( + +{agentData.experience.expertiseYears.length - 3}More + )} +
+
+
+

Certifications

+
    + {agentData.experience.certifications.map((cert, idx) => ( +
  • + • {cert.name} +

    {cert.org}

    +
  • + ))} +
+
+
+
+
+ + {/* Info Cards Section - Stack on Mobile */} +
- {/* Specialization Section - Light Gray Background */} + {/* Specialization Section - Single Column on Mobile */}

Specialization

Area Of Expertise and Focus

-
+
-
+
- {/* Testimonials Section */} + {/* Testimonials Section - Single Column on Mobile */}

Testimonials

Clients rate our real estate services 4.9 out of 5 on average, based on recent client reviews.

-
+
{agentData.testimonials.map((testimonial) => (