Skip to content

Commit 9c9ba66

Browse files
authored
Merge pull request #483 from scaffold-eth/challenge-crowdfunding-new-ui
Crowdfunding New UI
2 parents 9349267 + d096769 commit 9c9ba66

7 files changed

Lines changed: 15 additions & 13 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Before you begin, you need to install the following tools:
2222
Then download the challenge to your computer and install dependencies by running:
2323

2424
```sh
25-
npx create-eth@2.0.20 -e challenge-crowdfunding challenge-crowdfunding
25+
npx create-eth@2.0.22 -e challenge-crowdfunding challenge-crowdfunding
2626
```
2727

2828
> When prompted, choose your preferred Solidity framework: **Hardhat** or **Foundry**.
@@ -53,6 +53,8 @@ yarn start
5353

5454
📱 Open http://localhost:3000 to see the app.
5555

56+
> _Note: the UI in screenshots may differ slightly from the current version._
57+
5658
> 👩‍💻 Rerun `yarn deploy` whenever you want to deploy contract changes to the frontend. Run `yarn deploy --reset` for a completely fresh deploy, even when contracts are unchanged.
5759
5860
🔏 Now you are ready to edit your smart contract `CrowdFund.sol` in your contracts directory

extension/README.md.args.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ yarn start
3434
3535
📱 Open http://localhost:3000 to see the app.
3636
37+
> _Note: the UI in screenshots may differ slightly from the current version._
38+
3739
> 👩‍💻 Rerun \`yarn deploy\` whenever you want to deploy contract changes to the frontend. Run \`yarn deploy --reset\` for a completely fresh deploy, even when contracts are unchanged.
3840
3941
🔏 Now you are ready to edit your smart contract \`CrowdFund.sol\` in \`packages/${solidityFramework}/contracts\`

extension/packages/nextjs/app/crowdfund/_components/ContributeContractInteraction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const ContributeContractInteraction = ({ address }: { address?: string })
5050
return (
5151
<div className="flex items-center flex-col flex-grow w-full px-4 gap-12">
5252
{isFundingCompleted && (
53-
<div className="flex flex-col items-center gap-2 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary rounded-xl p-6 mt-12 w-full max-w-lg">
53+
<div className="flex flex-col items-center gap-2 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary p-6 mt-12 w-full max-w-lg">
5454
<p className="block m-0 font-semibold">🎉 Crowdfunding contract triggered FundingRecipient 🎉</p>
5555
<div className="flex items-center">
5656
<ETHToPrice
@@ -63,7 +63,7 @@ export const ContributeContractInteraction = ({ address }: { address?: string })
6363
)}
6464

6565
<div
66-
className={`flex flex-col items-center space-y-8 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary rounded-xl p-6 w-full max-w-lg ${
66+
className={`flex flex-col items-center space-y-8 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary p-6 w-full max-w-lg ${
6767
!isFundingCompleted ? "mt-24" : ""
6868
}`}
6969
>

extension/packages/nextjs/app/crowdfund/_components/EthToPrice.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const ETHToPrice = ({ value, className = "" }: TBalanceProps) => {
2525
return (
2626
<div className="animate-pulse flex space-x-4">
2727
<div className="flex items-center space-y-6">
28-
<div className="h-5 w-12 bg-slate-300 rounded"></div>
28+
<div className="h-5 w-12 bg-slate-300"></div>
2929
</div>
3030
</div>
3131
);

extension/packages/nextjs/app/page.tsx.args.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const description = `
1313
width="727"
1414
height="231"
1515
alt="challenge banner"
16-
className="rounded-xl border-4 border-primary"
16+
className="border-4 border-primary"
1717
/>
1818
<div className="max-w-3xl">
1919
<p className="text-center text-lg mt-8">

extension/packages/nextjs/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"dependencies": {
3-
"@scaffold-ui/components": "0.1.11",
4-
"@scaffold-ui/debug-contracts": "0.1.10",
5-
"@scaffold-ui/hooks": "0.1.8",
63
"humanize-duration": "^3.28.0"
74
},
85
"devDependencies": {

extension/packages/nextjs/styles/globals.css.args.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export const postContent = `
1919
--color-warning: #ffcf72;
2020
--color-error: #ff8863;
2121
22-
/* radius / button rounding */
23-
--radius-field: 9999rem;
24-
--radius-box: 1rem;
22+
--radius-field: 0rem;
23+
--radius-box: 0rem;
24+
--radius-selector: 0rem;
2525
2626
/* tooltip tail width */
2727
--tt-tailw: 6px;
@@ -48,8 +48,9 @@ export const postContent = `
4848
--color-warning: #ffcf72;
4949
--color-error: #ff8863;
5050
51-
--radius-field: 9999rem;
52-
--radius-box: 1rem;
51+
--radius-field: 0rem;
52+
--radius-box: 0rem;
53+
--radius-selector: 0rem;
5354
5455
--tt-tailw: 6px;
5556
--tt-bg: var(--color-primary); /* if you need a tooltip bg override */

0 commit comments

Comments
 (0)