diff --git a/app/(route)/me/_components/badge-card.tsx b/app/(route)/me/_components/badge-card.tsx index a5c8ad8..de85ad7 100644 --- a/app/(route)/me/_components/badge-card.tsx +++ b/app/(route)/me/_components/badge-card.tsx @@ -1,18 +1,18 @@ import Image from 'next/image' -export default function BadgeCard() { +interface BadgeCardProps { + imageUrl: string + title: string + description: string +} + +export default function BadgeCard({ imageUrl, title, description }: BadgeCardProps) { return (
- +
- 탐사 자격증 보유자 - 도달 여행을 시작했어요 + {title} + {description}
) diff --git a/app/(route)/me/page.tsx b/app/(route)/me/page.tsx index 67d48e3..6a1f254 100644 --- a/app/(route)/me/page.tsx +++ b/app/(route)/me/page.tsx @@ -1,15 +1,35 @@ 'use client' import Image from 'next/image' +import Link from 'next/link' import RightArrowCircleIcon from '@/app/_components/icons/RightArrowCircleIcon' import { useUserContext } from '@/app/_components/providers/UserProvider' +import { ROUTE } from '@/app/_constants/route' import { CHAMPION } from '../sign-up/page' import BadgeCard from './_components/badge-card' import { useUserStatusQuery } from './queries' +const BADGES = [ + { + imageUrl: 'https://dodals3.s3.ap-northeast-2.amazonaws.com/asset/badge1.png', + title: '달 탐사 자격증', + description: '도달 여행을 시작했어요', + }, + { + imageUrl: 'https://dodals3.s3.ap-northeast-2.amazonaws.com/asset/badge2.png', + title: 'Jr.암스트롱', + description: '다섯 걸음 걸었어요', + }, + { + imageUrl: 'https://dodals3.s3.ap-northeast-2.amazonaws.com/asset/badge3.png', + title: '마이 퍼스트 문', + description: '도달 챌린지 첫 우승', + }, +] + export default function MePage() { const userStatusQuery = useUserStatusQuery() const { user } = useUserContext() @@ -54,11 +74,13 @@ export default function MePage() {
달달 뱃지 - + + +
- {new Array(3).fill(0).map((_, index) => { - return + {BADGES.map((badge) => { + return })}
diff --git a/app/_constants/route.ts b/app/_constants/route.ts index a95fff5..7d4219c 100644 --- a/app/_constants/route.ts +++ b/app/_constants/route.ts @@ -6,6 +6,7 @@ export const ROUTE = { CHALLENGE_DETAIL: (id: number) => `/challenge/${id}`, ALARM: '/alarm', ME: '/me', + BADGES: '/badges', OAUTH: { KAKAO: { CALLBACK: '/oauth/callback/kakao',