Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Koltheguy committed Apr 17, 2024
2 parents de4e4cc + 620cbad commit a19c6d2
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 12 deletions.
Empty file added src/Game/Cell.jsx
Empty file.
Empty file added src/Game/Cell.module.css
Empty file.
17 changes: 17 additions & 0 deletions src/Game/ChatBox.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import styles from "./ChatBox.module.css";

const ChatBox = () => {
return (
<div className={styles.chatBox}>
<div className={styles.chatHeader}>
<h2>Chat Box</h2>
</div>
<div className={styles.chatBody}>
{/* Content of the chat box */}
</div>
</div>
);
};

export default ChatBox;
25 changes: 25 additions & 0 deletions src/Game/ChatBox.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.chatBox {
width: 700px;
height: 500px;
border: 5px solid black;
margin-left: 55%;
margin-top: -520px;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chatHeader {
background-color: #f0f0f0;
padding: 10px;
border-bottom: 1px solid #ccc;
}

.chatHeader h2 {
margin: 0;
}

.chatBody {
padding: 10px;
}

15 changes: 7 additions & 8 deletions src/Game/Game.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import React, { useState } from "react";
import styles from "./Game.module.css";
import styles from "./Grid.module.css";
import style from "./ChatBox.module.css";
import Grid from "./Grid";
import ChatRoom from "./ChatRoom";
import ChatBox from "./ChatBox";

const Game = () => {
return (
<>
<Grid />
<ChatRoom />
</>
);
return <div>
<Grid />
<ChatBox />
</div>;
};

export default Game;
2 changes: 1 addition & 1 deletion src/Game/Grid.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import styles from "./Game.module.css";
import styles from "./Grid.module.css";

const Grid = () => {
const [gridData, setGridData] = useState(Array.from({ length: 10 }, () => Array.from({ length: 10 }, () => 0)));
Expand Down
8 changes: 5 additions & 3 deletions src/Game/Game.module.css → src/Game/Grid.module.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.grid {
display: flex;
justify-content: center;
margin-right: 60%;
width: 50%;
align-items: center;
color: black;
padding: 100px;
padding: 10px;
}

table {
Expand All @@ -15,13 +17,11 @@
}

.coordNums {
margin-top: 10px;
color: blue;
border: none;
}

.coordLetters {
margin-top: 10px;
color: blue;
border: none;
justify-content: space-between;
Expand All @@ -39,6 +39,8 @@
th, td {
border: 1px solid black;
padding: 10px;
height: 50px;
width: 500px;
text-align: center;
}

Expand Down

0 comments on commit a19c6d2

Please sign in to comment.