-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from KAMALDEEN333/Word-Grid
Word grid
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import Keyboard from "@/components/Keyboard.jsx"; | ||
import Navbar from "@/components/Navbar"; | ||
import WordGrid from "@/components/WordGrid"; | ||
export default function page() { | ||
return ( | ||
<div> | ||
<Navbar /> | ||
<Keyboard /> | ||
<Navbar/> | ||
<WordGrid/> | ||
<Keyboard /> | ||
</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,22 @@ | ||
import React from 'react'; | ||
|
||
function WordGrid() { | ||
const inputs = Array.from({ length: 25 }); | ||
|
||
return ( | ||
<div className='mt-5'> | ||
<div className="grid grid-cols-5 gap-2 md:gap-4 place-content-center mx-auto bg-white w-[250px] md:w-[350px] "> | ||
{inputs.map((_, index) => ( | ||
<input | ||
key={index} | ||
type="text" | ||
maxLength="1" | ||
className="w-[40px] h-[40px] md:w-[60px] md:h-[60px] rounded-[5px] bg-[#939B9F4D] text-center" | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default WordGrid; |