-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhome.ejs
830 lines (764 loc) · 23.9 KB
/
home.ejs
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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
<html
lang="en"
class="_neKTiNR9ODo9dbROzCM dark"
dm-allow-colors=""
dm-default-theme="dark"
dm-allow-transitions=""
>
<head>
<link
rel="stylesheet"
type="text/css"
href="https://unpkg.com/flowbite-typography@1.0.3/dist/typography.min.css"
/>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="CodeChef API provides access to their CodeChef profile data, allowing developers to integrate their profile data into their portfolio with ease. It provides prebuild components of heatmap and rating graph."
/>
<!-- Open Graph Meta Tags -->
<meta
property="og:title"
content="CodeChef API - Access CodeChef Profile Data"
/>
<meta
property="og:description"
content="CodeChef API provides access to their CodeChef profile data, allowing developers to integrate their profile data into their portfolio with ease. It provides prebuild components of heatmap and rating graph."
/>
<meta property="og:url" content="https://codechef-api.vercel.app" />
<meta property="og:type" content="website" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="CodeChef API - Access CodeChef Profile Data Seamlessly"
/>
<meta
name="twitter:description"
content="CodeChef API provides access to their CodeChef profile data, allowing developers to integrate their profile data into their portfolio with ease. It provides prebuild components of heatmap and rating graph."
/>
<!-- Additional Meta Tags -->
<meta name="robots" content="index, follow" />
<meta name="author" content="Deepak Suthar" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: "class",
theme: {
extend: {
colors: {
primary: {
50: "#eff6ff",
100: "#dbeafe",
200: "#bfdbfe",
300: "#93c5fd",
400: "#60a5fa",
500: "#3b82f6",
600: "#2563eb",
700: "#1d4ed8",
800: "#1e40af",
900: "#1e3a8a",
950: "#172554",
},
},
},
fontFamily: {
body: [
"Inter",
"ui-sans-serif",
"system-ui",
"-apple-system",
"system-ui",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"Noto Sans",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
],
sans: [
"Inter",
"ui-sans-serif",
"system-ui",
"-apple-system",
"system-ui",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"Noto Sans",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
],
},
},
};
</script>
<title>Codechef-API</title>
<link
rel="stylesheet"
href="https://d2s3ptptdai04x.cloudfront.net/get-flowbite-pro.91c4ee51-ddee-41e4-bb52-32edc27c4479.css?Expires=2014649547&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMnMzcHRwdGRhaTA0eC5jbG91ZGZyb250Lm5ldC9nZXQtZmxvd2JpdGUtcHJvLjkxYzRlZTUxLWRkZWUtNDFlNC1iYjUyLTMyZWRjMjdjNDQ3OS5jc3MiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjIwMTQ2NDk1NDd9fX1dfQ__&Signature=qRfGS2sNH8DL9n7SvwZyhkRHqeyI2gnNa36FHwVLjp81JuJZnew7M93hRPB9jMjPvzFZw-KDmtoRWrhVXpTQ7bNCCtcGIZ4FXGeGYhmvtNEH8iKGTz4xkoDbduQiQzdvTm1uIz3m9wKSew1UQOjyEGUgLqi5lrUuZmdHZaqEeMtaBVV2MCfc6doG9chrh2LG6Z8YtJAzuTsVHSxS1b0iaZ42xdE9UuPrUKE5IxFD300mC-e3DpfbnI3fguX5S8-oIsQHP47cB9~zofJ0FGZ8uUfUVzgvJYKITohkVUZRP30md1itHEpn0UbdCovx~5ZPG6XArJk6KNDv31x7ZaIOBA__&Key-Pair-Id=K2J5W1U51CTOXP"
/>
<style>
/* ! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com */
*,
::after,
::before {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: #e5e7eb;
}
::after,
::before {
--tw-content: "";
}
:host,
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
-moz-tab-size: 4;
tab-size: 4;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, system-ui,
Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
font-feature-settings: normal;
font-variation-settings: normal;
-webkit-tap-highlight-color: transparent;
}
body {
margin: 0;
line-height: inherit;
}
hr {
height: 0;
color: inherit;
border-top-width: 1px;
}
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
a {
color: inherit;
text-decoration: inherit;
}
b,
strong {
font-weight: bolder;
}
code,
kbd,
pre,
samp {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
font-feature-settings: normal;
font-variation-settings: normal;
font-size: 1em;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
table {
text-indent: 0;
border-color: inherit;
border-collapse: collapse;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
font-size: 100%;
font-weight: inherit;
line-height: inherit;
letter-spacing: inherit;
color: inherit;
margin: 0;
padding: 0;
}
button,
select {
text-transform: none;
}
button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
-webkit-appearance: button;
background-color: transparent;
background-image: none;
}
:-moz-focusring {
outline: auto;
}
:-moz-ui-invalid {
box-shadow: none;
}
progress {
vertical-align: baseline;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
summary {
display: list-item;
}
blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
margin: 0;
}
fieldset {
margin: 0;
padding: 0;
}
legend {
padding: 0;
}
menu,
ol,
ul {
list-style: none;
margin: 0;
padding: 0;
}
dialog {
padding: 0;
}
textarea {
resize: vertical;
}
input::placeholder,
textarea::placeholder {
opacity: 1;
color: #9ca3af;
}
[role="button"],
button {
cursor: pointer;
}
:disabled {
cursor: default;
}
audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
display: block;
vertical-align: middle;
}
img,
video {
max-width: 100%;
height: auto;
}
[hidden] {
display: none;
}
*,
::before,
::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}
::backdrop {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.border-primary-600 {
--tw-border-opacity: 1;
border-color: rgb(37 99 235 / var(--tw-border-opacity));
}
.bg-primary-700 {
--tw-bg-opacity: 1;
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}
.text-primary-600 {
--tw-text-opacity: 1;
color: rgb(37 99 235 / var(--tw-text-opacity));
}
.hover\:bg-primary-800:hover {
--tw-bg-opacity: 1;
background-color: rgb(30 64 175 / var(--tw-bg-opacity));
}
.hover\:text-primary-700:hover {
--tw-text-opacity: 1;
color: rgb(29 78 216 / var(--tw-text-opacity));
}
.focus\:border-primary-500:focus {
--tw-border-opacity: 1;
border-color: rgb(59 130 246 / var(--tw-border-opacity));
}
.focus\:ring-primary-200:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));
}
.focus\:ring-primary-300:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity));
}
.focus\:ring-primary-500:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}
.dark\:bg-primary-600:is(.dark *) {
--tw-bg-opacity: 1;
background-color: rgb(37 99 235 / var(--tw-bg-opacity));
}
.dark\:text-primary-500:is(.dark *) {
--tw-text-opacity: 1;
color: rgb(59 130 246 / var(--tw-text-opacity));
}
.dark\:hover\:bg-primary-700:hover:is(.dark *) {
--tw-bg-opacity: 1;
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}
.dark\:focus\:border-primary-500:focus:is(.dark *) {
--tw-border-opacity: 1;
border-color: rgb(59 130 246 / var(--tw-border-opacity));
}
.dark\:focus\:ring-primary-500:focus:is(.dark *) {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}
.dark\:focus\:ring-primary-800:focus:is(.dark *) {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(30 64 175 / var(--tw-ring-opacity));
}
.dark\:focus\:ring-primary-900:focus:is(.dark *) {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(30 58 138 / var(--tw-ring-opacity));
}
.t5D88HfSsyfzALJWQB8tc {
background-image: url("/image/codechef.png");
}
</style>
<style>
html {
filter: none !important;
}
.warning {
width: 100%;
height: 100px;
position: sticky;
top: 0;
font-size: 20px;
text-align: center;
padding-top: 20px;
font-weight: bold;
background-color: rgba(219, 69, 42, 0.726);
color: white;
}
.ad {
position: fixed;
z-index: 1;
top: 0;
right: 0;
cursor: pointer;
max-width: 110px;
}
.ad a,.ad a img{
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<!-- <div class="warning">
Please change URL from https://codechef-api.vercel.app/{handle of user} to https://codechef-api.vercel.app/<b>handle</b>/{handle of user}
</div> -->
<div class="ad">
<a href="https://github.com/deepaksuthar40128/Codechef-API/"
><img
src="/image/github.gif"
alt="Github"
/></a>
</div>
<main
style="padding-bottom: 160px"
class="qxQKLrerTcVAZpiRGDQZ eQ7XcPIYS0NmU3TZr7ji yjGyQxv8jnYk9_MGMqLN zlFmyfujKXCLCPyPEOIS cmyDPxbqOqbqHiEyGnG8"
>
<header
class="t5D88HfSsyfzALJWQB8tc jCISvWkW5oStPH6Wrb_H WpRYr14lnkKDxaIQzJ_o _xc9_ta26QtN17Sx1_Fe _6AI6SY1lyVfKpv37xl0 POA0xdG25nlhxqWJyl1U pcWvkQQ8p_VQZFs_K2QA zencAbqT6WdOZbhcPVjf QYPW4nl6nHaIbrtaXf4h"
>
<div
class="iZ8W30HPRQAuO6al90LU _ccvJ9JsfoF81kZ3lkJh _J57_xJ7KhmAX1D2Pnei jCISvWkW5oStPH6Wrb_H j34KztD3SBxL_tQWzosr _ngJt2TgM57HPYTCC5GA F6maSyXBC_uv_A_dciar"
></div>
<div
class="iZ8W30HPRQAuO6al90LU PojEYad6nPpbKmAUjVBI c1ibYmNHw6Cxfcu_pPgz veFXkDzfJN473U3ycrV8 RV8RoaI_SlEMC5CEQ3ms jCISvWkW5oStPH6Wrb_H HV01LldvyEqRHHy0hljF wfpSIkDBCpd44vEdymO_ BRg_hinIPYxGN5WJ_Xay KWb4ZbhYGt096ggQOJa_ Xjxpb8u_H96dZt4r1eF6"
>
<h1
class="_9OKVeTXzfSwD_NYO6_G I5nnt4bpo_o8qp1p2_FC _e063bssp_1bldcJ6kR0 P2kov_od1FPjxxII24T5 MxQqv3Z913orO6JQGGbH wP9HMsqy6b96l2HBRbgb fQ3UmoCh_2qglPqQf5CZ vAGTG1e_BcCgc9_9R6z3"
>
How to use Codechef-API
</h1>
<p
class="VwrSTsh__so52zqMJvws oTkHpmOXEgQRdykOe3sq pDeChwIM17vwwm9ZmlIw"
>
Show your daily submissions (heatmap) and contest progress in your
portfolio easily.
</p>
</div>
</header>
<div
class="kqgYncRJQ7spwKfig6It QYPW4nl6nHaIbrtaXf4h MN_MaEuEFmiXUnb4S5NS _T15kfOPGkvwZnqhqKce rhHZLKCNkg6rp7jwfB1J O7PVNyZQb9PCjpNKbt_t KmicKCo2aIIAJvfPPnrM HV01LldvyEqRHHy0hljF yjGyQxv8jnYk9_MGMqLN _cpMMPjFQqjJu4i0Puod YPSoR6AXtPgkmylUmcbT _oadEIkQd6OQiaXef3p8 arrNNfkSdu1f3lPZlfMG _ocA0sk94abY4DpqKzYF"
>
<article
style="width: 100%"
class="trp_bA_rt_zvxYf81Zkg jCISvWkW5oStPH6Wrb_H QFvy_qHEb4VhI8nsNH9k format format-sm sm:format-base lg:format-lg format-blue dark:format-invert"
>
<p class="lead">
Codechef-api is an open-source free to use api to scrape the data
from codechef.
</p>
<p>
You can use directly our components and add them to your portfolio
or use JSON data and design according to you.
</p>
<br />
<p>API:</p>
<p>https://codechef-api.vercel.app/handle/{handle}</p>
<hr />
<p class="lead">Components:</p>
<p style="font-size: 25px; text-decoration: underline">Heatmap</p>
<p>
Heatmap is show your daily submission counts but the data only shows
last 6 month (as codechef provide data on only last 6 months)
</p>
<figure>
<img
src="/image/heatmap1.png"
alt=""
class="RV8RoaI_SlEMC5CEQ3ms"
/>
<figcaption>Light Theme</figcaption>
</figure>
<figure>
<img
src="/image/heatmap2.png"
alt=""
class="RV8RoaI_SlEMC5CEQ3ms"
/>
<figcaption>Dark Theme</figcaption>
</figure>
<br />
<p class="lead">How to Use:</p>
<p>You can use directly by adding this iframe tag in your code</p>
<div class="relative max-w-2xl mx-auto">
<div class="bg-gray-900 text-white p-4 rounded-md">
<div class="overflow-x-auto">
<pre
id="code1"
class="text-gray-300 code"
style="display: flex"
data-clipboard-target="#code1"
onclick="alert('Code copied')"
>
<code id="code11">
</code>
<script>
document.getElementById('code11').innerText = '<iframe src="https://codechef-api.vercel.app/heatmap/{handle}"></iframe>';
</script>
</pre>
</div>
</div>
</div>
<p>
You can change the theme by setting theme=night or theme=day. The
default theme is day.
</p>
<p>
Background of heatmap is transparent you can control it according to
you :)
</p>
<div class="relative max-w-2xl mx-auto">
<div class="bg-gray-900 text-white p-4 rounded-md">
<div class="overflow-x-auto">
<pre
id="code2"
class="text-gray-300 code"
style="display: flex"
data-clipboard-target="#code2"
onclick="alert('Code copied')"
>
<code id="code22">
</code>
<script>
document.getElementById('code22').innerText = '<iframe src="https://codechef-api.vercel.app/heatmap/{handle}?theme=night"></iframe>';
</script>
</pre>
</div>
</div>
</div>
<p>
Or you can customize according to you using json data of your
profile
</p>
<p>Here is api:</p>
<div class="relative max-w-2xl mx-auto">
<div class="bg-gray-900 text-white p-4 rounded-md">
<div class="overflow-x-auto">
<pre
id="code3"
class="text-gray-300 code"
style="display: flex"
data-clipboard-target="#code3"
onclick="alert('Code copied')"
>
<code id="code33">
</code>
<script>
document.getElementById('code33').innerText = 'https://codechef-api.vercel.app/handle/{handle}';
</script>
</pre>
</div>
</div>
</div>
<br /><br />
<hr />
<br />
<p style="font-size: 25px; text-decoration: underline">
Rating Graph
</p>
<p>
Rating graph shows your progress in contest and also shows contest
details
</p>
<figure>
<img src="/image/rating.png" alt="" class="RV8RoaI_SlEMC5CEQ3ms" />
</figure>
<br />
<p class="lead">How to Use:</p>
<p>You can use directly by adding this iframe tag in your code</p>
<div class="relative max-w-2xl mx-auto">
<div class="bg-gray-900 text-white p-4 rounded-md">
<div class="overflow-x-auto">
<pre
id="code4"
class="text-gray-300 code"
style="display: flex"
data-clipboard-target="#code4"
onclick="alert('Code copied')"
>
<code id="code44">
</code>
<script>
document.getElementById('code44').innerText = '<iframe src="https://codechef-api.vercel.app/rating/{handle}"></iframe>';
</script>
</pre>
</div>
</div>
</div>
<p>
Or you can customize according to you using json data of your
profile
</p>
<p>Here is api:</p>
<div class="relative max-w-2xl mx-auto">
<div class="bg-gray-900 text-white p-4 rounded-md">
<div class="overflow-x-auto">
<pre
id="code55"
class="text-gray-300 code"
style="display: flex"
data-clipboard-target="#code55"
onclick="alert('Code copied')"
>
<code id="code5555">
</code>
<script>
document.getElementById('code5555').innerText = 'https://codechef-api.vercel.app/handle/{handle}';
</script>
</pre>
</div>
</div>
</div>
<br />
<br />
<p>
If you like it,give it a
<a
href="https://github.com/deepaksuthar40128/Codechef-API/"
target="_blank"
>🌟</a
>:)
</p>
</article>
</div>
</main>
</body>
</html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.8/clipboard.min.js"></script>
<script>
new ClipboardJS(".code");
</script>