Skip to content

Commit 0db6f1a

Browse files
authored
Merge pull request #485 from scaffold-eth/challenge-dice-game-new-ui
Dice Game New UI
2 parents b7097bb + 6774664 commit 0db6f1a

6 files changed

Lines changed: 14 additions & 16 deletions

File tree

README.md

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

2828
```sh
29-
npx create-eth@2.0.20 -e challenge-dice-game challenge-dice-game
29+
npx create-eth@2.0.22 -e challenge-dice-game challenge-dice-game
3030
```
3131

3232
> When prompted, choose your preferred Solidity framework: **Hardhat** or **Foundry**.
@@ -57,6 +57,8 @@ yarn start
5757

5858
📱 Open http://localhost:3000 to see the app.
5959

60+
> _Note: the UI in screenshots may differ slightly from the current version._
61+
6062
> 👩‍💻 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.
6163
6264
---

extension/README.md.args.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ yarn start
3838
3939
📱 Open http://localhost:3000 to see the app.
4040
41+
> _Note: the UI in screenshots may differ slightly from the current version._
42+
4143
> 👩‍💻 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.
4244
4345
---

extension/packages/nextjs/app/dice/_components/Amount.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ export const Amount = ({
3131
if (isLoading) {
3232
return (
3333
<div className="animate-pulse flex space-x-4">
34-
<div className="rounded-md bg-slate-300 h-6 w-6"></div>
34+
<div className="bg-slate-300 h-6 w-6"></div>
3535
<div className="flex items-center space-y-6">
36-
<div className="h-2 w-28 bg-slate-300 rounded"></div>
36+
<div className="h-2 w-28 bg-slate-300"></div>
3737
</div>
3838
</div>
3939
);

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-lg mt-10">

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)