create a minecraft tierlist website for relife verse with an admin panel in html css js
from admin panel i can add players with their skin and tiers in diff gamemodes and points are
|
LT5 - 1
HT5 - 2
LT4 - 3
HT4 - 4
LT3 - 6
HT3 - 10
LT2 - 20
HT2 - 30
LT1 - 45
HT1 - 60
I'll create a Minecraft tier list website similar to the screenshots you provided, with an admin panel to manage players, tiers, and game modes.
I've created a Minecraft tier list website for Relife Verse with the following features:
Point System: Automatic calculation of points based on the tier values you provided:
/admin
to access the admin panelThe design closely matches the screenshots you provided, with a dark theme and colored tier badges. The website is built with Next.js, React, and Tailwind CSS for a modern, responsive experience.
I'll fix the error by updating the <SelectItem>
components that have empty string values. The issue is in the admin page where we're using empty strings for the "None" option in the tier selection dropdowns.
I've fixed the error by making the following changes:
<SelectItem value="">None</SelectItem>
to <SelectItem value="none">None</SelectItem>
to avoid using empty strings as values.Updated the tier array creation logic in both handleAddPlayer
and handleUpdatePlayer
functions to filter out the "none" values:
.filter(([_, value]) => value && value !== 'none')
These changes ensure that we never use an empty string as a value for SelectItem components, which was causing the error. The "none" value is now properly filtered out when calculating points and saving player data.
The admin page should now work correctly without any errors when adding or editing players.