-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
167 lines (143 loc) · 5.11 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();
if(isset($_SESSION['admin'])){
header('location: admin/home.php');
}
if(isset($_SESSION['voter'])){
header('location: home.php');
}
?>
<?php include 'includes/header.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="dist/css/LoginStyle.css">
<style>
body {
/* background-image: url('img/background.jpg'); */
background-size: cover;
background-color: maroon;
}
.container span {
position: absolute;
left: 0;
width: 32px;
height: 10px;
background: yellow;
border-radius: 50%;
/* box-shadow: 0 0 5px blue; */
transform-origin: 133px; /***radius of the circle, higher pixel, larger circle ***/
transform: scale(2.2) rotate(calc(var(--i) * (-360deg / 60)));
animation: animateBlink 2s linear infinite;
animation-delay: calc(var(--i) * (3s / 60));
}
@keyframes animateBlink {
0% {
background: cyan;
}
25% {
background: rgba(2, 255, 255, 0.2);
box-shadow: 0 0 2px yellow;
}
}
</style>
</head>
<body>
<div class="container">
<div class="login-box">
<div class="login-logo">
<a href="admin/"><img src="images/afru logo.jpg" style="border-radius: 50%; height: 100px; width: 100px;"></a> <br>
<h3 style="color: white; text-align: center; text-shadow: 2px 2px 5px blue;"><b>KAYE Voting System</b></h3>
</div>
<?php
if(isset($_SESSION['error'])){
echo "
<div class='callout callout-danger text-center mt20'>
<p>".$_SESSION['error']."</p>
</div>
";
unset($_SESSION['error']);
}
?>
<form action="login.php" method="POST">
<div class="input-box">
<input type="text" name="voter" required>
<label>Enter your Registration No</label>
</div>
<div class="input-box">
<input type="password" name="password" required>
<label>Enter Password</label>
</div>
<button type="submit" class="btn" name="login">Login</button><br /><br>
<div class="forgot-pass">
<!-- replace chat/ with forgot-pass.php -->
<a href="chat/" target="_blank">Forgot login Password?</a>
</div>
</form>
</div>
<div>
<span style="--i:0;"></span>
<span style="--i:1;"></span>
<span style="--i:2;"></span>
<span style="--i:3;"></span>
<span style="--i:4;"></span>
<span style="--i:5;"></span>
<span style="--i:6;"></span>
<span style="--i:7;"></span>
<span style="--i:8;"></span>
<span style="--i:9;"></span>
<span style="--i:10;"></span>
<span style="--i:11;"></span>
<span style="--i:12;"></span>
<span style="--i:13;"></span>
<span style="--i:14;"></span>
<span style="--i:15;"></span>
<span style="--i:16;"></span>
<span style="--i:17;"></span>
<span style="--i:18;"></span>
<span style="--i:19;"></span>
<span style="--i:20;"></span>
<span style="--i:21;"></span>
<span style="--i:22;"></span>
<span style="--i:23;"></span>
<span style="--i:24;"></span>
<span style="--i:25;"></span>
<span style="--i:26;"></span>
<span style="--i:27;"></span>
<span style="--i:28;"></span>
<span style="--i:29;"></span>
<span style="--i:30;"></span>
<span style="--i:31;"></span>
<span style="--i:32;"></span>
<span style="--i:33;"></span>
<span style="--i:34;"></span>
<span style="--i:35;"></span>
<span style="--i:36;"></span>
<span style="--i:37;"></span>
<span style="--i:38;"></span>
<span style="--i:39;"></span>
<span style="--i:40;"></span>
<span style="--i:41;"></span>
<span style="--i:42;"></span>
<span style="--i:43;"></span>
<span style="--i:44;"></span>
<span style="--i:45;"></span>
<span style="--i:46;"></span>
<span style="--i:47;"></span>
<span style="--i:48;"></span>
<span style="--i:49;"></span>
<span style="--i:50;"></span>
<span style="--i:51;"></span>
<span style="--i:52;"></span>
<span style="--i:53;"></span>
<span style="--i:54;"></span>
<span style="--i:55;"></span>
<span style="--i:56;"></span>
<span style="--i:57;"></span>
<span style="--i:58;"></span>
<span style="--i:59;"></span>
</div>
</div>
</div>
</body>
</html>