-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.html
158 lines (158 loc) · 4.33 KB
/
main.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
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GitWar</title>
<link
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<script type="text/javascript" src="charts.js"></script>
<style>
html,
body {
font-family: "Open Sans", sans-serif;
font-size: 14px;
min-height: 180px;
width: 500px;
margin: 0;
padding: 0;
}
.main-title {
font-family: "Menlo", monospace;
font-size: 22px;
font-weight: bolder;
margin: 0;
padding: 0px 16px;
color: #2f5876;
}
.main-flex-container {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.local-flex-container {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: left;
padding: 10px 22px;
}
.flex-item {
opacity: 1;
transition: opacity 0.2s ease-in-out;
width: 220px;
padding: 5px;
}
label {
font-weight: bold;
font-size: small;
}
input {
padding: 5px;
}
button {
padding: 5px;
width: 80px;
}
#existerror1,
#existerror2,
#mandatoryerror1,
#mandatoryerror2 {
display: none;
}
.error-flex {
opacity: 1;
transition: opacity 0.2s ease-in-out;
width: 200px;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
margin-bottom: 20px;
margin-top: 10px;
padding: 2px 0px 2px 16px;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}
.card-header {
align-items: center;
border-bottom: 0.5px solid #dadada;
width: 100%;
}
.logo {
padding: 10px;
}
.logo-icon {
vertical-align: text-bottom;
margin-right: 10px;
}
img {
width: 30px;
}
</style>
</head>
<body>
<h2 id="maintitle" class="main-title">Let the battle begin!</h2>
<form>
<div class="main-flex-container">
<div class="local-flex-container">
<div class="flex-item">
<label for="player1">Enter Username1</label>
</div>
<div class="flex-item">
<input type="text" placeholder="GitHub Username1" id="player1" />
</div>
<div class="error-flex">
<span
class="alert alert-danger"
id="existerror1"
role="alert"
></span>
</div>
<div class="error-flex">
<span class="alert alert-warning" id="mandatoryerror1" role="alert"
>Please enter a username</span
>
</div>
<div class="flex-item">
<label for="player2">Enter Username2</label>
</div>
<div class="flex-item">
<input type="text" placeholder="GitHub Username2" id="player2" />
</div>
<div class="error-flex">
<span class="alert alert-danger" id="existerror2" role="alert">
Username doesn't exist
</span>
</div>
<div class="error-flex">
<span class="alert alert-warning" id="mandatoryerror2" role="alert">
Please enter a username
</span>
</div>
</div>
<div class="local-flex-container">
<div class="flex-item">
<button class="btn btn-primary" type="button" id="submit">
Fight
</button>
</div>
</div>
</div>
</form>
<script defer type="text/javascript" src="main.js"></script>
</body>
</html>