From 8abe868a0d443eed3c10b59c9a0b05c884e5577f Mon Sep 17 00:00:00 2001 From: polaris Date: Sun, 30 Jun 2024 00:17:28 -0400 Subject: [PATCH] added bento grid to share page to mimic real score screen --- app/(sharing)/[token]/[id]/page.tsx | 74 +++++++++++++++++++---------- 1 file changed, 48 insertions(+), 26 deletions(-) diff --git a/app/(sharing)/[token]/[id]/page.tsx b/app/(sharing)/[token]/[id]/page.tsx index 50f132c..cb330cc 100644 --- a/app/(sharing)/[token]/[id]/page.tsx +++ b/app/(sharing)/[token]/[id]/page.tsx @@ -32,35 +32,57 @@ export default async function Share({ // Filter songsData to match the playlogIds const matchedSongs = songsData.filter((song) => playlogIds.includes(song.id)); return ( -
- {matchedSongs.map((song) => ( -
-
-

{song.title}

-

Artist: {song.artist}

-

Genre: {song.genre}

-

diff: {song.chartlevel}

+
+
+

Salmon

+
-

Level: {song.level}

+
+

Broccoli

+
-

Full Combo: {song.isFullCombo ? "Yes" : "No"}

-

Score: {song.score}

+
+

Tamago

+
-
- - {getDifficultyText(song.chartId)} - -
-
-
- ))} +
+

Pork

+
+ +
+

Edamame

+
+ //
+ //
+ // {matchedSongs.map((song) => ( + //
+ //
+ //

{song.title}

+ //

Artist: {song.artist}

+ //

Genre: {song.genre}

+ //

diff: {song.chartlevel}

+ + //

Level: {song.level}

+ + //

Full Combo: {song.isFullCombo ? "Yes" : "No"}

+ //

Score: {song.score}

+ + //
+ // + // {getDifficultyText(song.chartId)} + // + //
+ //
+ //
+ // ))} + //
); }