-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ca7ccc
commit 06ad492
Showing
4 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,8 @@ import NavigationBar from "@/components/NavigationBar"; | |
import UserProfileButton from "@/components/UserProfileButton"; | ||
import CoWorkersCarousel from "@/components/CoWorkersCarousel"; | ||
import ProjectsCarousel from "@/components/ProjectsCarousel"; | ||
import ProjectCard from "@/components/ProjectCard"; | ||
import Tooltip from "@/components/Tooltip"; | ||
import Badge from "@/components/Badge"; | ||
import Image from "next/image"; | ||
import JobSVG from "@/public/Job-Profile-Image.svg"; | ||
|
||
|
@@ -11,6 +12,22 @@ const Profile = () => { | |
const userEmail = "[email protected]"; | ||
const userRole = "Software Engineer"; | ||
const userDepartment = "IT Department"; | ||
|
||
const Strengths = [ | ||
"Detail Attention", | ||
"Good Communication", | ||
"Punctuallity", | ||
"Creative", | ||
"Discipline", | ||
"Proactive", | ||
]; | ||
const oportunityAreas = [ | ||
"Lack of Communication", | ||
"Ineffective Time Management", | ||
"Bad Work Team", | ||
"Procrastination", | ||
]; | ||
|
||
return ( | ||
<main className=" h-dvh w-dvw overflow-hidden"> | ||
<NavigationBar /> | ||
|
@@ -42,7 +59,9 @@ const Profile = () => { | |
<div className="mb-6"> | ||
<div className="mx-auto flex justify-between"> | ||
<h3 className="text-2xl font-medium">Co-workers</h3> | ||
<p className="self-center text-sm text-grayText">Show More</p> | ||
<p className="cursor-pointer self-center text-sm text-grayText"> | ||
Show More | ||
</p> | ||
</div> | ||
<div className="mt-2"> | ||
<CoWorkersCarousel /> | ||
|
@@ -66,13 +85,31 @@ const Profile = () => { | |
<div className="w-5/12"> | ||
{/* Strenghts */} | ||
<div className="mx-auto flex justify-between"> | ||
<h3 className="text-2xl font-medium">Strenghs</h3> | ||
<p className="self-center text-sm text-grayText">Show More</p> | ||
<h3 className="text-2xl font-medium">Strengths</h3> | ||
<p className="cursor-pointer self-center text-sm text-grayText"> | ||
Show More | ||
</p> | ||
</div> | ||
<div className="mb-10 mt-5 flex flex-wrap gap-5"> | ||
{Strengths.map((strength, index) => ( | ||
<Tooltip message="Lorem ipsum dolor sit amet" key={index}> | ||
<Badge text={strength} /> | ||
</Tooltip> | ||
))} | ||
</div> | ||
{/* Oportunity Areas */} | ||
<div className="mx-auto flex justify-between"> | ||
<h3 className="text-2xl font-medium">Oportunity Areas</h3> | ||
<p className="self-center text-sm text-grayText">Show More</p> | ||
<p className="cursor-pointer self-center text-sm text-grayText"> | ||
Show More | ||
</p> | ||
</div> | ||
<div className="mb-10 mt-5 flex flex-wrap gap-5"> | ||
{oportunityAreas.map((area, index) => ( | ||
<Tooltip message="Lorem ipsum dolor sit amet" key={index}> | ||
<Badge text={area} /> | ||
</Tooltip> | ||
))} | ||
</div> | ||
</div> | ||
</section> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
|
||
interface BadgeProps { | ||
text: string; | ||
} | ||
|
||
export default function Badge({ text }: BadgeProps) { | ||
return ( | ||
<div className="w-fit rounded-xl bg-white px-3 py-2 text-sm drop-shadow-lg"> | ||
<p>{text}</p> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
|
||
interface TooltipProps { | ||
message: string; | ||
children: React.ReactNode; | ||
} | ||
|
||
export default function Tooltip({ message, children }: TooltipProps) { | ||
return ( | ||
<div className="group relative flex max-w-max flex-col items-center justify-center"> | ||
{children} | ||
<div className="absolute bottom-7 left-1/2 z-10 ml-auto mr-auto min-w-max -translate-x-1/2 rotate-180 scale-0 transform rounded-xl px-3 py-2 text-xs font-medium transition-all duration-500 group-hover:scale-100"> | ||
<div className="flex max-w-xs flex-col items-center shadow-lg"> | ||
<div className="clip-bottom h-2 w-4 bg-primary/90"></div> | ||
<div className="w-[25ch] rotate-180 rounded bg-primary/90 p-2 text-center text-xs text-white"> | ||
{message} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |