-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.html
More file actions
288 lines (242 loc) · 12.8 KB
/
profile.html
File metadata and controls
288 lines (242 loc) · 12.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Data.Doner - Profile </title>
<link rel="stylesheet" href="src/css/style.css">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="icon" href="/src/images/data.doner_icon.png" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Exo+2:ital,wght@0,100..900;1,100..900&family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Share+Tech+Mono&family=Space+Grotesk:wght@300..700&family=Teko:wght@300..700&display=swap"
rel="stylesheet">
</head>
<body class="bg-red-50" style=" font-family: 'Jost', serif;">
<header class="z-10"> </header>
<main class="mt-16 md:px-36 p-8 md:p-2">
<section class="w-full md:max-w-6xl mx-auto p-6 bg-white rounded-lg shadow-lg text-md">
<div class="container mx-auto bg-white lg:px-12 rounded-xl overflow-hidden py-6 ">
<div class="grid md:grid-cols-12 items-center gap-2 lg:gap-4">
<!-- Profile Image -->
<div class="col-span-12 md:col-span-5 text-center md:text-left">
<div class="flex justify-start gap-8 items-center">
<div class="relative">
<div
class="w-24 lg:w-32 h-24 lg:h-32 rounded-full bg-gray-200 overflow-hidden border-4 border-white shadow-lg">
<img id="profile-image" src="" alt="Profile Image">
</div>
<button id="editImageButton"
class="absolute bottom-2 right-2 text-black transition-transform transform hover:scale-110">
<!-- Pencil Icon -->
<i class="fas fa-pencil-alt px-2 py-2 rounded-full bg-gray-200 hover:bg-gray-300 shadow-lg"></i>
</button>
</div>
<div class="text-left">
<h1 id="username" class="lg:text-3xl font-semibold text-gray-800">Anninomius</h1>
<p class="opacity-80 mt-1 text-xs">Blood Group: <span class="font-semibold lg:text-xl text-red-600"
id="blood-group"></span></p>
<p id="join-date" class="mt-2 text-xs text-gray-500">Joined: </p>
</div>
</div>
</div>
<!-- User Details Section -->
<div class="col-span-12 md:col-span-7 flex justify-around items-center gap-2 text-sm text-center">
<div
class="bg-red-200 rounded-xl p-4 lg:p-6 hover:shadow-lg transition-all duration-300 transform hover:scale-105 m-2 md:m-0">
<p id="total-donations" class="text-md md:text-2xl font-bold text-red-500">0</p>
<p class="text-gray-600 text-xs">Total Donations</p>
</div>
<div
class="bg-red-200 rounded-xl p-4 lg:p-6 hover:shadow-lg transition-all duration-300 transform hover:scale-105 m-2 md:m-0">
<p id="fulfilled-requests" class="text-md md:text-2xl font-bold text-red-500">0</p>
<p class="text-gray-600 text-xs">Requests Fulfilled</p>
</div>
<div
class="bg-red-200 rounded-xl p-4 lg:p-6 hover:shadow-lg transition-all duration-300 transform hover:scale-105 m-2 md:m-0">
<p id="last-donation-date" class="text-md md:text-2xl font-bold text-red-500"> N/A</p>
<p class="text-gray-600 text-xs">Last Donation</p>
</div>
</div>
</div>
<!-- -->
<div class="pt-8 px-4">
<h2 class="text-lg font-semibold mb-4 text-gray-800">User Details</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-12 ">
<!-- User Details -->
<div class="flex flex-col gap-2">
<div class="bg-gray-50 px-4 py-2 rounded-lg shadow">
<p class="text-gray-600">Name</p>
<p id="full-name" class="font-medium"></p>
</div>
<div class="bg-gray-50 px-4 py-2 rounded-lg shadow">
<p class="text-gray-600">Email</p>
<p id="user-email" class="font-medium"></p>
</div>
<div class="bg-gray-50 px-4 py-2 rounded-lg ">
<!-- Social Media Links -->
<h3 class=" font-semibold text-gray-800">Connect with John</h3>
<div class="flex items-center gap-4 text-gray-900">
<!-- Twitter -->
<a href="" target="_blank" class=" px-3 py-2 rounded-full transition duration-300">
<i class="fab fa-twitter "></i>
</a>
<!-- Facebook -->
<a href="" target="_blank" class="px-3 py-2 rounded-full transition duration-300">
<i class="fab fa-facebook-f "></i>
</a>
<!-- LinkedIn -->
<a href="" target="_blank" class=" px-3 py-2 rounded-full transition duration-300">
<i class="fab fa-linkedin-in "></i>
</a>
</div>
</div>
</div>
<div class="flex flex-col gap-2">
<div class="bg-gray-50 px-4 py-2 rounded-lg shadow">
<p class="text-gray-600">Phone</p>
<p id="user-phone" class="font-medium"></p>
</div>
<div class="bg-gray-50 px-4 py-2 rounded-lg shadow">
<p class="text-gray-600">Location</p>
<p id="user-location" class="font-medium"></p>
</div>
<div class="bg-gray-50 px-4 py-2 rounded-lg shadow">
<p class="text-gray-600">Age, Gender</p>
<p id="age-gender" class="font-medium"></p>
</div>
</div>
</div>
</div>
<!-- History of user -->
<div class="pb-4 px-4">
<nav class="container mx-auto justify-end py-3 flex">
<!-- Navigation Options -->
<ul class="flex z-1 gap-4 text-gray-700 text-sm" id="doner_request_header">
<!-- Donate Option -->
<li class="relative">
<button id="donate-btn"
class="text-md rounded bg-gray-300 px-4 py-2 font-semibold text-gray-800 mb-1 hover:text-red-600">Donate</button>
<ul id="donate-dropdown"
class=" absolute bg-white border border-gray-300 rounded shadow-lg w-40 hidden">
<li data-target="donated_blood" class="px-4 py-2 hover:bg-red-500 hover:text-white cursor-pointer">
Receiver</li>
<li data-target="received_blood" class="px-4 py-2 hover:bg-red-500 hover:text-white cursor-pointer">
Collected</li>
</ul>
</li>
<!-- Request Option -->
<li class="relative">
<button id="request-btn"
class="text-md rounded bg-gray-300 px-4 py-2 font-semibold text-gray-800 mb-1 hover:text-red-600">Event
Request</button>
<ul id="request-dropdown"
class=" absolute bg-white border border-gray-300 rounded shadow-lg w-40 hidden">
<li data-target="accepted_events" class="px-4 py-2 hover:bg-red-500 hover:text-white cursor-pointer">
Accepted Events</li>
<p class="text-xs text-right px-4"> -Your Events- </p>
<hr class="bg-gray-900 h-[2px]">
<li data-target="request_ongoing" class="px-4 py-2 hover:bg-red-500 hover:text-white cursor-pointer">
Ongoing</li>
<li data-target="request_pending"
class="px-4 py-2 hover:bg-red-500 hover:text-white cursor-pointer">Pending</li>
<li data-target="request_completed"
class="px-4 py-2 hover:bg-red-500 hover:text-white cursor-pointer">Completed</li>
</ul>
</li>
</ul>
</nav>
<!-- Section of Histroy -->
<div id="donate_section" class="">
<!-- Donors Section -->
<h2 class="text-lg font-semibold text-gray-800 mb-4">People Who you Donated Blood</h2>
<div class="p-8 rounded-lg bg-gray-50 border-[1px] border-gray-400 h-96 overflow-y-auto">
<div id="donated_blood" class=" ">
<h1>Whos user you donate you blood</h1>
<!-- Donor List -->
<div class="overflow-y-auto mt-6">
<ul class="space-y-4"> </ul>
</div>
</div>
<div id="received_blood" class="hidden">
<h1>Donate Pending Content</h1>
<!-- Donor List -->
<div class="overflow-y-auto max-h-52 mt-6">
<ul class="space-y-4"> </ul>
</div>
</div>
</div>
</div>
<div id="request_section" class="hidden">
<h2 class="text-lg font-semibold text-gray-800 mb-4">Your all Event Requests</h2>
<!-- Request Section -->
<div class="p-8 rounded-lg bg-gray-50 border-[1px] border-gray-400 h-96 overflow-y-auto">
<div id="accepted_events" class="hidden">
<h1> Accepted all Events </h1>
<div class="overflow-y-auto mt-6 items-center ">
<ul class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 justify-between justify-center gap-4"> </ul>
</ul>
</div>
</div>
<div id="request_ongoing" class="hidden">
<h1> Request Ongoing Content </h1>
<div class="overflow-y-auto mt-6 items-center ">
<ul class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 justify-between justify-center gap-4"> </ul>
</div>
</div>
<div id="request_pending" class="hidden">
<h1> Request Pending Content </h1>
<div class="overflow-y-auto mt-6 items-center ">
<ul class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 justify-between justify-center gap-4"> </ul>
</div>
</div>
<div id="request_completed" class="">
<h1> Request Completed Content </h1>
<div class="overflow-y-auto mt-6 items-center ">
<ul class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 justify-between justify-center gap-4"> </ul>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Image change POPUP form -->
<div id="imageModal" class="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center hidden">
<div class="bg-white p-6 rounded-md shadow-lg w-96 relative">
<button id="closeModal" class="absolute top-2 right-2 py-2 px-3 text-gray-900 font-bold rounded-full">
<i class="fas fa-times"></i></button>
<h2 class="text-xl font-semibold mb-4">Edit Your Profile Image</h2>
<form method="post" enctype="multipart/form-data" id="update-image">
<!-- <div>
<label for="id_image" class="block font-medium text-gray-700 mb-2">Change Profile Image</label>
<div>No image uploaded yet</div>
</div> -->
<!-- <div>
<input type="checkbox" name="image-clear" id="image-clear_id" class="mt-2">
<label for="image-clear_id" class="ml-2">Clear Image</label>
</div> -->
<div>
<input type="file" name="image" accept="image/*"
class="w-full mt-2 p-2 border border-gray-300 rounded-md text-gray-900 placeholder-gray-500 focus:border-red-600 focus:outline-none hover:border-gray-400 transition-all duration-200 ease-in-out"
id="id_image" />
</div>
<button type="submit"
class="bg-gray-200 text-gray-800 hover:text-gray-900 py-2 px-6 mt-6 rounded-lg font-semibold hover:bg-gray-300 transition flex items-center justify-center space-x-2">
Save
</button>
</form>
</div>
</div>
<footer></footer>
<script src="src/js/header.js"></script>
<script src="src/js/footer.js"></script>
<script src="src/js/logout.js"></script>
<script src="src/js/profile.js"></script>
</body>
</html>