Skip to content

Commit ec1f816

Browse files
authored
Merge pull request #484 from scaffold-eth/challenge-token-vendor-new-ui
Token Vendor New UI
2 parents 8d1298a + e7d2f01 commit ec1f816

6 files changed

Lines changed: 16 additions & 18 deletions

File tree

README.md

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

3030
```sh
31-
npx create-eth@2.0.20 -e challenge-token-vendor challenge-token-vendor
31+
npx create-eth@2.0.22 -e challenge-token-vendor challenge-token-vendor
3232
```
3333

3434
> When prompted, choose your preferred Solidity framework: **Hardhat** or **Foundry**.
@@ -76,6 +76,8 @@ yarn start
7676

7777
📱 Open http://localhost:3000 to see the app.
7878

79+
> _Note: the UI in screenshots may differ slightly from the current version._
80+
7981
> 👩‍💻 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.
8082
8183
---

extension/README.md.args.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ yarn start
4040
4141
📱 Open http://localhost:3000 to see the app.
4242
43+
> _Note: the UI in screenshots may differ slightly from the current version._
44+
4345
> 👩‍💻 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.
4446
4547
---

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/app/token-vendor/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const TokenVendor: NextPage = () => {
4949
return (
5050
<>
5151
<div className="flex items-center flex-col flex-grow pt-10">
52-
<div className="flex flex-col items-center bg-base-100 shadow-lg shadow-secondary border-8 border-secondary rounded-xl p-6 mt-24 w-full max-w-lg">
52+
<div className="flex flex-col items-center bg-base-100 shadow-lg shadow-secondary border-8 border-secondary p-6 mt-24 w-full max-w-lg">
5353
<div className="text-xl">
5454
Your token balance:{" "}
5555
<div className="inline-flex items-center justify-center">
@@ -73,7 +73,7 @@ const TokenVendor: NextPage = () => {
7373
</div>
7474

7575
{/* Buy Tokens */}
76-
{/* <div className="flex flex-col items-center space-y-4 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary rounded-xl p-6 mt-8 w-full max-w-lg">
76+
{/* <div className="flex flex-col items-center space-y-4 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary p-6 mt-8 w-full max-w-lg">
7777
<div className="text-xl">Buy tokens</div>
7878
<div>{tokensPerEth?.toString() || 0} tokens per ETH</div>
7979
@@ -101,7 +101,7 @@ const TokenVendor: NextPage = () => {
101101
</div> */}
102102

103103
{!!yourTokenBalance && (
104-
<div className="flex flex-col items-center space-y-4 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary rounded-xl p-6 mt-8 w-full max-w-lg">
104+
<div className="flex flex-col items-center space-y-4 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary p-6 mt-8 w-full max-w-lg">
105105
<div className="text-xl">Transfer tokens</div>
106106
<div className="w-full flex flex-col space-y-2">
107107
<AddressInput placeholder="to address" value={toAddress} onChange={value => setToAddress(value)} />
@@ -133,7 +133,7 @@ const TokenVendor: NextPage = () => {
133133

134134
{/* Sell Tokens */}
135135
{/* {!!yourTokenBalance && (
136-
<div className="flex flex-col items-center space-y-4 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary rounded-xl p-6 mt-8 w-full max-w-lg">
136+
<div className="flex flex-col items-center space-y-4 bg-base-100 shadow-lg shadow-secondary border-8 border-secondary p-6 mt-8 w-full max-w-lg">
137137
<div className="text-xl">Sell tokens</div>
138138
<div>{tokensPerEth?.toString() || 0} tokens per ETH</div>
139139

extension/packages/nextjs/package.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

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)