forked from vishal02527/My-Strength-Shree-Krishna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
262 lines (229 loc) · 7.56 KB
/
signup.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Krishna Bhakti Forum - Sign Up</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
.chatbot-container {
position: fixed;
bottom: 20px; /* Adjust as needed */
right: 90px; /* Adjust as needed */
z-index: 1000; /* Ensure it appears above other elements */
}
.chatbot-button {
border: none;
border-radius: 50%;
padding: 5px; /* Smaller padding */
cursor: pointer;
position: relative;
width: 50px; /* Adjusted size */
height: 50px; /* Adjusted size */
}
.chatbot-button img {
width: 30px; /* Adjusted image size */
height: 30px; /* Adjusted image size */
}
.tooltip-text {
display: none; /* Hide by default */
position: absolute;
bottom: 100%; /* Position above the button */
right: 50%;
transform: translateX(50%);
background-color: #333; /* Background color for tooltip */
color: #fff; /* Tooltip text color */
padding: 5px;
border-radius: 5px;
white-space: nowrap; /* Prevent text from wrapping */
}
.chatbot-button:hover .tooltip-text {
display: block; /* Show on hover */
}
body {
font-family: 'Poppins', sans-serif;
background-image: url('/api/placeholder/1920/1080');
background-size: cover;
background-position: center;
color: #333;
margin: 0;
padding: 0;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
width: 100%;
max-width: 400px;
padding: 20px;
}
.signup-form {
background-color: rgba(255, 255, 255, 0.9);
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
padding: 30px;
position: relative;
overflow: hidden;
}
.signup-form::before {
content: "";
position: absolute;
top: -50px;
left: -50px;
width: 100px;
height: 100px;
background-image: url('/api/placeholder/100/100');
background-size: contain;
background-repeat: no-repeat;
opacity: 0.2;
}
h2 {
color: #4a2b0f;
margin-top: 0;
text-align: center;
font-size: 28px;
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
color: #4a2b0f;
font-weight: 600;
}
input {
width: 93%;
padding: 12px;
margin-bottom: 20px;
border: 1px solid #d1a054;
border-radius: 5px;
font-size: 16px;
transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus {
border-color: #4a2b0f;
outline: none;
box-shadow: 0 0 5px rgba(74, 43, 15, 0.5);
}
button {
background: linear-gradient(135deg, #d1a054, #4a2b0f);
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
font-size: 18px;
width: 100%;
margin-top: 10px;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(74, 43, 15, 0.3);
}
.login {
text-align: center;
margin-top: 20px;
font-size: 14px;
}
.login-link {
color: #4a2b0f;
font-weight: 600;
text-decoration: none;
transition: color 0.3s;
}
.login-link:hover {
color: #d1a054;
}
footer {
text-align: center;
margin-top: 20px;
color: #fff;
font-size: 14px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.google-signin {
display: flex;
justify-content: center;
margin-top: 20px;
}
@media (max-width: 480px) {
.container {
padding: 10px;
}
.signup-form {
padding: 20px;
}
h2 {
font-size: 24px;
}
input, button {
font-size: 14px;
}
}
</style>
<!-- Include Google Platform Library -->
<script src="https://accounts.google.com/gsi/client" async defer></script>
</head>
<body>
<div class="container">
<div class="signup-form" id="signupForm">
<h2>Join Krishna Bhakti Forum</h2>
<form id="form" action="./discussion-forum.html" method="GET">
<label for="username">Devotee Name:</label>
<input type="text" id="username" name="username" required />
<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
<label for="password">Password:</label>
<input type="password" id="password" name="password" required />
<!-- Step 3: Google Sign-In Button -->
<div class="google-signin">
<div id="g_id_onload"
data-client_id="533616281722-3gijg2u8b6aue0878sbmna6cs6q1lquc.apps.googleusercontent.com"
data-context="signup"
data-ux_mode="popup"
data-login_uri="http://localhost:5502/"
data-auto_prompt="false">
</div>
<div class="g_id_signin"
data-type="standard"
data-shape="rectangular"
data-theme="outline"
data-text="sign_in_with"
data-size="large"
data-logo_alignment="left">
</div>
</div>
<button onclick="saveUsername()">Begin Your Spiritual Journey</button>
<div class="login">
Already on the path? <a class="login-link" href="./login.html">Login</a>
</div>
</form>
</div>
<footer>
<p>© 2023 Krishna Bhakti Forum. All rights reserved.</p>
</footer>
</div>
<!-- Chatbot code added here -->
<a href="chatbot.html">
<div class="fixed bottom-0 right-2 chatbot-container">
<button class="chatbot-button group">
<img class="h-20" src="panditji.png" alt="chatbot" />
<span class="tooltip-text">
Radhe Radhe🙏<br />
How can I help You?🌸
</span>
</button>
</div>
</a>
<script>
function saveUsername() {
const username = document.getElementById("username").value;
const password = document.getElementById("password").value;
localStorage.setItem("username", username);
localStorage.setItem("password", password);
}
</script>
</body>
</html>