change some color stuff
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m34s
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m34s
This commit is contained in:
parent
d62b6524f7
commit
be25896c5e
@ -54,7 +54,7 @@ export default function Footer() {
|
|||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
key={index}
|
key={index}
|
||||||
className="px-2 text-pp hover:brightness-[66%] transition-all transform-gpu"
|
className="px-2 text-ssr hover:brightness-[66%] transition-all transform-gpu"
|
||||||
href={item.link}
|
href={item.link}
|
||||||
target={item.openInNewTab ? "_blank" : undefined}
|
target={item.openInNewTab ? "_blank" : undefined}
|
||||||
>
|
>
|
||||||
|
@ -36,7 +36,7 @@ export function LeaderboardInfo({ leaderboard, beatSaverMap }: LeaderboardInfoPr
|
|||||||
</p>
|
</p>
|
||||||
</FallbackLink>
|
</FallbackLink>
|
||||||
<p className="text-sm text-gray-400">
|
<p className="text-sm text-gray-400">
|
||||||
By <span className="text-pp">{leaderboard.songAuthorName}</span>
|
By <span className="text-ssr">{leaderboard.songAuthorName}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ export function LeaderboardInfo({ leaderboard, beatSaverMap }: LeaderboardInfoPr
|
|||||||
<p>
|
<p>
|
||||||
Mapper:{" "}
|
Mapper:{" "}
|
||||||
<FallbackLink href={getBeatSaverMapperProfileUrl(beatSaverMap)}>
|
<FallbackLink href={getBeatSaverMapperProfileUrl(beatSaverMap)}>
|
||||||
<span className="text-pp font-semibold hover:brightness-[66%] transform-gpu transition-all">
|
<span className="text-ssr font-semibold hover:brightness-[66%] transform-gpu transition-all">
|
||||||
{leaderboard.levelAuthorName}
|
{leaderboard.levelAuthorName}
|
||||||
</span>
|
</span>
|
||||||
</FallbackLink>
|
</FallbackLink>
|
||||||
|
@ -62,7 +62,7 @@ export default function LeaderboardScore({ score, leaderboard, claimedPlayer }:
|
|||||||
|
|
||||||
{/* Score PP */}
|
{/* Score PP */}
|
||||||
{leaderboard.stars > 0 && (
|
{leaderboard.stars > 0 && (
|
||||||
<td className="px-4 py-2 text-center text-pp whitespace-nowrap">{formatPp(score.pp)}pp</td>
|
<td className="px-4 py-2 text-center text-ssr whitespace-nowrap">{formatPp(score.pp)}pp</td>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Score Modifiers */}
|
{/* Score Modifiers */}
|
||||||
|
@ -104,7 +104,7 @@ export default function Mini({ type, player, shouldUpdate }: MiniProps) {
|
|||||||
<PlayerInfo player={playerRanking} highlightedPlayer={player} hideCountryFlag hoverBrightness={false} />
|
<PlayerInfo player={playerRanking} highlightedPlayer={player} hideCountryFlag hoverBrightness={false} />
|
||||||
</div>
|
</div>
|
||||||
<div className="inline-flex min-w-[11.5em] gap-2 items-center">
|
<div className="inline-flex min-w-[11.5em] gap-2 items-center">
|
||||||
<p className="text-pp text-right">{formatPp(playerRanking.pp)}pp</p>
|
<p className="text-ssr text-right">{formatPp(playerRanking.pp)}pp</p>
|
||||||
{playerRanking.id !== player.id && (
|
{playerRanking.id !== player.id && (
|
||||||
<p className={`text-xs text-right ${ppDifference > 0 ? "text-green-400" : "text-red-400"}`}>
|
<p className={`text-xs text-right ${ppDifference > 0 ? "text-green-400" : "text-red-400"}`}>
|
||||||
{ppDifference > 0 ? "+" : ""}
|
{ppDifference > 0 ? "+" : ""}
|
||||||
|
@ -28,7 +28,7 @@ export function PlayerRanking({ player, isCountry }: PlayerRankingProps) {
|
|||||||
<td className="flex items-center gap-2 px-4 py-2">
|
<td className="flex items-center gap-2 px-4 py-2">
|
||||||
<PlayerInfo player={player} highlightedPlayer={claimedPlayer} />
|
<PlayerInfo player={player} highlightedPlayer={claimedPlayer} />
|
||||||
</td>
|
</td>
|
||||||
<td className="px-4 py-2 text-pp text-center">{formatPp(player.pp)}pp</td>
|
<td className="px-4 py-2 text-ssr text-center">{formatPp(player.pp)}pp</td>
|
||||||
<td className="px-4 py-2 text-center">{formatNumberWithCommas(player.scoreStats.totalPlayCount)}</td>
|
<td className="px-4 py-2 text-center">{formatNumberWithCommas(player.scoreStats.totalPlayCount)}</td>
|
||||||
<td className="px-4 py-2 text-center">{formatNumberWithCommas(player.scoreStats.rankedPlayCount)}</td>
|
<td className="px-4 py-2 text-center">{formatNumberWithCommas(player.scoreStats.rankedPlayCount)}</td>
|
||||||
<td className="px-4 py-2 text-center">{player.scoreStats.averageRankedAccuracy.toFixed(2) + "%"}</td>
|
<td className="px-4 py-2 text-center">{player.scoreStats.averageRankedAccuracy.toFixed(2) + "%"}</td>
|
||||||
|
@ -47,7 +47,7 @@ export default function ScoreFeed() {
|
|||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
Set by{" "}
|
Set by{" "}
|
||||||
<Link href={`/player/${player.id}`}>
|
<Link href={`/player/${player.id}`}>
|
||||||
<span className="text-pp hover:brightness-[66%] transition-all transform-gpu">{player.name}</span>
|
<span className="text-ssr hover:brightness-[66%] transition-all transform-gpu">{player.name}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</p>
|
</p>
|
||||||
<Score
|
<Score
|
||||||
|
@ -59,7 +59,7 @@ export default function ScoreSongInfo({ leaderboard, beatSaverMap }: Props) {
|
|||||||
<div className="overflow-y-clip">
|
<div className="overflow-y-clip">
|
||||||
<Link
|
<Link
|
||||||
href={`/leaderboard/${leaderboard.id}`}
|
href={`/leaderboard/${leaderboard.id}`}
|
||||||
className="cursor-pointer select-none hover:brightness-[66%] transform-gpu transition-all text-pp w-fit"
|
className="cursor-pointer select-none hover:brightness-[66%] transform-gpu transition-all text-ssr w-fit"
|
||||||
>
|
>
|
||||||
{leaderboard.songName} {leaderboard.songSubName}
|
{leaderboard.songName} {leaderboard.songSubName}
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -17,7 +17,7 @@ export default function ScoreRankInfo({ score, leaderboard }: Props) {
|
|||||||
<div className="flex gap-1 items-center">
|
<div className="flex gap-1 items-center">
|
||||||
<GlobeAmericasIcon className="w-5 h-5" />
|
<GlobeAmericasIcon className="w-5 h-5" />
|
||||||
<Link href={`/leaderboard/${leaderboard.id}/${getPageFromRank(score.rank, 12)}`}>
|
<Link href={`/leaderboard/${leaderboard.id}/${getPageFromRank(score.rank, 12)}`}>
|
||||||
<p className="text-pp cursor-default hover:brightness-[66%] transition-all transform-gpu cursor-pointer">
|
<p className="text-ssr cursor-default hover:brightness-[66%] transition-all transform-gpu cursor-pointer">
|
||||||
#{formatNumberWithCommas(score.rank)}
|
#{formatNumberWithCommas(score.rank)}
|
||||||
</p>
|
</p>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -36,7 +36,7 @@ export function DailyChange({ type, change, tooltip, format }: DailyChangeProps)
|
|||||||
const value = (
|
const value = (
|
||||||
<p className={`text-sm ${change > 0 ? "text-green-400" : "text-red-400"}`}>
|
<p className={`text-sm ${change > 0 ? "text-green-400" : "text-red-400"}`}>
|
||||||
{change > 0 ? "+" : ""}
|
{change > 0 ? "+" : ""}
|
||||||
{formatValue(change)}
|
{`${formatValue(change)}${type.value == "pp" ? "pp" : ""}`}
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -11,6 +11,9 @@ const config: Config = {
|
|||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
pp: "#4858ff",
|
pp: "#4858ff",
|
||||||
|
ssr: {
|
||||||
|
DEFAULT: "#6773ff",
|
||||||
|
},
|
||||||
background: "hsl(var(--background))",
|
background: "hsl(var(--background))",
|
||||||
foreground: "hsl(var(--foreground))",
|
foreground: "hsl(var(--foreground))",
|
||||||
card: {
|
card: {
|
||||||
|
Reference in New Issue
Block a user