Change to Border
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2024-08-13 12:19:04 +02:00
Ursprung ee8eeb8ad1
Commit 0cf9a8a48d

Datei anzeigen

@ -39,24 +39,24 @@ const prefixColorMap: {
}; };
} = { } = {
PREFIX_ADMIN: { PREFIX_ADMIN: {
from: "from-red-600", from: "border-red-600",
to: "to-red-800", to: "border-red-800",
}, },
PREFIX_DEVELOPER: { PREFIX_DEVELOPER: {
from: "from-sky-600", from: "border-sky-600",
to: "to-sky-800", to: "border-sky-800",
}, },
PREFIX_MODERATOR: { PREFIX_MODERATOR: {
from: "from-amber-600", from: "border-amber-600",
to: "to-amber-800", to: "border-amber-800",
}, },
PREFIX_SUPPORTER: { PREFIX_SUPPORTER: {
from: "from-blue-700", from: "border-blue-700",
to: "to-blue-900", to: "border-blue-900",
}, },
PREFIX_BUILDER: { PREFIX_BUILDER: {
from: "from-green-500", from: "border-green-500",
to: "to-green-700", to: "border-green-700",
}, },
}; };
--- ---
@ -183,7 +183,7 @@ const prefixColorMap: {
{players.map((v, index) => ( {players.map((v, index) => (
<div class="inline-flex flex-col justify-end"> <div class="inline-flex flex-col justify-end">
{index == 0 ? <h2 class="dark:text-white text-4xl font-bold ml-4">{t("home.prefix." + prefix.replace("PREFIX_", "").toLowerCase())}</h2> : null} {index == 0 ? <h2 class="dark:text-white text-4xl font-bold ml-4">{t("home.prefix." + prefix.replace("PREFIX_", "").toLowerCase())}</h2> : null}
<Card extraClasses={`pt-8 pb-10 px-8 w-fit bg-gradient-to-br ${prefixColorMap[prefix].from} ${prefixColorMap[prefix].to}`} client:idle> <Card extraClasses={`pt-8 pb-10 px-8 w-fit ${prefixColorMap[prefix].from} dark:${prefixColorMap[prefix].to}`} client:idle> <!-- bg-gradient-to-br ${prefixColorMap[prefix].from} ${prefixColorMap[prefix].to} -->
<figure class="flex flex-col items-center" style="width: 150px"> <figure class="flex flex-col items-center" style="width: 150px">
<figcaption class="text-center mb-4 text-2xl">{v.name}</figcaption> <figcaption class="text-center mb-4 text-2xl">{v.name}</figcaption>
<Image src={`${import.meta.env.PUBLIC_API_SERVER}/data/skin/${v.uuid}`} <Image src={`${import.meta.env.PUBLIC_API_SERVER}/data/skin/${v.uuid}`}