@@ -24,17 +24,7 @@ export default function UserProfileClient({ user }: { user: User }) {
2424 }
2525 } ;
2626
27- // Placeholder badges
28- const badges = [
29- { src : "/badges/words.png" , alt : "Words of Affirmation" } ,
30- { src : "/badges/quality.png" , alt : "Quality Time" } ,
31- { src : "/badges/physical.png" , alt : "Physical Touch" } ,
32- { src : "/badges/acts.png" , alt : "Acts of Service" } ,
33- { src : "/badges/receiving.png" , alt : "Receiving Gifts" } ,
34- ] ;
35-
36- // Placeholder tags
37- const tags = [ "#บาร์แจ๊ส" , "#นั่งชิว" , "#หุ้น" ] ;
27+ ;
3828
3929 return (
4030 < div className = "min-h-screen bg-background flex flex-col items-center px-4 pb-8 relative" >
@@ -61,7 +51,7 @@ export default function UserProfileClient({ user }: { user: User }) {
6151 { /* Quote */ }
6252 < div className = "flex justify-center mb-2" >
6353 < div className = "relative bg-white bg-opacity-90 rounded-xl px-6 py-2 text-theme-dark text-base font-semibold shadow-lg border-2 border-theme-pink" style = { { filter : "drop-shadow(0 0 12px #F7B0E0)" } } >
64- < span className = "" > ต้องการใครสักคนที่เข้าใจ </ span >
54+ < span > { user . note } </ span >
6555 </ div >
6656 </ div >
6757 { /* Avatar with badge */ }
@@ -82,28 +72,22 @@ export default function UserProfileClient({ user }: { user: User }) {
8272 </ div >
8373 { /* Tags */ }
8474 < div className = "flex justify-center gap-3 mb-4" >
85- { tags . map ( ( tag , i ) => (
75+ { user . preferences ?. favoriteCategories ? .map ( ( tag , i ) => (
8676 < span key = { tag } className = { `px-5 py-2 rounded-full text-base font-semibold ${ i === 2 ? 'bg-muted text-white' : 'bg-gradient-to-r from-theme-pink to-theme-purple text-white' } shadow-md` } >
87- { tag }
77+ # { tag }
8878 </ span >
8979 ) ) }
9080 </ div >
9181 { /* Badges */ }
92- < div className = "flex flex-wrap justify-center gap-4 mb-8 max-w-xs mx-auto" >
93- { badges . map ( ( badge ) => (
94- < div key = { badge . alt } className = "w-24 h-24 flex items-center justify-center" >
95- < Image src = { badge . src } alt = { badge . alt } width = { 90 } height = { 90 } className = "object-contain" />
96- </ div >
97- ) ) }
98- </ div >
82+ < Image src = "/images/badge.png" alt = "skitger" width = { 300 } height = { 300 } />
9983 { /* Action Button */ }
10084 < button
10185 onClick = { handleFriendRequest }
10286 disabled = { isLoading }
10387 className = "w-full max-w-md mx-auto py-4 text-xl font-bold rounded-full bg-gradient-to-r from-[#F7B0E0] to-[#5B5BFF] text-white shadow-xl hover:from-[#FE8CC5] hover:to-[#9F45B0] transition mt-2 disabled:opacity-50"
10488 style = { { boxShadow : '0 4px 24px 0 #0002' } }
10589 >
106- { isLoading ? 'กำลังรอการตอบรับ...' : 'ขอเป็นเพื่อนก่อนน้า :) ' }
90+ { isLoading ? 'กำลังรอการตอบรับ...' : 'ส่งคำขอเป็นเพื่อน ' }
10791 </ button >
10892 </ div >
10993 ) ;
0 commit comments