Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 32 additions & 47 deletions frontend/src/pages/profile/Sections/ProfileNavBar.jsx
Original file line number Diff line number Diff line change
@@ -1,48 +1,33 @@
import {Gamepad2, Calendar, TableProperties, Heart, Trophy} from "lucide-react"
import { Gamepad2, Calendar, TableProperties, Heart, Trophy } from "lucide-react";

export default function ProfileNavBar() {
return (
<div className="bg-[#2c2c2c] flex justify-center gap-8 py-4 border-b-1">
<div className="flex gap-1.5">
<div>
<Gamepad2 />
</div>
<div>
<button className="text-white hover:text-purple-600 transition-colors">Jogos</button>
</div>
</div>
<div className="flex gap-1.5">
<div>
<Calendar />
</div>
<div>
<button className="text-white hover:text-purple-600 transition-colors">Diário</button>
</div>
</div>
<div className="flex gap-1.5">
<div>
<TableProperties />
</div>
<div>
<button className="text-white hover:text-purple-600 transition-colors">Listas</button>
</div>
</div>
<div className="flex gap-1.5">
<div>
<Heart className="text-red-500" />
</div>
<div>
<button className="text-white hover:text-purple-600 transition-colors">Curtidos</button>
</div>
</div>
<div className="flex gap-1.5">
<div>
<Trophy className="text-yellow-500" />
</div>
<div>
<button className="text-white hover:text-purple-600 transition-colors">100%</button>
</div>
</div>
</div>
)
}
const NAV_ITEMS = [
{ id: "jogos", label: "Jogos", icon: Gamepad2, iconClass: "" },
{ id: "diario", label: "Diário", icon: Calendar, iconClass: "" },
{ id: "listas", label: "Listas", icon: TableProperties, iconClass: "" },
{ id: "curtidos", label: "Curtidos", icon: Heart, iconClass: "text-red-500" },
{ id: "100%", label: "100%", icon: Trophy, iconClass: "text-yellow-500" },
];

export default function ProfileNavBar({ activeTab = "jogos", onTabChange }) {
return (
<div className="bg-[#2c2c2c] flex justify-center gap-8 py-4 border-b border-white/20">
{NAV_ITEMS.map(({ id, label, icon: Icon, iconClass }) => {
const isActive = activeTab === id;
return (
<button
key={id}
onClick={() => onTabChange?.(id)}
className={`flex items-center gap-1.5 pb-1 border-b-2 transition-colors ${
isActive
? "text-purple-400 border-purple-500 font-medium"
: "text-white border-transparent hover:text-purple-400"
}`}
>
<Icon className={`w-4 h-4 ${iconClass}`} />
<span>{label}</span>
</button>
);
})}
</div>
);
}
Loading
Loading