-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommunity.html
More file actions
366 lines (330 loc) · 16.3 KB
/
Copy pathcommunity.html
File metadata and controls
366 lines (330 loc) · 16.3 KB
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="asyncPranav - Pranav singh chandel">
<title>Community Q&A - Know Your DBT-Enabled Account</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="assets/js/community.js" defer></script>
<style>
.fade-in {
animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.question-card:hover {
transform: translateY(-2px);
}
</style>
</head>
<body class="bg-[#f0f7ff] text-gray-800 font-sans">
<!-- Header -->
<header class="bg-white shadow sticky top-0 z-50">
<div class="max-w-7xl mx-auto flex justify-between items-center px-6 py-4">
<!-- Logo + Title -->
<a href="index.html" class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-gradient-to-r from-blue-500 to-green-500 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-white" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 14l9-5-9-5-9 5 9 5z" />
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 14l6.16-3.42A12.083 12.083 0 0112 21.5 12.083 12.083 0 015.84 10.58L12 14z" />
</svg>
</div>
<div>
<p class="font-bold text-lg text-gray-900">Know Your DBT Account</p>
<p class="text-xs text-gray-500">Ministry of Social Justice & Empowerment</p>
</div>
</a>
<!-- Desktop Navigation -->
<nav class="hidden md:flex items-center space-x-6 font-medium">
<a href="index.html" class="text-blue-600 font-semibold">Home</a>
<a href="difference.html" class="hover:text-blue-600 transition font-semibold">What's the Difference?</a>
<a href="check-status.html" class="hover:text-blue-600 transition font-semibold">Check Status</a>
<a href="enable-dbt.html" class="hover:text-blue-600 transition font-semibold">Setup Guide</a>
<a href="quiz.html" class="hover:text-blue-600 font-semibold">Quiz</a>
<a href="support.html" class="hover:text-blue-600 transition font-semibold">Support</a>
</nav>
<!-- Language Selector - Desktop -->
<div class="hidden md:block ml-4">
<select id="languageSelectDesktop"
class="border border-gray-300 text-sm rounded px-2 py-1 focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="en" selected>English</option>
<option value="hi">हिन्दी</option>
<option value="mr">मराठी</option>
<option value="bn">বাংলা</option>
<option value="ta">தமிழ்</option>
<option value="ml">മലയാളം</option>
</select>
</div>
<!-- Hamburger Menu - Mobile -->
<button id="menuBtn"
class="md:hidden text-gray-600 hover:text-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-400"
aria-label="Open menu">
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu"
class="fixed top-0 right-0 h-full w-64 bg-white shadow-lg transform translate-x-full transition-transform duration-300 z-50 md:hidden"
role="dialog" aria-modal="true" aria-labelledby="mobileMenuLabel">
<!-- Top Header: Logo + Title + Close -->
<div class="p-4 flex justify-between items-center border-b">
<div class="flex items-center gap-2">
<div class="w-8 h-8 rounded-full bg-gradient-to-r from-blue-500 to-green-500 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 text-white" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 14l9-5-9-5-9 5 9 5z" />
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 14l6.16-3.42A12.083 12.083 0 0112 21.5 12.083 12.083 0 015.84 10.58L12 14z" />
</svg>
</div>
<h2 id="mobileMenuLabel" class="font-semibold text-sm text-black-600">DBT Account Guide</h2>
</div>
<button id="closeMenu"
class="text-gray-600 hover:text-red-500 focus:outline-none focus:ring-2 focus:ring-red-400"
aria-label="Close menu">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<!-- Mobile Nav Links -->
<nav class="flex flex-col space-y-4 p-4 text-gray-700">
<a href="index.html" class="text-blue-600 font-semibold">Home</a>
<a href="difference.html" class="hover:text-blue-600 font-semibold">What's the Difference?</a>
<a href="check-status.html" class="hover:text-blue-600 font-semibold">Check Status</a>
<a href="enable-dbt.html" class="hover:text-blue-600 font-semibold">Setup Guide</a>
<a href="quiz.html" class="hover:text-blue-600 font-semibold">Quiz</a>
<a href="support.html" class="hover:text-blue-600 font-semibold">Support</a>
</nav>
<!-- Language Selector - Mobile -->
<div class="p-4 border-t">
<label for="languageSelectMobile" class="block text-sm font-medium text-gray-700 mb-1">Select Language</label>
<select id="languageSelectMobile"
class="w-full border border-gray-300 text-sm rounded px-2 py-1 focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="en" selected>English</option>
<option value="hi">हिन्दी</option>
<option value="mr">मराठी</option>
<option value="bn">বাংলা</option>
<option value="ta">தமிழ்</option>
<option value="ml">മലയാളം</option>
</select>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="text-center px-4 py-12 bg-[#f0f7ff]">
<div class="max-w-3xl mx-auto">
<span class="text-indigo-700 bg-indigo-100 text-sm font-semibold px-3 py-1 rounded-full inline-block mb-4">
Community Support
</span>
<h1 class="text-4xl font-bold leading-tight mb-4">
Community <span class="text-blue-600">Q&A</span>
</h1>
<p class="text-gray-600 text-lg mb-8">
Get help from fellow students and experts. Ask questions, share experiences, and learn together about
DBT-enabled accounts and scholarships.
</p>
<button id="askQuestionBtn"
class="bg-blue-600 text-white px-6 py-3 rounded-lg text-lg font-semibold hover:bg-blue-700 transition">
Ask a Question
</button>
</div>
</section>
<!-- Stats Section -->
<section class="py-8 bg-white">
<div class="max-w-5xl mx-auto px-4 grid grid-cols-2 lg:grid-cols-4 gap-6 text-center">
<div class="bg-blue-50 rounded-lg p-4">
<div class="text-2xl text-blue-600 font-bold">1,247</div>
<p class="text-sm text-gray-600">Questions Asked</p>
</div>
<div class="bg-green-50 rounded-lg p-4">
<div class="text-2xl text-green-600 font-bold">1,189</div>
<p class="text-sm text-gray-600">Questions Answered</p>
</div>
<div class="bg-purple-50 rounded-lg p-4">
<div class="text-2xl text-purple-600 font-bold">847</div>
<p class="text-sm text-gray-600">Active Members</p>
</div>
<div class="bg-orange-50 rounded-lg p-4">
<div class="text-2xl text-orange-500 font-bold">95%</div>
<p class="text-sm text-gray-600">Satisfaction Rate</p>
</div>
</div>
</section>
<!-- Ask Question Modal -->
<div id="questionModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl p-6 w-full max-w-2xl mx-4 max-h-[90vh] overflow-y-auto">
<div class="flex justify-between items-center mb-4">
<h3 class="text-xl font-bold text-gray-800">Ask Your Question</h3>
<button id="closeModal" class="text-gray-400 hover:text-gray-600">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<form id="questionForm" class="space-y-4">
<div>
<label for="questionTitle" class="block text-sm font-medium text-gray-700 mb-2">Question Title</label>
<input type="text" id="questionTitle" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="What's your question about?">
</div>
<div>
<label for="questionDetails" class="block text-sm font-medium text-gray-700 mb-2">Question Details</label>
<textarea id="questionDetails" rows="4" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="Describe your question in detail..."></textarea>
</div>
<div>
<label for="questionCategory" class="block text-sm font-medium text-gray-700 mb-2">Category</label>
<select id="questionCategory"
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
<option value="dbt-setup">DBT Setup</option>
<option value="account-linking">Account Linking</option>
<option value="scholarships">Scholarships</option>
<option value="technical-issues">Technical Issues</option>
<option value="general">General</option>
</select>
</div>
<div>
<label for="userName" class="block text-sm font-medium text-gray-700 mb-2">Your Name</label>
<input type="text" id="userName" required
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="Enter your name">
</div>
<div class="flex justify-end space-x-3 pt-4">
<button type="button" id="cancelQuestion" class="px-4 py-2 text-gray-600 hover:text-gray-800">Cancel</button>
<button type="submit" class="bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition">
Post Question
</button>
</div>
</form>
</div>
</div>
<!-- Search and Filter Section -->
<section class="py-8 bg-[#f9fcff]">
<div class="max-w-4xl mx-auto px-4">
<div class="flex flex-col sm:flex-row gap-4 items-center">
<div class="flex-1">
<div class="relative">
<input type="text" id="searchQuestions"
class="w-full px-4 py-3 pl-10 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="Search questions...">
<svg class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400 w-5 h-5" fill="none"
stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
</svg>
</div>
</div>
<select id="categoryFilter"
class="px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
<option value="">All Categories</option>
<option value="dbt-setup">DBT Setup</option>
<option value="account-linking">Account Linking</option>
<option value="scholarships">Scholarships</option>
<option value="technical-issues">Technical Issues</option>
<option value="general">General</option>
</select>
</div>
</div>
</section>
<!-- Questions Section -->
<section class="py-8 bg-white">
<div class="max-w-4xl mx-auto px-4">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Recent Questions</h2>
<div class="flex space-x-2">
<button id="sortRecent" class="px-3 py-1 text-sm bg-blue-100 text-blue-700 rounded-full">Recent</button>
<button id="sortPopular"
class="px-3 py-1 text-sm text-gray-600 hover:bg-gray-100 rounded-full">Popular</button>
<button id="sortUnanswered"
class="px-3 py-1 text-sm text-gray-600 hover:bg-gray-100 rounded-full">Unanswered</button>
</div>
</div>
<div id="questionsContainer" class="space-y-6">
<!-- Questions will be dynamically loaded here -->
</div>
<!-- Load More Button -->
<div class="text-center mt-8">
<button id="loadMore" class="px-6 py-3 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">
Load More Questions
</button>
</div>
</div>
</section>
<!-- Expert Help Section -->
<section class="mt-12 bg-gradient-to-r from-green-500 to-blue-600 text-white rounded-lg p-8 text-center shadow py-12">
<div class="max-w-4xl mx-auto px-4 text-center">
<h2 class="text-3xl font-bold mb-4">Need Expert Help?</h2>
<p class="text-blue-100 mb-6">Our team of experts is available to help with complex questions</p>
<div class="grid sm:grid-cols-2 gap-6">
<div class="bg-white bg-opacity-10 rounded-lg p-6">
<div class="text-3xl mb-2">👨💼</div>
<h3 class="font-semibold mb-2">Banking Experts</h3>
<p class="text-sm text-blue-100">Get help with account setup and DBT configurations</p>
</div>
<div class="bg-white bg-opacity-10 rounded-lg p-6">
<div class="text-3xl mb-2">🎓</div>
<h3 class="font-semibold mb-2">Scholarship Advisors</h3>
<p class="text-sm text-blue-100">Expert guidance on scholarship applications and processes</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-[#0b1223] text-white pt-12 pb-6">
<div class="max-w-7xl mx-auto px-4 grid grid-cols-1 sm:grid-cols-3 gap-8 border-b border-gray-700 pb-8">
<div>
<div class="flex items-center gap-2 mb-3">
<div class="bg-gradient-to-r from-blue-500 to-green-500 p-2 rounded-full">
<svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
</svg>
</div>
<span class="font-semibold text-lg">Know Your DBT Account</span>
</div>
<p class="text-sm text-gray-300">
Empowering students with knowledge about DBT-enabled bank accounts for seamless scholarship processing.
</p>
</div>
<div>
<h3 class="font-semibold text-white mb-3">Quick Links</h3>
<ul class="space-y-2 text-sm text-gray-300">
<li><a href="index.html" class="hover:text-white">Home</a></li>
<li><a href="difference.html" class="hover:text-white">Account Types</a></li>
<li><a href="enable-dbt.html" class="hover:text-white">Setup Guide</a></li>
<li><a href="check-status.html" class="hover:text-white">Check Status</a></li>
</ul>
</div>
<div>
<h3 class="font-semibold text-white mb-3">Support</h3>
<ul class="space-y-2 text-sm text-gray-300">
<li><strong>UIDAI Helpline:</strong> 1947</li>
<li><strong>NPCI Helpline:</strong> 1800–1201–1947</li>
<li><strong>Scholarship Portal:</strong> <a href="https://scholarships.gov.in"
class="underline hover:text-white">scholarships.gov.in</a></li>
<li><strong>Email:</strong> <a href="mailto:support@dbtguide.gov.in"
class="underline hover:text-white">support@dbtguide.gov.in</a></li>
</ul>
</div>
</div>
<div class="text-center text-xs text-gray-400 mt-6">
© 2024 Government of India. Developed for educational awareness.
</div>
</footer>
</body>
</html>