-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (135 loc) · 4.46 KB
/
index.html
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!doctype html>
<html lang="en-US">
<head>
<link href="styles/style.css" rel="stylesheet" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gomoku Game</title>
<style>
body {
background-image: url('images/background_0.jpg');
background-color: rgba(255, 255, 255, 0.5);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
margin: 0;
height: auto;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
font-family: 'Open Sans', sans-serif;
color: rgb(12, 70, 104);
padding-top: 150px; /* Add space for headings */
}
.chessboard-container {
width: 100%;
max-width: 1000px;
height: 800px;
background-image: url('images/chessboard.svg');
background-size: contain;
background-position: center;
background-repeat: no-repeat;
padding-top: 0;
position: relative;
z-index: 1;
margin: 0.5 0;
margin-top: -5px;
}
button:hover {
background-color: #90ae91;
}
#login {
position: absolute; /* Enables absolute positioning */
top: 20px; /* Distance from the top of the page */
right: 20px; /* Distance from the right edge of the page */
padding: 10px 20px;
font-size: 16px;
background-color: #1c441d;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#restart {
position: absolute; /* Enables absolute positioning */
top: 20px; /* Distance from the top of the page */
right: 120px; /* Distance from the right edge of the page */
padding: 10px 20px;
font-size: 16px;
background-color: #1c441d;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#start {
position: absolute; /* Enables absolute positioning */
top: 20px; /* Distance from the top of the page */
right: 220px; /* Distance from the right edge of the page */
padding: 10px 20px;
font-size: 16px;
background-color: #1c441d;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#turnIndicator {
position: absolute;
top: 20px;
left: 20px;
margin: 0;
padding: 10px;
font-size: 16px;
background-color: #084573b7;
color: white;
border-radius: 5px;
}
#black-timer {
position: absolute;
top: 450px;
left: 230px;
margin: 0;
padding: 15px;
font-size: 20px;
background-color: #084573b7;
color: white;
border-radius: 5px;
}
#white-timer {
position: absolute;
top: 450px;
right: 230px;
margin: 0;
padding: 15px;
font-size: 20px;
background-color: #084573b7;
color: white;
border-radius: 5px;
}
#black-timer.current-player,
#white-timer.current-player {
color: rgb(208, 17, 17);
}
</style>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans" />
<script src="scripts/main.js" defer></script>
</head>
<body>
<h1>Gomoku Game </h1>
<h4><strong></strong><a href="https://en.wikipedia.org/wiki/Gomoku" style="color: rgb(12, 70, 104);; text-decoration: none;">Gomoku</a></strong> is a classic board game that is both simple and enjoyable—it's one of my favorites! </h4>
<h4>The objective is to be the first to form an unbroken line of five stones, either horizontally, vertically, or diagonally. Have fun!</h4>
<button id = "login">Log In</button>
<button id = "restart">Restart</button>
<button id = "start">Start</button>
<div id="black-timer" class="timer">
Black Time: <span id="player1-time">10:00</span>
</div>
<div id="white-timer" class="timer">
White Time: <span id="player2-time">10:00</span>
</div>
<div class="chessboard-container" id="chessboard"></div>
<p id="turnIndicator">Current Turn: <span id="currentPlayer">Black</span></p></div>
</body>
</html>