-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlindex.html
126 lines (116 loc) · 4.79 KB
/
lindex.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login and Create Account</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
body {
font-family: 'Roboto', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #FFBA08, #e0e0e0);
animation: gradient 15s ease infinite;
}
@keyframes gradient {
0% { background-color: #f5f5f5; }
50% { background-color: #e0e0e0; }
100% { background-color: #f5f5f5; }
}
.container {
width: 400px;
padding: 20px;
background: white;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
transition: transform 0.3s;
}
.container:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.create-account-box {
border: 2px solid #FFBA08; /* Updated Border Color */
border-radius: 12px;
padding: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
background-color: #f9f9f9;
}
.spinner {
display: none;
margin: 10px auto;
}
.btn {
background-color: #FFBA08; /* Primary Color */
}
.btn:hover {
background-color: #F48C06; /* Hover Color */
}
.red-text {
color: red;
}
</style>
</head>
<body>
<div class="container" id="login-container">
<h2 class="center-align">Login</h2>
<form id="login-form">
<div class="input-field">
<input type="email" id="login-email" required>
<label for="login-email">Email ID</label>
</div>
<div class="input-field">
<input type="password" id="login-password" required>
<label for="login-password">Password</label>
<span class="helper-text" id="password-helper" data-error="Invalid password"></span>
</div>
<button type="submit" class="btn waves-effect waves-light">Login</button>
<div class="spinner" id="loading-spinner">
<div class="preloader-wrapper small active">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
<p class="center-align">Or</p>
<p class="center-align" id="show-create-account">Create Account</p>
</form>
<div id="error-message" class="red-text center-align"></div>
</div>
<div class="container create-account-box" id="create-account-container" style="display: none;">
<h2 class="center-align">Create Account</h2>
<form id="create-account-form">
<div class="input-field">
<input type="email" id="create-email" required>
<label for="create-email">Email ID</label>
</div>
<div class="input-field">
<input type="password" id="create-password" required>
<label for="create-password">Password</label>
</div>
<div class="input-field">
<input type="password" id="confirm-password" required>
<label for="confirm-password">Confirm Password</label>
</div>
<button type="submit" class="btn waves-effect waves-light">Create Account</button>
<p class="center-align" id="show-login">Already have an account? Login</p>
</form>
<div id="create-error-message" class="red-text center-align"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="lscript.js"></script>
</body>
</html>