Try and make this look how it did with the launcher
This commit is contained in:
2 files changed
+13
-5
No files matched your search
@@ -1,5 +1,6 @@
|
||||
'use client'
|
||||
|
||||
import './styles.css'
|
||||
import { BackButton } from '@/components/BackButton'
|
||||
import { DiscordButton } from '@/components/DiscordButton'
|
||||
import { Suspense, useCallback, useEffect, useRef, useState } from 'react'
|
||||
@@ -93,7 +94,9 @@ function BerryDashLeaderboardsSuspence () {
|
||||
setGettingEntries(true)
|
||||
try {
|
||||
if (selected == 3 || selected == 4) {
|
||||
const result = await axios.get('/api/berrydash/account?username=')
|
||||
const result = await axios.get(
|
||||
'https://games.lncvrt.xyz/api/berrydash/account?username='
|
||||
)
|
||||
if (result.data.success) {
|
||||
let accounts = result.data.data as Account[]
|
||||
|
||||
@@ -118,7 +121,7 @@ function BerryDashLeaderboardsSuspence () {
|
||||
}
|
||||
} else {
|
||||
const result = await axios.get(
|
||||
'/api/berrydash/leaderboard/' +
|
||||
'https://games.lncvrt.xyz/api/berrydash/leaderboard/' +
|
||||
(selected == 0
|
||||
? 'score'
|
||||
: selected == 1
|
||||
@@ -215,13 +218,13 @@ function BerryDashLeaderboardsSuspence () {
|
||||
return (
|
||||
<div
|
||||
key={item.id}
|
||||
className='flex justify-between items-center'
|
||||
className='leaderboard-entry flex justify-between items-center'
|
||||
>
|
||||
<div className='flex items-center gap-1'>
|
||||
<Image
|
||||
src={
|
||||
!item.customIcon
|
||||
? `/api/berrydash/render-icon?icon=${
|
||||
? `https://games.lncvrt.xyz/api/berrydash/render-icon?icon=${
|
||||
item.icon == 1
|
||||
? GetIconForUser(item.id)
|
||||
: item.icon
|
||||
@@ -232,7 +235,7 @@ function BerryDashLeaderboardsSuspence () {
|
||||
}&overlayR=${item.overlayColor[0]}&overlayG=${
|
||||
item.overlayColor[1]
|
||||
}&overlayB=${item.overlayColor[2]}`
|
||||
: `/api/berrydash/icon-marketplace/icon?id=${item.customIcon}&raw=true`
|
||||
: `https://games.lncvrt.xyz/api/berrydash/icon-marketplace/icon?id=${item.customIcon}&raw=true`
|
||||
}
|
||||
className='pointer-events-none scale-x-[-1]'
|
||||
width={48}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
.leaderboard-entry {
|
||||
@apply rounded-lg text-lg px-1 py-0.5 transition-colors bg-(--col2) hover:bg-(--col3) border border-(--col4) hover:border-(--col5) cursor-pointer;
|
||||
}
|
||||
Reference in new issue
Block a user