Skip to content

Commit

Permalink
Merge pull request #46 from KAMALDEEN333/Word-Grid
Browse files Browse the repository at this point in the history
Word grid
  • Loading branch information
BigBen-7 authored Jan 28, 2025
2 parents f316b53 + fbb6c09 commit ecd4b1e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/app/page.js
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>
);
}

22 changes: 22 additions & 0 deletions frontend/components/WordGrid.jsx
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;

0 comments on commit ecd4b1e

Please sign in to comment.