realm-of-ra / mancala

https://meowing-anteater-cee.notion.site/Mancala-Game-MVP-7521e2f2e5294575b33b17601afde810
MIT License
9 stars 23 forks source link

feat: create disconnect/connect drop menu #121

Closed od-hunter closed 1 day ago

od-hunter commented 5 days ago

Ready for review

vercel[bot] commented 5 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mancala ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 29, 2024 9:34am
mancala-pkco ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 29, 2024 9:34am
supreme2580 commented 3 days ago

Hi @od-hunter I am updating your branch and reviewing it now

xpanvictor commented 3 days ago

@supreme2580 sorry was the issue resolved? There were some tags that will cause white screens across the app

supreme2580 commented 3 days ago

@xpanvictor will confirm Links are used instead of a tags before I approve or not

xpanvictor commented 3 days ago

Oh, it's develop into ...

od-hunter commented 3 days ago

Hello @supreme2580 @xpanvictor I am currently having issues viewing the page on live server from my end, after install and running the necessary client setup. Also am trying to install and import Link from react-router-dom but the installation is creating another package.json file instead of updating the previous package.json file.

Kindly assist.

supreme2580 commented 3 days ago

@od-hunter where is it creating a second package.json? You are probably running the install script on the wrong path, but you do not have to install react-router-dom it is already installed, just run pnpm i on the client folder and you should have it, also I will prefer you debug your code from localhost as I will be testing on localhost

supreme2580 commented 3 days ago

Hi @od-hunter I just pulled from the code again, could you please change the a tags to Link components?

od-hunter commented 3 days ago

@supreme2580
kindly review implemented requested change

supreme2580 commented 2 days ago

Hi @od-hunter Your branch have a conflict with header.tsx

od-hunter commented 2 days ago

@supreme2580 i've resolved the conflicts

supreme2580 commented 2 days ago

Hi @od-hunter I reviewed your PR and here are a list of things needed to be resolved

image

It is not rounded properly (till it is clicked)

When clicked the entire connect button does not open the dropdown (only the chevron icon), this should be changed the entirety of the connect button should open the modal

image

The chevron icon is of the wrong color (should be #FCE3AA)

The disconnected wallet connect button is of the wrong color, the icon section background should be #FFA158 and the rest of the body should be #F58229 and the text color should be #FCE3AA

The connect item and image in the dropdown should be both #F58229 in color

image

The connected state still has radius issues

The connected wallet icon background color should be #272A32 and the rest of the body should be #171922 (including the dropdown)

The border color of the dropdown should be #272A32 and of 1px in thickness

A typo on the dropdown (It should be Leaderboard not Leadership)

The text color for everything but connect/disconnect wallet on the dropdown should be #BFC5D4

Reduce the font weight of text across he connect wallet button according to the design

Each item of the dropdown should be of full width and each item background color should be of 50% of the background color when hovered on, when hovered on it should have a bit of padding and a bit rounded, when hovered on the item (any part of the full width) the cursor type should be pointer

od-hunter commented 2 days ago

@supreme2580 kindly review implemented changes

supreme2580 commented 2 days ago

Checking it out

supreme2580 commented 2 days ago

@od-hunter I love it but there are two more things

Instead of using an image for the chevron down image from logo-arrow.svg, import a chevron-down icon from heroicons and customize the color based on if connected or not, when connected it should be of color #C7CAD4 else #FCE3AA

I expect the code to look like

` import { ChevronDownIcon } from "@heroicons/react/24/solid"; import clsx from "clsx";

<ChevronDownIcon className={clsx(connection?.isConnected ? "#C7CAD4" : "#FCE3AA", "w-4 h-4" )} />

//adjust as necessary `

The second issue is when the user is disconnected and the audio play button is clicked it triggers the wallet connect function, make both work but not reliant on eachother

od-hunter commented 2 days ago

@supreme2580 hopefully there's no more issues Kindly review

supreme2580 commented 2 days ago

@od-hunter the following files do not belong in the component folder unless they're a react functional component

They belong in the assets folder

od-hunter commented 2 days ago

@supreme2580 implemented requested changes

supreme2580 commented 2 days ago

Checking it out

supreme2580 commented 1 day ago

Hi @od-hunter this

<ChevronDownIcon className={clsx(connection?.isConnected ? "text-[#3156cf]" : "text-[#ecb533]", "w-4 h-4 ml-3 transition duration-300", { 'transform rotate-180': isDropdownClose })} />

Should be this

<ChevronDownIcon className={clsx(connection?.isConnected ? "text-[#C7CAD4]" : "text-[#FCE3AA]", "w-4 h-4 ml-3 transition duration-300", { 'transform rotate-180': isDropdownClose })} />
od-hunter commented 1 day ago

@supreme2580 done, changed it

supreme2580 commented 1 day ago

Checking it out

supreme2580 commented 1 day ago

Looks great

od-hunter commented 1 hour ago

hello @supreme2580 @xpanvictor thank you for merging it. I'm up and open for any open issues