Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen Css issue at both mobile and desktop view #1494 #1503

Merged
merged 3 commits into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/plays/multiplayer-tic-tac-toe/MultiplayerTicTacToe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ function MultiplayerTicTacToe(props: any) {
<>
<div className="play-details">
<PlayHeader play={props} />
<div className="flex justify-center play-details-body">
<div className="grid items-center justify-center play-details-body">
{/* Your Code Starts Here */}
<div>
<h1 className="text-2xl text-center md:text-3xl">Multiplayer Tic Tac Toe</h1>
<ButtonGroup setIsCross={setIsCross} />

<section className="flex items-center justify-center">
<section className="flex items-center !justify-center">
<ToastContainer />
<main>
<div>
Expand Down
4 changes: 2 additions & 2 deletions src/plays/multiplayer-tic-tac-toe/components/ButtonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export default function ButtonGroup({ setIsCross }: ButtonGroupProps) {
<>
<section className="flex justify-center">
<button
className="flex justify-center items-center w-28 h-16 m-3 cursor-pointer border rounded-lg bg-[#00f2fe] hover:border-black"
className="grid justify-center items-center w-24 h-16 m-3 cursor-pointer border rounded-lg bg-[#00f2fe] hover:border-black"
onClick={() => setIsCross(true)}
>
<span className="hidden">Cross</span>
<FaTimes className="text-2xl font-extrabold text-red-500" />
</button>
<button
className="flex justify-center items-center w-28 h-16 m-3 cursor-pointer border rounded-lg bg-[#00f2fe] hover:border-black"
className="grid justify-center items-center w-24 h-16 m-3 cursor-pointer border rounded-lg bg-[#00f2fe] hover:border-black"
onClick={() => setIsCross(false)}
>
<span className="hidden">Circle</span>
Expand Down
2 changes: 1 addition & 1 deletion src/plays/multiplayer-tic-tac-toe/components/GameGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function GameGrid({ changeItem }: GameGrid) {
<div className="grid grid-cols-3 gap-4">
{GAME_ARRAY.map((ele, i) => (
<div
className="md:w-24 md:h-24 w-32 flex justify-center items-center h-32 bg-[#00f2f2] border-2 border-black rounded-lg cursor-pointer"
className="md:h-16 sm:w-44 w-20 gird justify-center items-center h-12 bg-[#00f2f2] border-2 border-black rounded-lg cursor-pointer"
key={i}
onClick={() => changeItem(i)}
>
Expand Down
Loading