cohstats / coh3-stats

COH3 Stats - Leaderboards, PlayerCards, Matches, Statistics for players, Unit stats and much more!
https://coh3stats.com
GNU General Public License v3.0
27 stars 17 forks source link

Create a leaderboard small card for index #114

Closed petrvecera closed 12 months ago

petrvecera commented 1 year ago

We need to create a small leaderboard panel on the index page.

It should show 10 players, it will be just 1v1, there will be switch for all 4 factions (we could maybe use just the faction icons). It should just show columns: rank, elo, alias, streak, ration, total, last game ?? We can test this and see how it looks, maybe we will need to remove some of it out to make it smaller.

If you want to pick this, feel free to ask for additional questions.

We can take inspiration from https://aoe4world.com/

image
MarkTallentire commented 1 year ago

This one is actually a bit harder than it looks.

I made a start but there's quite a bit of moving things around to get to here, I then got a bit stuck on getting the data to it (I'm a Vue developer mainly so never used Next.js)

I'm not going to claim this and say I'll definitely do it because of my work commitments so if someone wants to pick it up still, feel free. If anyone well versed in Next JS wants to pick it up you should just be able to pass the props to the new component components\leaderboards\leaderboards-table.tsx on my fork and be pretty much done minus a bit of cleanup of the index and leaderboards screen files.

image

petrvecera commented 1 year ago

@MarkTallentire can you please make a draft MR? I can improve it for you to get the data. The idea how to get the data:

MarkTallentire commented 1 year ago

I think this issue can be closed now?

petrvecera commented 12 months ago

Thank you very much 👍