11"use client" ;
22
3+ import { Palette , Sparkles } from "lucide-react" ;
34import Image from "next/image" ;
45import { SocialIcon } from "react-social-icons" ;
56
6- // unused atm, as the member isnt linked a project on the backend
7- /* export type MemberProfileProject = {
8- id: string;
9- name: string;
10- description?: string;
11- href?: string;
12- }; */
7+ import MemberProjectSection from "../ui/MemberProjectSection" ;
138
149export type MemberProfileData = {
1510 name : string ;
@@ -25,7 +20,6 @@ export type MemberProfileData = {
2520
2621type MemberProfileProps = {
2722 member : MemberProfileData ;
28- //projects?: MemberProfileProject[];
2923} ;
3024
3125function initialsFromName ( name : string ) {
@@ -55,7 +49,7 @@ export function MemberProfile({ member }: MemberProfileProps) {
5549 />
5650 ) : (
5751 < div className = "flex h-full w-full items-center justify-center font-jersey10 text-5xl text-muted-foreground" >
58- { initials }
52+ < p className = "mb-2" > { initials } </ p >
5953 </ div >
6054 ) }
6155 </ div >
@@ -107,23 +101,16 @@ export function MemberProfile({ member }: MemberProfileProps) {
107101 </ div >
108102 </ div >
109103 </ div >
110- { /* Template for Projects section */ }
111- < div className = "m-auto min-h-80 w-11/12" >
112- < h2 className = "mt-7 text-center font-jersey10 text-5xl" > Projects</ h2 >
113- < div className = "m-auto my-5 flex flex-wrap justify-center gap-8" >
114- { /* Div below is a single project card */ }
115- < div className = "w-fit rounded-md p-5" >
116- < div className = "mb-2 h-44 w-96 overflow-clip rounded-md p-5 text-neutral_1" >
117- { /* Image and/or Link to Project */ }
118- </ div >
119- < p className = "max-w-96 font-firaCode text-xl font-semibold" >
120- { /* Project Title */ }
121- </ p >
122- < p className = "line-clamp-1 max-w-96 font-firaCode text-[--light-3]" >
123- { /* Project description */ }
124- </ p >
125- </ div >
126- </ div >
104+ < div className = "m-auto mb-10 min-h-80 w-11/12" >
105+ < h2 className = "mt-7 flex justify-center text-center font-jersey10 text-5xl" >
106+ Games
107+ < Sparkles size = { 32 } className = "ml-2 self-center text-yellow-300" />
108+ </ h2 >
109+ < MemberProjectSection id = { window . location . pathname . slice ( 9 ) } />
110+ < h2 className = "mt-7 flex justify-center text-center font-jersey10 text-5xl" >
111+ Artwork
112+ < Palette size = { 32 } className = "ml-2 self-center text-yellow-300" />
113+ </ h2 >
127114 </ div >
128115 </ >
129116 ) ;
0 commit comments