forked from anuragverma108/WildGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.html
530 lines (469 loc) · 12.3 KB
/
user.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
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>User Profile</title>
<!-- Add Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap"
rel="stylesheet"
/>
<!-- Add icon library for social media icons -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background-color: #f7f7f7;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-direction: column;
padding: 20px;
}
.home-btn {
position: absolute;
top: 20px;
left: 20px;
background-color: #4caf50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
text-decoration: none;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.home-btn:hover {
background-color: #45a049;
}
.user-container {
width: 100%;
max-width: 400px;
background-color: #fff;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
padding: 25px;
text-align: center;
margin-bottom: 20px;
}
.user-container img {
width: 100px;
height: 100px;
border-radius: 50%;
margin-bottom: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.user-container h1 {
font-size: 26px;
font-weight: 600;
color: #333;
margin-bottom: 5px;
}
.user-container p.title {
font-size: 16px;
color: #666;
margin-bottom: 15px;
}
.user-info {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.user-info div {
text-align: center;
}
.user-info div h3 {
font-size: 18px;
color: #333;
margin-bottom: 5px;
}
.user-info div p {
color: #777;
font-size: 14px;
}
a {
text-decoration: none;
font-size: 22px;
color: #555;
margin: 0 10px;
transition: color 0.3s, transform 0.3s;
}
a:hover {
color: #1db954;
transform: scale(1.1);
}
.btn-logout {
background-color: #1db954;
color: white;
padding: 10px 25px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
margin-top: 15px;
}
.btn-logout:hover {
background-color: #159f42;
transform: translateY(-2px);
}
.bio {
text-align: left;
margin-top: 20px;
}
.bio h2 {
font-size: 20px;
color: #333;
margin-bottom: 10px;
}
.bio p {
color: #555;
line-height: 1.6;
}
.skills {
margin-top: 30px;
text-align: left;
}
.skills h2 {
font-size: 20px;
color: #333;
margin-bottom: 10px;
}
.skills ul {
list-style: none;
padding-left: 0;
}
.skills ul li {
background-color: #e0f7e0;
padding: 8px 12px;
border-radius: 20px;
display: inline-block;
margin: 5px;
font-size: 14px;
color: #2c662d;
}
.follow-more {
margin-top: 30px;
text-align: left;
}
.follow-more h2 {
font-size: 20px;
color: #333;
margin-bottom: 15px;
}
.mini-cards {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.mini-card {
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 75px;
text-align: center;
padding: 10px;
margin: 5px;
border-radius: 8px;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for pop effect */
}
.mini-card img {
width: 50px;
height: 50px;
border-radius: 50%;
margin-bottom: 8px;
}
.mini-card p {
font-size: 12px;
color: #333;
}
/* Pop effect on hover */
.mini-card:hover {
transform: scale(1.1); /* Slightly increase the size of the card */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Make the shadow stronger when hovered */
}
.activity-feed {
margin-top: 30px;
text-align: left;
}
.activity-feed h2 {
font-size: 20px;
color: #333;
margin-bottom: 10px;
}
.activity-feed ul {
list-style: none;
padding-left: 0;
}
.activity-feed ul li {
background-color: #fff;
border-radius: 8px;
padding: 10px;
margin-bottom: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
font-size: 14px;
color: #555;
}
/* New styles for badges */
.badges {
margin-top: 30px;
text-align: left;
}
.badges h2 {
font-size: 20px;
color: #333;
margin-bottom: 10px;
}
.badge {
background-color: #f0f0f0;
color: #333;
padding: 5px 10px;
border-radius: 15px;
display: inline-block;
margin: 5px;
font-size: 12px;
}
/* New styles for the progress bar */
.progress-container {
margin-top: 20px;
text-align: left;
}
.progress-bar {
width: 100%;
background-color: #e0e0e0;
border-radius: 10px;
overflow: hidden;
}
.progress {
width: 75%;
height: 20px;
background-color: #4caf50;
text-align: center;
line-height: 20px;
color: white;
}
/* New styles for the tabbed content */
.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
border-radius: 5px 5px 0 0;
}
.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 14px;
}
.tab button:hover {
background-color: #ddd;
}
.tab button.active {
background-color: #ccc;
}
.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
border-radius: 0 0 5px 5px;
}
@media (max-width: 600px) {
.user-container {
padding: 15px;
max-width: 90%;
}
.user-info div h3 {
font-size: 16px;
}
.btn-logout {
font-size: 14px;
padding: 8px 15px;
}
.mini-card {
width: 60px;
}
.mini-card p {
font-size: 10px;
}
}
</style>
</head>
<body>
<!-- Home Button -->
<a href="index.html" class="home-btn">Home</a>
<div class="user-container">
<img
src="https://randomuser.me/api/portraits/thumb/men/77.jpg"
alt="User Profile Picture"
/>
<h1>Arman Bhadoriya</h1>
<p class="title">CEO & Founder, Example</p>
<p>Harvard University</p>
<div class="user-info">
<div>
<h3>120</h3>
<p>Followers</p>
</div>
<div>
<h3>80</h3>
<p>Following</p>
</div>
<div>
<h3>15</h3>
<p>Posts</p>
</div>
</div>
<!-- Social Media Links -->
<div class="social-links">
<a href="#"><i class="fa fa-dribbble"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
</div>
<!-- Contact Button -->
<button class="btn-logout">view more</button>
<!-- New: Progress bar -->
<div class="progress-container">
<h3>Profile Completion</h3>
<div class="progress-bar">
<div class="progress">75%</div>
</div>
</div>
<!-- New: Tabbed content -->
<div class="tab">
<button
class="tablinks"
onclick="openTab(event, 'About')"
id="defaultOpen"
>
About
</button>
<button class="tablinks" onclick="openTab(event, 'Badges')">
Badges
</button>
<button class="tablinks" onclick="openTab(event, 'Activity')">
Activity
</button>
</div>
<div id="About" class="tabcontent">
<!-- Bio Section -->
<div class="bio">
<h2>About Arman</h2>
<p>
Arman Bhadoriya is a tech enthusiast and entrepreneur with a passion
for creating innovative solutions. With a background in software
engineering, he has built a number of successful projects and
startups in the tech industry.
</p>
</div>
</div>
<div id="Badges" class="tabcontent">
<!-- Skills Section -->
<div class="badges">
<h2>Badges</h2>
<div class="badge">First Animal Adopted</div>
<div class="badge">Top Contributor 2024</div>
<div class="badge">Community Builder</div>
<div class="badge">100 Days of Code</div>
<div class="badge">Beta Tester</div>
</div>
</div>
<div id="Activity" class="tabcontent">
<!-- Activity Feed Section -->
<div class="activity-feed">
<h2>Recent Activity</h2>
<ul>
<li>Arman shared a post about AI and its future in tech.</li>
<li>
Started following
<strong>Sara</strong>
and
<strong>John</strong>
.
</li>
<li>Updated profile picture.</li>
<li>
Commented on
<strong>Chris's</strong>
post.
</li>
</ul>
</div>
</div>
</div>
<!-- Follow More Section -->
<div class="follow-more">
<h2>Follow More</h2>
<div class="mini-cards">
<div class="mini-card">
<img
src="https://randomuser.me/api/portraits/thumb/women/65.jpg"
alt="User Profile"
/>
<p>Sara</p>
</div>
<div class="mini-card">
<img
src="https://randomuser.me/api/portraits/thumb/men/80.jpg"
alt="User Profile"
/>
<p>John</p>
</div>
<div class="mini-card">
<img
src="https://randomuser.me/api/portraits/thumb/women/47.jpg"
alt="User Profile"
/>
<p>Emma</p>
</div>
<div class="mini-card">
<img
src="https://randomuser.me/api/portraits/thumb/men/52.jpg"
alt="User Profile"
/>
<p>Chris</p>
</div>
<div class="mini-card">
<img
src="https://randomuser.me/api/portraits/thumb/women/50.jpg"
alt="User Profile"
/>
<p>Lisa</p>
</div>
</div>
</div>
<!-- New: JavaScript for tabbed content -->
<script>
function openTab(evt, tabName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName('tabcontent');
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = 'none';
}
tablinks = document.getElementsByClassName('tablinks');
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(' active', '');
}
document.getElementById(tabName).style.display = 'block';
evt.currentTarget.className += ' active';
}
// Get the element with id="defaultOpen" and click on it
document.getElementById('defaultOpen').click();
</script>
</body>
</html>