Skip to content

Commit 6eb1b88

Browse files
authored
Revert "add home comp and fix UI issue"
1 parent 8b747a7 commit 6eb1b88

File tree

3 files changed

+6
-29
lines changed

3 files changed

+6
-29
lines changed

src/Home.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/index.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
body {
22
font: 14px "Century Gothic", Futura, sans-serif;
33
margin-top: 130px;
4+
margin-left: 520px;
45
background-image: url(image/ppp.jpg);
56
background-position: center;
67
background-repeat: no-repeat;
@@ -23,8 +24,6 @@ ul {
2324
font-size: 40px;
2425
color: white;
2526
font-weight: 800;
26-
background: black;
27-
padding: 10px;
2827
}
2928

3029
.square {
@@ -86,10 +85,6 @@ ul {
8685
.game {
8786
display: flex;
8887
flex-direction: row;
89-
width: 500px;
90-
margin: 0 auto;
91-
align-items: center;
92-
justify-content: center;
9388
}
9489

9590
.game-info {

src/index.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import './index.css';
4-
import Home from './Home';
54

65
function Square(props) {
76
return (
@@ -108,24 +107,18 @@ class Game extends React.Component {
108107
<div className="game-board">
109108
<Board />
110109
</div>
111-
{/* <div className="game-info">
112-
<div> status </div>
113-
<ol> TODO </ol>
114-
</div> */}
110+
<div className="game-info">
111+
<div>{/* status */}</div>
112+
<ol>{/* TODO */}</ol>
113+
</div>
115114
</div>
116115
);
117116
}
118117
}
119118

120-
121119
// ========================================
122120

123121
ReactDOM.render(
124-
<>
125-
<Home/>
126-
<Game />
127-
128-
</>
129-
,
122+
<Game />,
130123
document.getElementById('root')
131124
);

0 commit comments

Comments
 (0)