Make frontend for uploading icons

This commit is contained in:
2026-01-31 01:24:18 -07:00
parent 37b92dd1cf
commit 78d36656dd
2 changed files with 161 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import { useEffect, useState } from 'react'
import axios from 'axios'
import { BackButton } from '@/app/components/BackButton'
import { ReloadButton } from '@/app/components/ReloadButton'
import { UploadButton } from '@/app/components/UploadButton'
interface MarketplaceIcon {
username: string
@@ -36,13 +37,14 @@ export default function BerryDashIconMarketplace () {
return (
<div className='box text-center'>
<BackButton href='/game/berry-dash' />
<UploadButton href='/game/berry-dash/icon-marketplace/upload' />
<ReloadButton
action={() => {
setResponse(null)
Refresh()
}}
/>
<p className='px-8 -mt-2 mb-4 text-2xl'>Berry Dash Icon Marketplace</p>
<p className='px-20 -mt-2 mb-4 text-2xl'>Berry Dash Icon Marketplace</p>
<p>A browser for the in game icon marketplace!</p>
<div className='sub-box mt-2 -mx-4 -mb-4 flex flex-row flex-wrap justify-center gap-2 max-w-[95vw]'>
{response == null || response == -1 ? (