-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
433 lines (370 loc) · 12.7 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<title>Pratik certifications</title>
<style>
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
nav {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
position: sticky;
top: 0;
z-index: 1000;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: space-around;
}
nav ul li {
margin: 0 10px;
}
nav ul li a {
text-decoration: none;
color: #ffa500; /* Faint orange */
font-weight: bold;
transition: color 0.3s;
}
nav ul li a:hover {
color: #ff4500; /* Dark orange */
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin: 20px;
}
.gallery figure {
position: relative;
margin: 10px;
overflow: hidden;
cursor: pointer;
max-width: 300px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-out;
}
.gallery figure:hover {
transform: translateY(-5px);
}
.gallery img {
display: block;
width: 100%;
height: auto;
}
.gallery figcaption {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
font-size: 14px;
text-align: center;
opacity: 0;
transition: opacity 0.3s ease-out;
}
.gallery figure:hover figcaption {
opacity: 1;
}
.popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease-out;
}
.popup.show {
opacity: 1;
pointer-events: auto;
}
.popup-content {
position: relative;
max-width: 90%;
max-height: 90%;
overflow: auto;
background-color: #fff;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.popup-content img {
display: block;
max-width: 100%;
max-height: 100%;
margin: auto;
}
.close-btn {
position: absolute;
top: 10px;
right: 10px;
color: #000;
font-size: 24px;
cursor: pointer;
transition: transform 0.3s ease-out;
}
.close-btn:hover {
transform: scale(1.2);
}
.validate-btn {
align-self: flex-end;
margin-top: 10px;
padding: 8px 16px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
.validate-btn:hover {
background-color: #45a049;
}
footer {
background-color: #fff;
text-align: center;
padding: 10px 0;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
margin-top: 20px;
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="https://pratik-khose.netlify.app/">Home</a></li>
</ul>
</nav>
<div class="gallery">
<figure data-cert-id="cisco">
<a href="?cert=cisco">
<img src="certificates/ciscojan2023.jpg" alt="Cisco HTML">
<figcaption>Cisco HTML</figcaption>
</a>
</figure>
<figure data-cert-id="google-ai">
<a href="?cert=google-ai">
<img src="certificates/developergoogleai.jpg" alt="Google AI Developer">
<figcaption>Google AI Developer</figcaption>
</a>
</figure>
<figure data-cert-id="google-cpp-dsa">
<a href="?cert=google-cpp-dsa">
<img src="certificates/developergooglec++dsa.jpg" alt="Google C++ DSA">
<figcaption>Google C++ DSA</figcaption>
</a>
</figure>
<figure data-cert-id="ge-certification">
<a href="?cert=ge-certification">
<img src="certificates/gesept22.jpg" alt="GE Certification">
<figcaption>GE Certification</figcaption>
</a>
</figure>
<figure data-cert-id="google-digital-marketing">
<a href="?cert=google-digital-marketing">
<img src="certificates/googledigitalmarktoct22.jpg" alt="Google Digital Marketing">
<figcaption>Google Digital Marketing</figcaption>
</a>
</figure>
<figure data-cert-id="hr-certification">
<a href="?cert=hr-certification">
<img src="certificates/hroct22.jpg" alt="HR Certification">
<figcaption>HR Certification</figcaption>
</a>
</figure>
<figure data-cert-id="learntube-java">
<a href="?cert=learntube-java">
<img src="certificates/learntubejava22.jpg" alt="LearnTube Java Certification">
<figcaption>LearnTube Java Certification</figcaption>
</a>
</figure>
<figure data-cert-id="marky-certification">
<a href="?cert=marky-certification">
<img src="certificates/markyotsept22.jpg" alt="Marky Certification">
<figcaption>Marky Certification</figcaption>
</a>
</figure>
<figure data-cert-id="microsoft-ai">
<a href="?cert=microsoft-ai">
<img src="certificates/microsoftai.jpg" alt="Microsoft AI Certification">
<figcaption>Microsoft AI Certification</figcaption>
</a>
</figure>
<figure data-cert-id="microsoft-ai-sept22">
<a href="?cert=microsoft-ai-sept22">
<img src="certificates/microsoftaisept22.jpg" alt="Microsoft AI Sept 2022">
<figcaption>Microsoft AI Sept 2022</figcaption>
</a>
</figure>
<figure data-cert-id="microsoft-cpp-dsa">
<a href="?cert=microsoft-cpp-dsa">
<img src="certificates/microsoftc++dsa.jpg" alt="Microsoft C++ DSA">
<figcaption>Microsoft C++ DSA</figcaption>
</a>
</figure>
<figure data-cert-id="microsoft-cpp-dsa-sept22">
<a href="?cert=microsoft-cpp-dsa-sept22">
<img src="certificates/microsoftc++dsasept22.jpg" alt="Microsoft C++ DSA Sept 2022">
<figcaption>Microsoft C++ DSA Sept 2022</figcaption>
</a>
</figure>
<figure data-cert-id="perfect-oop-oct22">
<a href="?cert=perfect-oop-oct22">
<img src="certificates/perfectoopoct22.jpg" alt="Perfect OOP Oct 2022">
<figcaption>Perfect OOP Oct 2022</figcaption>
</a>
</figure>
<figure data-cert-id="tcs-ion">
<a href="?cert=tcs-ion">
<img src="certificates/tcsion.jpg" alt="TCS iON Certification">
<figcaption>TCS iON Certification</figcaption>
</a>
</figure>
<figure data-cert-id="walmart-sept22">
<a href="?cert=walmart-sept22">
<img src="certificates/walmartsept22.jpg" alt="Walmart Sept 2022">
<figcaption>Walmart Sept 2022</figcaption>
</a>
</figure>
<figure data-cert-id="gr8-python">
<a href="?cert=gr8-python">
<img src="certificates/gr8python.jpeg" alt="Great Python Certification">
<figcaption>Great Python Certification</figcaption>
</a>
</figure>
<figure data-cert-id="guvi-python">
<a href="?cert=guvi-python">
<img src="certificates/guvipython.jpeg" alt="GUVI Python Certification">
<figcaption>GUVI Python Certification</figcaption>
</a>
</figure>
<figure data-cert-id="simplilearn-sql">
<a href="?cert=simplilearn-sql">
<img src="certificates/simpllearnsql.png" alt="Simplilearn SQL Certification">
<figcaption>Simplilearn SQL Certification</figcaption>
</a>
</figure>
<figure data-cert-id="cloud-essentials">
<a href="?cert=cloud-essentials">
<img src="certificates/0.png" alt="Cloud Essentials">
<figcaption>Cloud Essentials</figcaption>
</a>
</figure>
<figure data-cert-id="aws-billing">
<a href="?cert=aws-billing">
<img src="certificates/1.png" alt="AWS Billing and Cost Management">
<figcaption>AWS Billing and Cost Management</figcaption>
</a>
</figure>
<figure data-cert-id="aws-cloud-practioner">
<a href="?cert=aws-cloud-practioner">
<img src="certificates/3.png" alt="AWS Cloud Practitioner Essentials">
<figcaption>AWS Cloud Practitioner Essentials</figcaption>
</a>
</figure>
<figure data-cert-id="aws-foundations">
<a href="?cert=aws-foundations">
<img src="certificates/4.png" alt="AWS Foundations">
<figcaption>AWS Foundations</figcaption>
</a>
</figure>
<figure data-cert-id="job-roles-cloud">
<a href="?cert=job-roles-cloud">
<img src="certificates/5.png" alt="Job Roles in the Cloud">
<figcaption>Job Roles in the Cloud</figcaption>
</a>
</figure>
<figure data-cert-id="cloud-acquisition">
<a href="?cert=cloud-acquisition">
<img src="certificates/6.png" alt="Getting Started with Cloud Acquisition">
<figcaption>Getting Started with Cloud Acquisition</figcaption>
</a>
</figure>
</div>
<div class="popup">
<div class="popup-content">
<span class="close-btn">×</span>
<img src="" alt="">
</div>
</div>
<footer>
© Valid and Verified
</footer>
<script>
const gallery = document.querySelector('.gallery');
const popup = document.querySelector('.popup');
const popupContent = document.querySelector('.popup-content');
const closeBtn = document.querySelector('.close-btn');
// Function to show popup for a given certification
function showPopup(certId) {
const figure = document.querySelector(`figure[data-cert-id="${certId}"]`);
if (!figure) return;
const imgSrc = figure.querySelector('img').src;
const imgAlt = figure.querySelector('img').alt;
const figcaptionText = figure.querySelector('figcaption').innerHTML;
popupContent.innerHTML = `
<img src="${imgSrc}" alt="${imgAlt}">
<p>${figcaptionText}</p>
`;
popup.classList.add('show');
}
// On page load, check for certificate in URL
window.onload = function() {
const urlParams = new URLSearchParams(window.location.search);
const certId = urlParams.get('cert');
if (certId) {
showPopup(certId);
}
};
// Gallery click event to update the URL and show popup
gallery.addEventListener('click', function(event) {
const figure = event.target.closest('figure');
if (!figure) return;
const certId = figure.dataset.certId;
history.pushState(null, '', `?cert=${certId}`);
showPopup(certId);
});
// Close popup
closeBtn.addEventListener('click', function() {
popup.classList.remove('show');
history.pushState(null, '', window.location.pathname); // Remove query string from URL
});
// Close popup when clicking outside the content
popup.addEventListener('click', function(event) {
if (event.target === popup) {
popup.classList.remove('show');
history.pushState(null, '', window.location.pathname); // Remove query string from URL
}
});
</script>
</body>
</html>