add OnlinePlayersPanel in Profile

This commit is contained in:
2025-12-06 21:08:26 +05:00
parent 6a7169e2ae
commit 5efeb9a5c1
7 changed files with 379 additions and 5 deletions

View File

@ -386,11 +386,10 @@ export default function Marketplace() {
minHeight: '10vw',
maxHeight: '10vw',
objectFit: 'contain',
bgcolor: 'white',
p: '1vw',
imageRendering: 'pixelated',
}}
image={`/minecraft/${item.material.toLowerCase()}.png`}
image={`https://cdn.minecraft.popa-popa.ru/textures/${item.material.toLowerCase()}.png`}
alt={item.material}
/>
<CardContent>

View File

@ -384,7 +384,6 @@ export const News = () => {
transition:
'transform 0.25s ease, box-shadow 0.25s.ease, border-color 0.25s ease',
'&:hover': {
transform: 'translateY(-4px)',
boxShadow: '0 24px 60px rgba(0, 0, 0, 0.9)',
borderColor: 'rgba(242,113,33,0.5)',
},

View File

@ -23,6 +23,7 @@ import {
import CapeCard from '../components/CapeCard';
import { FullScreenLoader } from '../components/FullScreenLoader';
import { OnlinePlayersPanel } from '../components/OnlinePlayersPanel';
export default function Profile() {
const fileInputRef = useRef<HTMLInputElement>(null);
@ -449,6 +450,7 @@ export default function Profile() {
))}
</Box>
</Box>
<OnlinePlayersPanel currentUsername={username} />
</Box>
</>
)}