Updated display name and heads display

This commit is contained in:
2025-09-07 22:51:48 +02:00
parent e0a54114d0
commit fbfd8b8bbc
4 changed files with 14 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
import { getColor } from "@/lib/colors"
import { head } from "@/lib/hypixel/general"
import { Player } from "@/lib/schema/player"
import Image from "next/image"
import Link from "next/link"
@@ -9,8 +10,9 @@ type MonthlyPackageRank = Player["player"]["monthlyPackageRank"]
type RankColor = Player["player"]["monthlyRankColor"]
export default function DisplayName(
{ ign, rank, monthly, rankColor, plusColor, guildTag, tagColor, specialRank, lastLogin, lastLogout, prefix }: {
{ ign, uuid, rank, monthly, rankColor, plusColor, guildTag, tagColor, specialRank, lastLogin, lastLogout, prefix }: {
ign: string
uuid: string
rank: NewPackageRank
monthly: MonthlyPackageRank
rankColor: RankColor
@@ -25,11 +27,11 @@ export default function DisplayName(
) {
return (
<div className="flex gap-2 items-center mt-35">
<Link href={`/player/${ign}`}>
<Link href={`https://namemc.com/profile/${uuid}`}>
<Image
src={`https://minotar.net/helm/${ign}/36.png`}
width={36}
height={36}
src={head(uuid, 40)}
width={40}
height={40}
alt={ign}
unoptimized
className="shadow-2xl"