From a145d8cc2b994dfc856fa9608d853c751c22f60e Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Fri, 30 Jan 2026 20:36:04 -0700 Subject: [PATCH] Add icon marketplace --- .../game/berry-dash/icon-marketplace/page.tsx | 66 +++++++++++++++++++ src/app/game/berry-dash/page.tsx | 10 ++- src/app/globals.css | 13 +++- 3 files changed, 85 insertions(+), 4 deletions(-) create mode 100644 src/app/game/berry-dash/icon-marketplace/page.tsx diff --git a/src/app/game/berry-dash/icon-marketplace/page.tsx b/src/app/game/berry-dash/icon-marketplace/page.tsx new file mode 100644 index 0000000..785d62c --- /dev/null +++ b/src/app/game/berry-dash/icon-marketplace/page.tsx @@ -0,0 +1,66 @@ +'use client' + +import { useEffect, useState } from 'react' +import { HomeButton } from '@/app/components/HomeButton' +import { DiscordButton } from '@/app/components/DiscordButton' +import axios from 'axios' + +interface MarketplaceIcon { + username: string + userId: number + data: string + hash: string + id: string + price: number + buyable: boolean + name: string +} + +export default function BerryDashGameInfo () { + const [response, setResponse] = useState(null) + + useEffect(() => { + document.title = 'Lncvrt Games - Berry Dash Icon Marketplace' + ;(async () => { + try { + const request = await axios.get('/api/berrydash/icon-marketplace') + setResponse(request.data.success ? request.data.data : -1) + } catch { + setResponse(-1) + } + })() + }, []) + + return ( +
+ + +

Berry Dash Icon Marketplace

+

A browser for the in game icon marketplace!

+
+ {response == null || response == -1 ? ( +

+ {response != -1 ? 'Loading...' : 'Failed to get marketplace icons'} +

+ ) : ( + response.map(icon => ( +
+
+ +
+

Bird Name: {icon.name}

+

Price: {icon.price}

+

Designer Name: {icon.username}

+
+ )) + )} +
+
+ ) +} diff --git a/src/app/game/berry-dash/page.tsx b/src/app/game/berry-dash/page.tsx index 5db059e..34ce1e5 100644 --- a/src/app/game/berry-dash/page.tsx +++ b/src/app/game/berry-dash/page.tsx @@ -102,7 +102,15 @@ export default function BerryDashGameInfo () { /> -

Downloads

+

Stuff you can do in the browser

+ + View the Icon Marketplace! + +

Downloads