Skip to content

Commit

Permalink
feat: modified
Browse files Browse the repository at this point in the history
  • Loading branch information
t03jam8 committed Apr 16, 2018
1 parent c2d0607 commit accc318
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>nRooks & nQueens</title>
</head>
<body>
<noscript>
Expand Down
40 changes: 40 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,43 @@ h1 {
font-size: 20px;
}
}

.BTLtile {
position: relative;
float: right;
width: 20%;
height: 20%;
transform: rotate(270deg);
}

.BTRtile {
background-color: yellow;
position: relative;
float: left;
width: 20%;
height: 20%;
transform: rotate(180deg);
}

.BBRtile {
background-color: red;
position: relative;
float: left;
width: 20%;
height: 20%;
/* transform: rotate(180deg); */
}
.BBLtile {
background-color: blue;
position: relative;
float: left;
width: 20%;
height: 20%;
transform: rotate(90deg);
}

.image {
width: 100%;
height: 100%;
background-size: contain;
}
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class App extends Component {
constructor(props) {
super(props);
this.state = {
tileColor: ["black", "white"],
tileColor: ["rgba(0, 0, 0, 0.7)", "rgba(255, 255, 255, 0.7)"],
allRes: null,
solutionNumber: 0,
displaySolution: null,
Expand Down
7 changes: 4 additions & 3 deletions src/components/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ class Board extends Component {
return {
width: this.state.tileDim,
height: this.state.tileDim,
display: "flex",
justifyContent: "center",
alignItems: "center",
display: "grid",
grid: "repeat(2, 60px) / auto-flow 80px",
// justifyContent: "center",
// alignItems: "center",
backgroundColor: this.sortingTheTileColor(el, i, dim)
};
}
Expand Down
1 change: 1 addition & 0 deletions src/embelishment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gothicTile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit accc318

Please sign in to comment.