generated from dwd/boilarplate-remix-tailwind-antd
s1
This commit is contained in:
@@ -24,6 +24,7 @@ export default function TopPerformers() {
|
||||
return res.json();
|
||||
})
|
||||
.then(data => {
|
||||
// console.log(data)
|
||||
const sortedData: Performer[] = data.sort((a: Performer, b: Performer) => a.rank - b.rank);
|
||||
setData(sortedData);
|
||||
setLoading(false);
|
||||
@@ -64,7 +65,7 @@ export default function TopPerformers() {
|
||||
<div className='-mt-10 relative flex flex-col justify-center place-items-center'>
|
||||
<img className='-mt-10' src="../../assets/crown.png" alt="" />
|
||||
<img className='mx-auto h-[52px] w-[60px]' src={highestRank.avatar} alt="" />
|
||||
<img className='absolute mt-12' src="../../assets/bacth1.svg" alt="" />
|
||||
<img className='absolute mt-9' src="../../assets/bacth1.svg" alt="" />
|
||||
</div>
|
||||
<p className='text-[12px] font-[700] text-center mt-4'>{highestRank.name}</p>
|
||||
<p className='text-[12px] font-[700] text-center'>{highestRank.score}</p>
|
||||
|
||||
Reference in New Issue
Block a user