-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
167 lines (154 loc) · 5.77 KB
/
index.php
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
159
160
161
162
163
164
165
166
167
<?php
session_start();
session_destroy();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</head>
<body>
<div class="container-fluid formHolder">
<div class="card">
<p class="WelcomeHeader">Welcome To<br>
<span class="sloganHeader">Geek's Stage</span></p>
<form method="post" action="rulesDB.php">
<div class="inputFields">
<input type="text" name="name" id="name" class="name inp" placeholder="Enter your name..." required>
<input type="email" name="email" id="email" class="email inp" placeholder="Enter your email..." required>
<input type="text" name="college" id="college" class="college inp" placeholder="Enter your college..." required>
<input type="text" name="uid" id="uid" class="uid inp" placeholder="Enter your uid..." required>
<div class="languageSelection">
<p style="margin-top: 3vmin;">Please choose your favourite programming Language
<br>
<div class="radioInput">
<input type="radio" id="C" name="fav_language" value="c" checked>
<label for="C">C</label><br>
<input type="radio" id="Java" name="fav_language" value="java">
<label for="Java">Java</label><br>
<input type="radio" id="C++" name="fav_language" value="cplusplus">
<label for="C++">C++</label><br>
<input type="radio" id="python" name="fav_language" value="python">
<label for="python">python</label><br>
<input type="radio" id="frontend" name="fav_language" value="frontend">
<label for="frontend">Frontend</label><br>
<div class="btnHolder" style="display: flex; justify-content: center; align-items: center; margin-top: 3vmin;">
<input type="submit" value="submit" class="btn btn-primary">
<button class="btn btn-primary" style="margin-left:3vmin">
<a href="waiting.php" style="color:white;text-decoration:none">Leaderboard</a>
</button>
</p>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<style>
body{
background-color: rgb(71, 161, 217);
}
.formHolder{
height:100vh;
display: flex;
justify-content: center;
align-items: center;
}
@media(min-width:801px){
.card{
padding-bottom: 2.5vmin;
width:73vmin;
background-color: #343438;
border:1px solid rgb(37, 35, 35);
border-radius: 1vmin;
opacity: 0.90;
}
.WelcomeHeader{
color: white;
font-size: 5.5vmin;
text-align: center;
}
.sloganHeader{
color: white;
font-size: 5.65vmin;
font-weight: bold;
text-align: center;
}
.inp{
width:95%;
background-color: #343438;
border-bottom: 1px solid white;
margin-left: 2vmin;
margin-top: 2vmin;
}
input[type="text"], input[type="password"],input[type="email"], textarea {
border: none;
color: white;
outline: none;
border-bottom: 1px solid #ccc; /* You can adjust the color and thickness of the outline */
}
.languageSelection{
font-size: 2.7vmin;
margin-left: 1.75vmin;
color: white;
}
}
@media(max-width:800px){
.WelcomeHeader{
color: white;
font-size: 6.5vmin;
text-align: center;
}
.card{
padding-bottom: 2.5vmin;
width:90vmin;
background-color:#343438 ;
border:1px solid rgb(37, 36, 36);
border-radius: 5vmin;
opacity: 0.90;
}
.WelcomeHeader{
color: white;
font-size: 7vmin;
margin-top: 3vmin;
text-align: center;
}
.sloganHeader{
color: white;
font-size: 7.5vmin;
font-weight: bold;
text-align: center;
}
.inp{
width:95%;
background-color: #343438;
border-bottom: 1px solid white;
margin-left: 2vmin;
}
input[type="text"], input[type="password"],input[type="email"], textarea {
border: none;
color: white;
margin-top: 4.25vmin;
outline: none;
border-bottom: 1px solid #ccc; /* You can adjust the color and thickness of the outline */
}
.languageSelection{
font-size: 4vmin;
margin-left: 1.75vmin;
color: white;
}
.radioInput{
margin-top: 1.45vmin;
}
}
</style>