-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSS File.txt
68 lines (58 loc) · 997 Bytes
/
CSS File.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* src/Board.css */
.board {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: black;
color: white;
font-family: Arial, sans-serif;
}
.winner {
font-size: 1.5em;
margin-bottom: 20px;
}
.grid {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-gap: 10px;
}
.square {
width: 100px;
height: 100px;
background-color: white;
color: black;
font-size: 2em;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border: none;
outline: none;
}
.reset-button {
margin-top: 20px;
padding: 10px 20px;
font-size: 1em;
background-color: red;
color: white;
border: none;
cursor: pointer;
}
// src/App.js
import React from 'react';
import Board from './Board';
import './App.css';
function App() {
return (
<div className="App">
<Board />
</div>
);
}
export default App;
/* src/App.css */
.App {
text-align: center;
}