mirror of
https://github.com/arkorty/B.Tech-Project-III.git
synced 2026-04-19 12:41:48 +00:00
init
This commit is contained in:
26
dmtp/client/app/_sections/reputation-meter.tsx
Normal file
26
dmtp/client/app/_sections/reputation-meter.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user