-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (157 loc) · 3.33 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<html>
<head>
<title>My Account</title>
<style>
body{
margin:0;
padding: 0;
background:url(background.jpg);
background-size: cover;
background-position: center;
font-family: oswald;
}
.loginbox{
width:320px;
height:380px;
background: #000;
color:#fff;
top:50%;
left:50%;
position: absolute;
transform: translate(-50%,-50%);
box-sizing: border-box;
padding: 70px 30px;
opacity: 0.75;
border-radius: 5px;
}
.loginicon{
width: 100px;
height: 100px;
border-radius: 50%;
position:absolute;
top:-40px;
left:calc(50% - 50px);
}
.loginbox p{
margin: 0;
padding: 0;
font-weight: bold;
opacity: 1;
font-size: 24px;
}
.loginbox input{
width: 100%;
margin-bottom: 20px;
opacity: 1;
}
.loginbox input[type="text"], input[type="password"]
{
border: none;
border-bottom: 1px solid #fff;
background: transparent;
outline: none;
height: 40px;
color: #fff;
font-size: 16px;
}
.loginbox input[type="submit"]
{
border: none;
outline: none;
background: #ddd;
color: #000;
font-size: 18px;
border-radius:5px;
opacity: 1;
}
.loginbox input[type="submit"]:hover
{
cursor: pointer;
background: #fb2525;
color: #000;
}
.loginbox a{
text-decoration: none;
font-size: 12px;
line-height: 20px;
color: darkgrey;
padding: 0 0 0 30%;
text-align: center;
}
.loginbox a:hover
{
color: #ffc107;
}
h9{
font-family: Luminari;
font-size: 40px;
text-align: center;
position: relative;
left: 42%;
top: 20px;
text-shadow:-5px 4px 2px white;
}
.navbar{
position:absolute;
bottom: 0;
width: 100%;
top:80%;
overflow: hidden;
height:60px;
}
.navbar a {
position: relative;
text-align: center;
display: inline-block;
color:white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
top:20px;
left:320px;
}
.navbar a:hover {
text-decoration: underline;
}
#signup{
position: absolute;
left:-5%;
}
</style>
<body>
<h9>AegonsMart</h9>
<div class="loginbox">
<img src="loginicon.jpg" class= "loginicon">
<form name="myform" method="post" onsubmit="return validateForm()" >
<p>Username</p>
<input type="text" name="t1" placeholder="Enter Username" required="">
<p>Password</p>
<input type="Password" name="t2" placeholder="Enter Password" required="">
<input type="Submit" name="" value="Login">
<a href="#">Forgot Password?</a><br>
<a href="#" id="signup">New to AegonsMart? Sign up</a>
</form>
</div>
<div class="navbar">
<a href="#" id="abc6">Conditions of Use and Sale</a>
<a href="#" id="abc6">Privacy Notice</a>
<a href="#" id="abc6">Help</a>
<a href="#" id="abc6">© 2005-2018, AegonsMart.com, Inc. or its affiliates</a>
</div>
<script>
function validateForm() {
var x = document.forms["myform"]["t1"].value;
var y = document.forms["myform"]["t2"].value;
if (x ==="Sheetal Pati" && y==="1601106125") {
alert("Login Successful");
return true;
}
else
alert("Incorrect username or password");
return false;
}
</script>
</body>
</head>
</html>