-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amid process of reworking ship placement
and firebase logic
- Loading branch information
Showing
13 changed files
with
285 additions
and
367 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
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
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
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,4 +1,16 @@ | ||
/* .shipDisplay { | ||
margin-left : -45rem; | ||
margin-bottom: 30rem; | ||
} */ | ||
.container { | ||
display: flex; | ||
height: 100vh; | ||
width: 100vw; | ||
} | ||
|
||
h2, | ||
h3, | ||
h4, | ||
h5 { | ||
color: #1eb980; | ||
} | ||
|
||
button { | ||
background-color: #1eb980; | ||
} |
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,11 +1,16 @@ | ||
import React, { useState } from "react"; | ||
import React from "react"; | ||
import styles from "./Cell.module.css"; | ||
|
||
const Cell = ({ handleClick, initClassName }) => { | ||
if (!initClassName) initClassName = ""; | ||
const [className, setClassName] = useState(initClassName); | ||
const Cell = ({ tdKey, handleClick, className }) => { | ||
if (!className) className = ""; | ||
|
||
return <div className={className} onClick={handleClick}></div>; | ||
return ( | ||
<td | ||
key={tdKey} | ||
className={`${styles.cell} ${styles[className]}`} | ||
onClick={handleClick} | ||
></td> | ||
); | ||
}; | ||
|
||
export default Cell; |
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,19 +1,6 @@ | ||
.clickable :hover { | ||
cursor: pointer; | ||
} | ||
.cell { | ||
/* display: inline-block; */ | ||
/* border: 1px solid black; */ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
/* border: 1px solid #1eb980; */ | ||
width: 100%; | ||
height:100%; | ||
} | ||
|
||
.cell:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.clicked { | ||
background-color: blue; | ||
} | ||
|
||
aspect-ratio: 1; | ||
} |
Oops, something went wrong.