-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a0d3f0
commit b31afdc
Showing
6 changed files
with
49 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function Button( { btnTitle, btnFunction } ) { | ||
return (<> | ||
<button onClick={btnFunction}>{btnTitle}</button> | ||
</>) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Button from "./Button" | ||
|
||
export default function DashBoard() { | ||
|
||
const resetFunc = () => { | ||
|
||
} | ||
|
||
return ( | ||
|
||
<div className="dashboard w-96 m-auto bg-slate-300 flex justify-center"> | ||
<Button btnTitle="Reset" btnFunction={resetFunc} /> | ||
</div> | ||
|
||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default function GameCell() { | ||
return ( | ||
<div className="game-cell w-28 h-28 mx-2 bg-slate-400"></div> | ||
<div className="game-cell w-28 h-28 m-2 bg-slate-400"></div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export default function ScoreBoard() { | ||
return ( | ||
|
||
<div className="scoreboard w-96 bg-slate-300 m-auto flex flex-wrap justify-around items-center"> | ||
<h3>P1: <span>00</span></h3> | ||
<h3>P2: <span>00</span></h3> | ||
</div> | ||
) | ||
} | ||
|
||
// should build form so players can name themselves |
b31afdc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-mini-projects-uh67 – ./
react-mini-projects-uh67-git-main-steven-brooks-projects.vercel.app
react-mini-projects-uh67-steven-brooks-projects.vercel.app
react-mini-projects-uh67.vercel.app
b31afdc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-mini-projects-cuqx – ./
react-mini-projects-cuqx-git-main-steven-brooks-projects.vercel.app
react-mini-projects-cuqx.vercel.app
react-mini-projects-cuqx-steven-brooks-projects.vercel.app