Redmind commited on
Commit
f749ddc
·
verified ·
1 Parent(s): 6191fdc

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +338 -87
templates/index.html CHANGED
@@ -1,106 +1,357 @@
1
- <!--
2
- This is the login page template for the RedMindGPT application.
3
- It contains a login form where users can enter their username and password to sign in.
4
- The form includes validation to ensure that both fields are filled out before submission.
5
- The page also includes styling using CSS and utilizes the AdminLTE and Font Awesome libraries for additional design elements.
6
- -->
7
-
8
  <!DOCTYPE html>
9
  <html lang="en">
10
  <head>
11
  <meta charset="UTF-8">
12
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
 
 
 
 
 
13
  <style>
14
- /* CSS styles for the login page */
15
- .login-box-msg {
16
- color: grey;
17
- font-size: larger;
 
 
 
 
 
 
 
 
 
 
 
 
18
  font-weight: bold;
 
19
  }
20
 
21
- .remember-me {
22
  text-align: center;
23
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  </style>
25
- <title>RedMindGPT</title>
26
- <!-- AdminLTE CSS -->
27
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/adminlte.min.css">
28
- <!-- Font Awesome -->
29
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
30
  </head>
31
  <body class="hold-transition login-page" style="background-image: url('static/img/AI.jpg'); background-size: cover;">
32
- <div class="login-box">
33
- <div class="card">
34
- <!-- Logo -->
35
- <div style="align-items: center;">
36
- <a href="#" style="color: blue;
37
- font-size: 30px;
38
- font-weight: bold;
39
- margin-left: 80px;
40
- margin-top: 20px;
41
- "><b>RedMindGPT</b></a>
42
- </div>
43
- <form action='/validate-user' name='loginForm' method="post" onsubmit="return validateForm()">
44
- <div class="card-body login-card-body">
45
- <p class="login-box-msg">Sign in</p>
46
- <div class="input-group mb-3">
47
- <input type="text" class="form-control" placeholder="Username" name="username" required>
48
- <div class="input-group-append">
49
- <div class="input-group-text">
50
- <span class="fas fa-user"></span>
51
- </div>
52
- </div>
53
- </div>
54
- <div class="input-group mb-3">
55
- <input type="password" class="form-control" placeholder="Password" name="password" required>
56
- <div class="input-group-append">
57
- <div class="input-group-text">
58
- <span class="fas fa-lock"></span>
59
- </div>
60
- </div>
61
- </div>
62
- <div class="row" style="align-content: center;">
63
- <div class="col-8">
64
- <div class="icheck-primary">
65
- <input type="checkbox" id="remember">
66
- <label for="remember">
67
- Remember Me
68
- </label>
69
- </div>
70
- </div>
71
- </div>
72
- <div class="row" style="align-content: center;">
73
- <div class="col-4">
74
- <button type="submit" class="btn btn-primary btn-block">Sign In</button>
75
- </div>
76
- <div class="col-4">
77
- <button type="reset" class="btn btn-secondary btn-block">Clear</button>
78
- </div>
79
- </div>
80
  </div>
81
-
 
 
 
82
  </form>
83
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  </div>
85
- <!-- jQuery -->
86
- <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
87
- <!-- Bootstrap 4 -->
88
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
89
- <!-- AdminLTE App -->
90
- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/adminlte.min.js"></script>
91
- <script>
92
- // JavaScript function to validate the login form
93
- function validateForm() {
94
- //alert("Validating form");
95
- var username = document.forms["loginForm"]["username"].value;
96
- var password = document.forms["loginForm"]["password"].value;
97
- if (username == "" || password == "") {
98
- alert("Username and Password must be filled out");
99
- return false;
100
- }
101
-
102
- }
103
-
104
- </script>
 
 
 
 
 
 
 
 
 
 
 
105
  </body>
106
- </html>
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+ <title>Sign In/Up Form</title>
8
+ <!-- Google Font -->
9
+ <link href="https://fonts.googleapis.com/css?family=Montserrat:400,800" rel="stylesheet">
10
+ <!-- Font Awesome -->
11
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
12
  <style>
13
+ * {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ body {
18
+ background: #f6f5f7;
19
+ display: flex;
20
+ justify-content: center;
21
+ align-items: center;
22
+ flex-direction: column;
23
+ font-family: 'Montserrat', sans-serif;
24
+ height: 100vh;
25
+ margin: -20px 0 50px;
26
+ }
27
+
28
+ h1 {
29
  font-weight: bold;
30
+ margin: 0;
31
  }
32
 
33
+ h2 {
34
  text-align: center;
35
  }
36
+
37
+ p {
38
+ font-size: 14px;
39
+ font-weight: 100;
40
+ line-height: 20px;
41
+ letter-spacing: 0.5px;
42
+ margin: 20px 0 30px;
43
+ }
44
+
45
+ span {
46
+ font-size: 12px;
47
+ }
48
+
49
+ a {
50
+ color: #333;
51
+ font-size: 14px;
52
+ text-decoration: none;
53
+ margin: 15px 0;
54
+ }
55
+
56
+ button {
57
+ border-radius: 20px;
58
+ border: 1px solid #1c6bae;
59
+ background-color: #1c6bae;
60
+ color: #FFFFFF;
61
+ font-size: 12px;
62
+ font-weight: bold;
63
+ padding: 12px 45px;
64
+ letter-spacing: 1px;
65
+ text-transform: uppercase;
66
+ transition: transform 80ms ease-in;
67
+ }
68
+
69
+ button:active {
70
+ transform: scale(0.95);
71
+ }
72
+
73
+ button:focus {
74
+ outline: none;
75
+ }
76
+
77
+ button.ghost {
78
+ background-color: transparent;
79
+ border-color: #FFFFFF;
80
+ }
81
+
82
+ form {
83
+ background-color: #FFFFFF;
84
+ display: flex;
85
+ align-items: center;
86
+ justify-content: center;
87
+ flex-direction: column;
88
+ padding: 0 50px;
89
+ height: 100%;
90
+ text-align: center;
91
+ }
92
+
93
+ input {
94
+ background-color: #eee;
95
+ border: none;
96
+ padding: 12px 15px;
97
+ margin: 8px 0;
98
+ width: 100%;
99
+ }
100
+
101
+ .container {
102
+ background-color: #fff;
103
+ border-radius: 10px;
104
+ box-shadow: 0 14px 28px rgba(0,0,0,0.25),
105
+ 0 10px 10px rgba(0,0,0,0.22);
106
+ position: relative;
107
+ overflow: hidden;
108
+ width: 668px;
109
+ max-width: 100%;
110
+ min-height: 480px;
111
+ }
112
+
113
+ .form-container {
114
+ position: absolute;
115
+ top: 0;
116
+ height: 100%;
117
+ transition: all 0.6s ease-in-out;
118
+ }
119
+
120
+ .sign-in-container {
121
+ left: 0;
122
+ width: 50%;
123
+ z-index: 2;
124
+ }
125
+
126
+ .container.right-panel-active .sign-in-container {
127
+ transform: translateX(100%);
128
+ }
129
+
130
+ .sign-up-container {
131
+ left: 0;
132
+ width: 50%;
133
+ opacity: 0;
134
+ z-index: 1;
135
+ }
136
+
137
+ .container.right-panel-active .sign-up-container {
138
+ transform: translateX(100%);
139
+ opacity: 1;
140
+ z-index: 5;
141
+ animation: show 0.6s;
142
+ }
143
+
144
+ @keyframes show {
145
+ 0%, 49.99% {
146
+ opacity: 0;
147
+ z-index: 1;
148
+ }
149
+ 50%, 100% {
150
+ opacity: 1;
151
+ z-index: 5;
152
+ }
153
+ }
154
+
155
+ .overlay-container {
156
+ position: absolute;
157
+ top: 0;
158
+ left: 50%;
159
+ width: 50%;
160
+ height: 100%;
161
+ overflow: hidden;
162
+ transition: transform 0.6s ease-in-out;
163
+ z-index: 100;
164
+ }
165
+
166
+ .container.right-panel-active .overlay-container {
167
+ transform: translateX(-100%);
168
+ }
169
+
170
+ .overlay {
171
+ background: #FF416C;
172
+ background: -webkit-linear-gradient(to right,#1c6bae, #1c6bae);
173
+ background: linear-gradient(to right, #1c6bae, #1c6bae);
174
+ background-repeat: no-repeat;
175
+ background-size: cover;
176
+ background-position: 0 0;
177
+ color: #FFFFFF;
178
+ position: relative;
179
+ left: -100%;
180
+ height: 100%;
181
+ width: 200%;
182
+ transform: translateX(0);
183
+ transition: transform 0.6s ease-in-out;
184
+ }
185
+
186
+ .container.right-panel-active .overlay {
187
+ transform: translateX(50%);
188
+ }
189
+
190
+ .overlay-panel {
191
+ position: absolute;
192
+ display: flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ flex-direction: column;
196
+ padding: 0 40px;
197
+ text-align: center;
198
+ top: 0;
199
+ height: 100%;
200
+ width: 50%;
201
+ transform: translateX(0);
202
+ transition: transform 0.6s ease-in-out;
203
+ }
204
+
205
+ .overlay-left {
206
+ transform: translateX(-20%);
207
+ }
208
+
209
+ .container.right-panel-active .overlay-left {
210
+ transform: translateX(0);
211
+ }
212
+
213
+ .overlay-right {
214
+ right: 0;
215
+ transform: translateX(0);
216
+ }
217
+
218
+ .container.right-panel-active .overlay-right {
219
+ transform: translateX(20%);
220
+ }
221
+
222
+ .social-container {
223
+ margin: 20px 0;
224
+ }
225
+
226
+ .social-container a {
227
+ border: 1px solid #DDDDDD;
228
+ border-radius: 50%;
229
+ display: inline-flex;
230
+ justify-content: center;
231
+ align-items: center;
232
+ margin: 0 5px;
233
+ height: 40px;
234
+ width: 40px;
235
+ }
236
+
237
+ /* Styling the logo inside a circle */
238
+ .logo-container {
239
+ display: flex;
240
+ justify-content: center;
241
+ align-items: center;
242
+ margin-bottom: 20px; /* Add spacing between logo and text */
243
+ }
244
+
245
+ .logo {
246
+ border-radius: 50%; /* Make the image circular */
247
+ background-color: white; /* White background for the circle */
248
+ padding: 20px; /* Adjust the padding to create the circle effect */
249
+ width: 200px; /* Adjust size as needed */
250
+ height: 200px; /* Adjust size as needed */
251
+ object-fit: contain; /* Keep the image aspect ratio */
252
+ }
253
+
254
+
255
+ footer {
256
+ background-color: #222;
257
+ color: #fff;
258
+ font-size: 14px;
259
+ bottom: 0;
260
+ position: fixed;
261
+ left: 0;
262
+ right: 0;
263
+ text-align: center;
264
+ z-index: 999;
265
+ }
266
+
267
+ footer p {
268
+ margin: 10px 0;
269
+ }
270
+
271
+ footer i {
272
+ color: red;
273
+ }
274
+
275
+ footer a {
276
+ color: #3c97bf;
277
+ text-decoration: none;
278
+ }
279
  </style>
 
 
 
 
 
280
  </head>
281
  <body class="hold-transition login-page" style="background-image: url('static/img/AI.jpg'); background-size: cover;">
282
+ <!-- <h2>Weekly Coding Challenge #1: Sign in/up Form</h2> -->
283
+ <form action='/validate-user' name='loginForm' method="post" onsubmit="return validateForm()">
284
+ <div class="container" id="container">
285
+ <div class="form-container sign-up-container">
286
+
287
+ <h1>Create Account</h1>
288
+ <div class="social-container">
289
+ <a href="#" class="social"><i class="fab fa-facebook-f"></i></a>
290
+ <a href="#" class="social"><i class="fab fa-google-plus-g"></i></a>
291
+ <a href="#" class="social"><i class="fab fa-linkedin-in"></i></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  </div>
293
+ <span>or use your email for registration</span>
294
+ <input type="text" placeholder="Name" />
295
+ <input type="password" placeholder="Password" />
296
+ <button>Sign Up</button>
297
  </form>
298
  </div>
299
+ <div class="form-container sign-in-container">
300
+
301
+ <h1>Sign in</h1>
302
+ <div class="social-container">
303
+ <a href="#" class="social"><i class="fab fa-facebook-f"></i></a>
304
+ <a href="#" class="social"><i class="fab fa-google-plus-g"></i></a>
305
+ <a href="#" class="social"><i class="fab fa-linkedin-in"></i></a>
306
+ </div>
307
+ <span>or use your account</span>
308
+ <input type="text" name="username" placeholder="Username" />
309
+ <input type="password" name="password" placeholder="Password" />
310
+ <a href="#">Forgot your password?</a>
311
+ <button type="submit">Sign In</button>
312
+ </form>
313
+ </div>
314
+ <div class="overlay-container">
315
+ <div class="overlay">
316
+ <div class="overlay-panel overlay-left">
317
+ <h1>Welcome Back!</h1>
318
+ <p>To keep connected with us please login with your personal info</p>
319
+ <button type="submit" class="ghost" id="signIn">Sign In</button>
320
+ </div>
321
+ <div class="overlay-panel overlay-right">
322
+ <div class="logo-container">
323
+ <img src="/static/img/redmindlogo3.jpg" alt="Logo" class="logo">
324
  </div>
325
+ <h1>RedMindGPT</h1>
326
+ <p> Start Journey With Us</p>
327
+ <button class="ghost" id="signUp">Sign Up</button>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ </div>
332
+
333
+ <footer>
334
+ <p>
335
+ Created with <i class="fa fa-heart"></i> by RedMind Technologies</p>
336
+ </footer>
337
+
338
+
339
+
340
+ <!-- jQuery -->
341
+ </form>
342
+ <script>
343
+ function validateForm() {
344
+ //alert("Validating form");
345
+ var username = document.forms["loginForm"]["username"].value;
346
+ var password = document.forms["loginForm"]["password"].value;
347
+ if (username == "" || password == "") {
348
+ alert("Username and Password must be filled out");
349
+ return false;
350
+ }
351
+
352
+ }
353
+
354
+ </script>
355
+
356
  </body>
357
+ </html>