Files
B.Tech-Project-III/dmtp/client/app/_sections/reputation-meter.tsx
2026-04-05 00:43:23 +05:30

27 lines
985 B
TypeScript

export function ReputationMeter() {
const reputation = 78
const nextLevel = 85
return (
<div className="mb-8">
<div className="flex items-center justify-between mb-3">
<div>
<p className="text-sm text-foreground/60 mb-1">Reputation Score</p>
<p className="text-3xl font-bold">{reputation}</p>
</div>
<div className="text-right">
<p className="text-sm text-foreground/60 mb-1">Next Level</p>
<p className="text-lg font-semibold text-green-400">{nextLevel}</p>
</div>
</div>
<div className="w-full bg-black/50 h-3 overflow-hidden border border-green-500/20">
<div
className="h-full bg-linear-to-r from-green-500 to-green-600 transition-all duration-500"
style={{ width: `${(reputation / nextLevel) * 100}%` }}
/>
</div>
<p className="text-sm text-foreground/60 mt-2">{nextLevel - reputation} points until next level</p>
</div>
)
}