From 75d6ceacb02a37450697a85560344b840cdf24e5 Mon Sep 17 00:00:00 2001 From: datalore Date: Sun, 5 Nov 2023 13:26:41 +0100 Subject: [PATCH 1/4] Made Bingo resize with screen size --- src/app/components/bingo.tsx | 2 +- src/app/components/bingoitem.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/bingo.tsx b/src/app/components/bingo.tsx index bdd7a27..a952d80 100644 --- a/src/app/components/bingo.tsx +++ b/src/app/components/bingo.tsx @@ -13,7 +13,7 @@ export default function Bingo({size, items}: Props){ rows[i] = activeItems.slice(i * size, (i + 1) * size); } return( - +
{rows.map((item, index) => )} diff --git a/src/app/components/bingoitem.tsx b/src/app/components/bingoitem.tsx index 7e74f74..ce0349b 100644 --- a/src/app/components/bingoitem.tsx +++ b/src/app/components/bingoitem.tsx @@ -9,6 +9,6 @@ export default function BingoItem({text}: Props){ const [clicked, setClicked] = React.useState(false); return( - + ); } From ddb7f41fd08bbb04f3be5e41e287af5ab2cd781c Mon Sep 17 00:00:00 2001 From: datalore Date: Sun, 5 Nov 2023 13:45:55 +0100 Subject: [PATCH 2/4] Switched active Bingo items to accent color --- src/app/components/bingoitem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/bingoitem.tsx b/src/app/components/bingoitem.tsx index ce0349b..e72c404 100644 --- a/src/app/components/bingoitem.tsx +++ b/src/app/components/bingoitem.tsx @@ -9,6 +9,6 @@ export default function BingoItem({text}: Props){ const [clicked, setClicked] = React.useState(false); return( - + ); } From 175c6c60863f260d3088efbbded384c2da371f3d Mon Sep 17 00:00:00 2001 From: datalore Date: Sun, 5 Nov 2023 14:11:10 +0100 Subject: [PATCH 3/4] Made Bingo controls responsive --- src/app/components/bingocontroller.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/bingocontroller.tsx b/src/app/components/bingocontroller.tsx index 1e5abfd..d3857a4 100644 --- a/src/app/components/bingocontroller.tsx +++ b/src/app/components/bingocontroller.tsx @@ -23,13 +23,13 @@ export default function BingoController(){
- setSize(+s)}/> + setSize(+s)}/>
3x3 4x4 5x5
- setItems(FisherYatesShuffle(buzzwords))}>Regenerate + setItems(FisherYatesShuffle(buzzwords))}>Regenerate
{sizeError &&
Warning: Mismatch between item count and size
} From 69661a3b1259363e4b0043a9dabd65edb9a28822 Mon Sep 17 00:00:00 2001 From: datalore Date: Sun, 5 Nov 2023 14:12:33 +0100 Subject: [PATCH 4/4] Changed version number to 0.3.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3cf5a74..18cd3b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "buzzword-bingo", - "version": "0.2.1", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "buzzword-bingo", - "version": "0.2.1", + "version": "0.3.0", "dependencies": { "next": "14.0.1", "react": "^18", diff --git a/package.json b/package.json index 7a419d3..db92b76 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "buzzword-bingo", - "version": "0.2.1", + "version": "0.3.0", "private": true, "scripts": { "dev": "next dev",
setClicked(!clicked)}>{text} setClicked(!clicked)}>{text} setClicked(!clicked)}>{text} setClicked(!clicked)}>{text}