"use client";
import { Trophy, Timer, Zap, Target, Calendar, Award } from "lucide-react";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import ProfileStatCard from "@/app/profile/components/ProfileStatCard";
import Rank from "@/components/app/Rank";
export default function Profile() {
const user = {
username: "speedmaster_x",
joinDate: "Jan 2024",
rank: 1,
totalRuns: 2341,
pb: "2:34.21",
cleanRuns: 892,
avgTime: "3:12.45",
favoriteCategory: "Any%",
};
return (
{/* Profile Header */}
{/* Avatar */}
{user.username[0].toUpperCase()}
{/* User Info */}
{user.username}
Runner since {user.joinDate}
World Record Holder
{user.favoriteCategory} Main
{/* PB */}
{/* Stats */}
{/* Recent Runs */}
Recent Runs
{recentRuns.map((run, i) => (
{run.category}
{run.date}
))}
{/* Achievements + PB */}
Achievements
5 / 6
{achievements.map((a, i) => (
))}
{/* PB History */}
PB History
{pbHistory.map((pb, i) => (
{pb.time}
{pb.date}
{i !== pbHistory.length - 1 && (
)}
))}
);
}
/* ---------------- data ---------------- */
const recentRuns = [
{
id: 1,
category: "Any%",
time: "2:38.54",
date: "2 hours ago",
status: "clean",
},
{
id: 2,
category: "Any%",
time: "2:45.12",
date: "3 hours ago",
status: "clean",
},
{
id: 3,
category: "Easy Only",
time: "1:23.45",
date: "5 hours ago",
status: "clean",
},
{
id: 4,
category: "Any%",
time: "--:--",
date: "5 hours ago",
status: "reset",
},
{
id: 5,
category: "Any%",
time: "2:51.33",
date: "Yesterday",
status: "clean",
},
{
id: 6,
category: "No DP",
time: "3:45.67",
date: "Yesterday",
status: "clean",
},
];
const achievements = [
{
name: "First Blood",
description: "Complete your first run",
icon: Zap,
unlocked: true,
},
{
name: "Sub-3 Club",
description: "Finish a run under 3 minutes",
icon: Timer,
unlocked: true,
},
{
name: "World Record",
description: "Hold a world record",
icon: Trophy,
unlocked: true,
},
{
name: "Century",
description: "Complete 100 runs",
icon: Target,
unlocked: true,
},
{
name: "Perfectionist",
description: "100 clean runs",
icon: Award,
unlocked: false,
},
{
name: "Marathon",
description: "10 hours of running",
icon: Calendar,
unlocked: true,
},
];
const pbHistory = [
{ time: "2:34.21", date: "Today" },
{ time: "2:38.54", date: "3 days ago" },
{ time: "2:45.12", date: "1 week ago" },
{ time: "2:52.33", date: "2 weeks ago" },
];