Skip to content

Commit dcb9dc7

Browse files
committed
adding
1 parent 87c0449 commit dcb9dc7

File tree

1 file changed

+54
-12
lines changed

1 file changed

+54
-12
lines changed

tic-tac-toe/src/App.css

+54-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,63 @@
11
.App {
22
text-align: center;
3+
font-family: 'Arial', sans-serif;
4+
background-color: #f7f7f7;
5+
min-height: 100vh;
6+
display: flex;
7+
flex-direction: column;
8+
justify-content: center;
9+
align-items: center;
310
}
411

5-
.board-holder{
12+
h1 {
13+
color: #333;
14+
margin-bottom: 20px;
15+
font-size: 2.5em;
16+
}
17+
18+
.board-holder {
619
display: grid;
720
grid-template-columns: repeat(3, 1fr);
21+
gap: 10px;
22+
width: 300px;
823
}
9-
.box{
10-
border: 1px solid gray;
11-
margin: 2px;
24+
25+
.box {
26+
border: 2px solid #444;
27+
background-color: #fff;
28+
border-radius: 5px;
1229
padding: 25px;
1330
cursor: pointer;
14-
height: 50px;
15-
}
16-
.board-value{
17-
position: relative;
18-
top: 50%;
19-
left: 50%;
20-
transform: translate(-50%, -50%);
21-
}
31+
height: 100px;
32+
display: flex;
33+
justify-content: center;
34+
align-items: center;
35+
transition: background-color 0.3s, box-shadow 0.3s;
36+
}
37+
38+
.box:hover {
39+
background-color: #f0f0f0;
40+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
41+
}
42+
43+
.board-value {
44+
font-size: 2em;
45+
color: #333;
46+
}
47+
48+
button {
49+
margin-top: 20px;
50+
padding: 10px 20px;
51+
background-color: #007bff;
52+
color: white;
53+
border: none;
54+
border-radius: 5px;
55+
cursor: pointer;
56+
font-size: 1em;
57+
transition: background-color 0.3s, box-shadow 0.3s;
58+
}
59+
60+
button:hover {
61+
background-color: #0056b3;
62+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
63+
}

0 commit comments

Comments
 (0)