diff --git a/app/profile/[id]/page.tsx b/app/profile/[id]/page.tsx index a7c49a6..ee12eee 100644 --- a/app/profile/[id]/page.tsx +++ b/app/profile/[id]/page.tsx @@ -7,19 +7,18 @@ import { BsInstagram } from "react-icons/bs"; import { CiTwitter } from "react-icons/ci"; import { TfiWorld } from "react-icons/tfi"; import { TiStarOutline } from "react-icons/ti"; +import freelancerProfiles from "@/mockup/freelancerProfilesMockup"; +import { findFreelancerProfile } from "@/lib/utils"; - - - -// static template, waiting for next mockup feature... i feel bad for the "a propos double paragraphes mapping logic" -export default function FreelancerPage() { +export default async function FreelancerPage({ params }: { params: { id: string } }) { + const profile: Mockup.IFreelancerProfile | null = await findFreelancerProfile(freelancerProfiles, params.id); return ( -
Jerome Bell
-Product Designer
+{profile?.firstName} {profile?.lastName}
+{profile?.role}
- il y a 2 jours + {profile?.lastEmploymentString}
- Product Development + {profile?.freelancerDomain}
Marketing • Plein Temps
+{profile?.freelancerExpertise} • {profile?.timeEmployment}
Phone
Siteweb
Profile d'applicant
@@ -147,25 +146,24 @@ export default function FreelancerPage() {Nom complet
-Jerome Bell
+{profile?.firstName} {profile?.lastName}
Date de naissance
-March 23, 1995 (26 y.o)
+{profile?.birthDate}
Address
-4517 Washington Ave. Manchester, Kentucky 39495
+{profile?.address}
Sex
-Homme
+{profile?.gender}
Language
-English, French
+{profile?.languages}
à propos
I'm a product designer + filmmaker currently working remotely at Twitter from beautiful Manchester, United Kingdom. I'm passionate about designing digital products that have a positive impact on the world
-For 10 years, I've specialised in interface, experience & interaction design as well as working in user research and product strategy for product agencies, big tech companies & start-ups.
+{profile?.description}
Actuellement
-Product Designer
+{profile?.role}
Plus haute qualification obtenue
-Bachelors in Engineering
+{profile?.academicCareer}
Experience
-4 ans
+{profile?.experience}
Skills
Project Management
-Copywriting
-English
+ { + profile?.skills.map((skill, index) => ( +{skill}
+ )) + }