-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.html
More file actions
94 lines (88 loc) · 1.59 KB
/
start.html
File metadata and controls
94 lines (88 loc) · 1.59 KB
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
<!DOCTYPE html>
<head>
<title>Welcome to Connect 4!</title>
<style>
body {
text-align: center;
margin-top:175px;
}
h1 {
color: red;
font-size: 50px;
}
#start{
background-color: green;
margin-left: auto;
margin-right: auto;
border-style: solid;
border-color: green;
border-radius: 10px;
width: 100%;
color: white;
font-family: sans-serif;
font-size: 20px;
}
#startbox {
width: 20%;
margin-left: auto;
margin-right: auto;
}
/*
h3 {
color: black;
font-size: 30px;
}*/
p {
color: black;
font-size: 17px;
}
.playerBox {
display: grid;
grid-template-areas:
"player1 txt1 ."
"player2 txt2 .";
justify-content: center;
}
#name1{
grid-area: player1;
text-align: right;
margin-right: 10px;
}
#name2 {
grid-area: player2;
text-align: right;
margin-right: 10px;
}
#enterName1{
grid-area: txt1;
height: 20px;
margin-top: 15px;
width: 150px;
}
#enterName2 {
grid-area: txt2;
height: 20px;
margin-top: 15px;
width: 150px;
}
</style>
<script src="start.js" defer></script>
</head>
<body>
<h1>Connect 4</h1>
<div class = "playerBox">
<h3 id = "name1">Player 1</h3>
<input id = "enterName1" type="text" name="firstplayername">
</div>
<div class = "playerBox">
<h3 id = "name2">Player 2</h3>
<input id = "enterName2" type="text" name="secondplayername">
</div>
<div id = "startbox">
<button id= "start" type="button">Start</button>
</div>
<h2>Instructions</h2>
<p>The object of the game is to be the first player to get four of your pieces in a row horizontally, vertically,
or diagonally. Click and drag your color piece one at a time to place it in the board. </p>
<body>
</html>