Small changes

This commit is contained in:
2025-09-06 23:04:07 +02:00
parent a3da8a892c
commit e604294208
11 changed files with 14 additions and 9 deletions

View File

@@ -26,6 +26,7 @@
"zod": "^4.0.10",
},
"devDependencies": {
"@designbycode/tailwindcss-text-stroke": "^1.3.0",
"@eslint/eslintrc": "^3",
"@next/eslint-plugin-next": "15.5.2",
"@tailwindcss/postcss": "^4",
@@ -59,6 +60,8 @@
"@babel/types": ["@babel/types@7.28.2", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" } }, "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ=="],
"@designbycode/tailwindcss-text-stroke": ["@designbycode/tailwindcss-text-stroke@1.3.0", "", { "peerDependencies": { "tailwindcss": ">=3.0.0 || >=3.0.0-alpha.1" } }, "sha512-EyZi2EDv+/v55JF7OFrPUUJHr0r/C9bZtvhWNpamMj5MjAEMqBMhcO1ZW9aXAD2viszgtlnYLIta80NJtsuy6w=="],
"@dprint/darwin-arm64": ["@dprint/darwin-arm64@0.50.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-NNKf3dxXn567pd/hpCVLHLbC0dI7s3YvQnUEwjRTOAQVMp6O7/ME+Tg1RPGsDP1IB+Y2fIYSM4qmG02zQrqjAQ=="],
"@dprint/darwin-x64": ["@dprint/darwin-x64@0.50.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-PcY75U3UC/0CLOxWzE0zZJZ2PxzUM5AX2baYL1ovgDGCfqO1H0hINiyxfx/8ncGgPojWBkLs+zrcFiGnXx7BQg=="],

View File

@@ -34,6 +34,7 @@
"zod": "^4.0.10"
},
"devDependencies": {
"@designbycode/tailwindcss-text-stroke": "^1.3.0",
"@eslint/eslintrc": "^3",
"@next/eslint-plugin-next": "15.5.2",
"@tailwindcss/postcss": "^4",

View File

@@ -4,7 +4,7 @@ export default function Home() {
return (
<div className="flex flex-col items-center min-h-screen">
<div className="mt-[20vh]">
<h1 className="text-4xl font-bold text-center">Stats Hypixel</h1>
<h1 className="text-4xl font-bold text-center">Hypixel Stats</h1>
</div>
<SearchBar />
</div>

View File

@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
import { bedwarsLevelColors, getBedwarsStar, getPrestigeName, getTextColor } from "@/lib/hypixel/bedwars/bedwars"
import { getBWLevelForExp } from "@/lib/hypixel/bedwars/level"
import { cn } from "@/lib/utils"
import GenericProgress from "../../_components/GenericProgress"
import { GenericProgress } from "../../_components/GenericProgress"
import Multicolored from "../../_components/Multicolored"
export function BedwarsLevel({ xp }: { xp: number }) {

View File

@@ -1,7 +1,7 @@
import { getBuildBattleRank, getNextBuildBattleRank } from "@/lib/hypixel/build-battle/general"
import { getProgress } from "@/lib/hypixel/general"
import { cn } from "@/lib/utils"
import GenericProgress from "../../_components/GenericProgress"
import { GenericProgress } from "../../_components/GenericProgress"
export default function BuildBattleTitleProgress({ score }: { score: number }) {
const current = getBuildBattleRank(score)

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters"
import { getProgress } from "@/lib/hypixel/general"
import { getPrestigeColor, getXpForPrestige } from "@/lib/hypixel/pit/general"
import GenericProgress from "../../_components/GenericProgress"
import { GenericProgress } from "../../_components/GenericProgress"
export default function PitProgress({ prestige, xp }: { prestige: number, xp: number }) {
const presColor = getPrestigeColor(prestige)

View File

@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
import { getSkywarsLevel } from "@/lib/hypixel/skywars/level"
import { getPrestige, getSkyWarsIcon } from "@/lib/hypixel/skywars/skywars"
import { cn } from "@/lib/utils"
import GenericProgress from "../../_components/GenericProgress"
import { GenericProgress } from "../../_components/GenericProgress"
import { HeadsBar, PresigeousHeads } from "./client"
type SkywarsHeadsProps = {

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters"
import { getProgress } from "@/lib/hypixel/general"
import { getNextUhcStar, getUhcStar } from "@/lib/hypixel/uhc/level"
import GenericProgress from "../../_components/GenericProgress"
import { GenericProgress } from "../../_components/GenericProgress"
export default function UHCProgress({ score }: { score: number }) {
const current = getUhcStar(score)

View File

@@ -1,5 +1,6 @@
@import "tailwindcss";
@import "tw-animate-css";
@plugin "@designbycode/tailwindcss-text-stroke";
@custom-variant dark (&:is(.dark *));

View File

@@ -8,8 +8,8 @@ import type { Metadata } from "next"
export const metadata: Metadata = {
title: {
template: "%s | Stats Hypixel",
default: "Stats Hypixel"
template: "%s | Hypixel Stats",
default: "Hypixel Stats"
}
}

View File

@@ -34,7 +34,7 @@ export default function DisplayName(
className="shadow-2xl"
/>
</Link>
<h1 className="text-3xl font-bold">
<h1 className="text-3xl font-bold text-stroke text-stroke-foreground dark:text-stroke-transparent">
<PlayerRank rank={rank} monthly={monthly} plusColor={plusColor} rankColor={rankColor} specialRank={specialRank} />{" "}
<PlayerIGN ign={ign} rank={rank} monthly={monthly} rankColor={rankColor} specialRank={specialRank} />{" "}
<GuildTag tag={guildTag} tagColor={tagColor} ign={ign} />