diff --git a/package-lock.json b/package-lock.json
index 54cba2f..a8ce3cc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "buzzword-bingo",
- "version": "0.3.2",
+ "version": "0.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
diff --git a/package.json b/package.json
index bb27581..dfc346b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "buzzword-bingo",
- "version": "0.3.2",
+ "version": "0.4",
"private": true,
"scripts": {
"dev": "next dev",
diff --git a/src/app/components/bingo.tsx b/src/app/components/bingo.tsx
index a952d80..4040892 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/bingocontroller.tsx b/src/app/components/bingocontroller.tsx
index eca3663..04ab6bf 100644
--- a/src/app/components/bingocontroller.tsx
+++ b/src/app/components/bingocontroller.tsx
@@ -15,13 +15,35 @@ function FisherYatesShuffle(array:string[]):string[]{
}
export default function BingoController({buzzwords} : {buzzwords?: string[]}){
+ const [orientation, setOrientation] = React.useState("");
+ React.useEffect(()=>{
+ function updateOrientation()
+ {
+ setOrientation(window.screen.orientation.type);
+ }
+
+ // init
+ updateOrientation();
+
+ window.addEventListener("orientationchange", updateOrientation);
+
+ // destructor
+ return () => {
+ window.removeEventListener("orientationchange", updateOrientation);
+ }
+ });
+
const [size, setSize] = React.useState(5);
if(buzzwords == undefined || buzzwords.length < 1) buzzwords = ["Cloud", "Cyber-[Something]", "Distrupt[ive]", "AI", "Meta [Something]", "Gamification", "Web 2.0/3.0", "Industry 4.0", "Internet of Things", "Multiexperience", "Big Data", "Crypto", "[Something] as a service", "Emerging [Something]", "Streamline", "Ecosystem", "Leverage", "Outside the Box", "Pivot", "Strategic", "Agile", "Smart Tech", "Data Warehouse", "Actionable Insights", "Holistic Approach", "Digital Transformation", "Growth Hacking"];
const [items, setItems] = React.useState(buzzwords);
const sizeError = (items.length < size);
return(
<>
-
+
+ {orientation != "landscape-primary" &&
+
+
Please rotate your device
+
}