diff --git a/app/deployments/[id]/DeploymentDetailClient.tsx b/app/deployments/[id]/DeploymentDetailClient.tsx index f629a5f..50c11f8 100644 --- a/app/deployments/[id]/DeploymentDetailClient.tsx +++ b/app/deployments/[id]/DeploymentDetailClient.tsx @@ -145,10 +145,10 @@ function MintRedeemForm({ value={amount} onChange={(e) => setAmount(e.target.value)} disabled={isPending || isConfirming} - className="w-full rounded-xl border border-[#e7dac4] bg-[#fafaf8] px-4 py-3 pr-20 text-sm text-[#1a1a1a] focus:outline-none focus:border-amber-400 focus:ring-2 focus:ring-amber-100 transition disabled:opacity-50" + className="w-full rounded-xl border border-[#e7dac4] bg-[#fafaf8] px-4 py-3 pr-16 sm:pr-20 text-sm text-[#1a1a1a] focus:outline-none focus:border-amber-400 focus:ring-2 focus:ring-amber-100 transition disabled:opacity-50" placeholder="0.00" /> - + {inputAsset} @@ -156,13 +156,13 @@ function MintRedeemForm({ {/* summary box */}
-
- {t("fee")} +
+ {t("fee")} 0.3%
-
- {t("youReceive")} - +
+ {t("youReceive")} + ~{estimateNum > 0 ? estimateNum.toLocaleString(undefined, { maximumFractionDigits: 6 }) : "0.00"} {outputToken}
@@ -230,29 +230,29 @@ function StableCoinCard({ return (
{/* header */} -
+

{tDetail("stablecoin")}

-

{d.stablecoin}

+

{d.stablecoin}

{/* stats row */}
-
+

{tDetail("supply")}

-

{d.stableSupply}

+

{d.stableSupply}

-
-

{tDetail("crashTolerance")}

-

{crashTolerance}%

+
+

{tDetail("crashTolerance")}

+

{crashTolerance}%

-
-

{tDetail("reserveRatio")}

-

{d.reserveRatio}%

+
+

{tDetail("reserveRatio")}

+

{d.reserveRatio}%

{/* mint / redeem toggle */} -
+
); } @@ -88,25 +101,44 @@ function CustomConnectButton() { ); if (chain.unsupported) { return ( -
+
{networkSelectorButton} -
@@ -114,53 +146,85 @@ function CustomConnectButton() { } return ( -
+
{networkSelectorButton} -
+
- {/* Custom Dropdown */} -
-
-
-

{t("wallet", { defaultValue: "Wallet" })}

-

- {connector?.name || 'Connected Wallet'} + {/* Custom Dropdown — constrained to viewport on mobile */} +

+
+
+

+ {t("wallet", { defaultValue: "Wallet" })} +

+

+ {connector?.name || "Connected Wallet"}

-

{t("connectedAddress", { defaultValue: "Connected Address" })}

-

+

+ {t("connectedAddress", { defaultValue: "Connected Address" })} +

+

{account.address}

-

{t("availableBalance", { defaultValue: "Available Balance" })}

+

+ {t("availableBalance", { defaultValue: "Available Balance" })} +

{account.displayBalance ? ( account.displayBalance ) : isLoading ? ( - Loading... + Loading... ) : isError ? ( - Error fetching balance + Error fetching balance ) : balanceData ? ( `${Number(balanceData.formatted).toFixed(4)} ${balanceData.symbol}` ) : ( - Unavailable + Unavailable )}
@@ -170,9 +234,9 @@ function CustomConnectButton() { disconnect(); setDropdownOpen(false); }} - className="w-full rounded-xl bg-red-50 py-3 text-sm font-black text-red-600 transition-colors hover:bg-red-100 border border-red-100 flex items-center justify-center gap-2" + className="flex w-full items-center justify-center gap-2 rounded-xl border border-red-100 bg-red-50 py-3 text-sm font-black text-red-600 transition-colors hover:bg-red-100" > - + @@ -204,18 +268,35 @@ export default function Navbar() { const linkClass = (href: string) => `nav-link px-4 py-2 text-lg leading-none font-semibold ${isActive(href) ? "text-amber-600 active-nav-link" : ""}`; - return ( -
+ const mobileLinkClass = (href: string) => + `flex w-full items-center rounded-xl px-3.5 py-3 text-base font-semibold leading-none transition ${ + isActive(href) + ? "bg-amber-50 text-amber-700" + : "text-slate-700 hover:bg-amber-50 hover:text-amber-700" + }`; + + // Prevent background scroll while mobile drawer is open + useEffect(() => { + if (!menuOpen) return; + const previous = document.body.style.overflow; + document.body.style.overflow = "hidden"; + return () => { + document.body.style.overflow = previous; + }; + }, [menuOpen]); - {/* logo */} - + return ( +