From de5cc26f99bfe0a1ce3d8e4f90a39dc3abd0b142 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 6 Nov 2026 15:58:42 +0800 Subject: [PATCH 1/2] fix(ui): improve Explore layout and contribution form --- src/App.jsx | 94 ++++++++++++++++----------------- src/styles.css | 137 ++++++++++++++++++++++++++++++++++++------------- 2 files changed, 147 insertions(+), 84 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 0b5e7e3..8e0dcd1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -132,9 +132,7 @@ function DetailPlaceholder({ onPick }) { ); } -// Which contract am I looking at? Cheap to answer, and it fills the gap under -// the list when the detail rail is taller than the cards. -function ContractCard({ count }) { +function ContractInfo() { const [copied, setCopied] = useState(false); async function copy() { try { @@ -147,33 +145,24 @@ function ContractCard({ count }) { } if (!CONFIGURED) return null; return ( -
-
-

Contract

- - - Sepolia - +
+
+ Sepolia contract + {CONTRACT_ADDRESS}
- {CONTRACT_ADDRESS} -
- - {count.toString()} project{count === 1n ? "" : "s"} on chain - - - - - Etherscan ↗ - - +
+ + + Etherscan ↗ +
-
+ ); } @@ -492,24 +481,32 @@ function ProjectDetails({ data, account, ready, busy, now, transact, onClose })

) : (
- - -

- Contributions are capped at the target: anything above the - remaining {eth(remainingTarget)} ETH is returned in the same - transaction. +

+ + + {eth(remainingTarget)} ETH remaining + +
+
+
+ + +
+ +
+

+ Any excess is returned in the same transaction.

))} @@ -1034,7 +1031,7 @@ export default function App() { // On wide screens it is a sticky rail and must not steal the scroll position. useEffect(() => { if (!activeDetail || !detailRef.current) return; - if (!window.matchMedia("(max-width: 1080px)").matches) return; + if (!window.matchMedia("(max-width: 1120px)").matches) return; detailRef.current.scrollIntoView({ behavior: "smooth", block: "start" }); }, [activeDetail?.id]); @@ -1211,6 +1208,7 @@ export default function App() { backers approve with the weight they contributed, and funds unlock 40% / 60% — no platform in the middle.

+
@@ -1484,8 +1482,6 @@ export default function App() {
)} - - {!loadError && }