ilhamdev commited on
Commit
0c15b5f
1 Parent(s): 518be3e

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +103 -134
index.html CHANGED
@@ -10,124 +10,125 @@
10
  <title>LuminAI API Client</title>
11
  <style>
12
  body {
13
- font-family: 'Roboto', sans-serif;
14
- background-color: #f5f7fa;
15
- color: #444;
16
- margin: 0;
17
- padding: 0;
18
- line-height: 1.6;
19
- transition: background-color 0.3s, color 0.3s;
20
- }
21
 
22
- .container {
23
- max-width: 1000px;
24
- margin: 40px auto;
25
- padding: 0 20px;
26
- }
27
 
28
- header {
29
- background: linear-gradient(90deg, #4a90e2, #007aff);
30
- color: #fff;
31
- padding: 40px 0;
32
- text-align: center;
33
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
34
- }
 
35
 
36
- header h1 {
37
- margin: 0;
38
- font-size: 2.5em;
39
- font-weight: 700;
40
- font-family: 'Playfair Display', serif;
41
- }
42
 
43
- .main {
44
- margin-top: 20px;
45
- }
46
 
47
- h2, h3 {
48
- color: #4a90e2;
49
- font-weight: 500;
50
- }
51
 
52
- .code-block {
53
- background: #eef7ff;
54
- padding: 15px;
55
- border-left: 5px solid #4a90e2;
56
- margin: 20px 0;
57
- position: relative;
58
- border-radius: 5px;
59
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
60
- }
61
 
62
- .code-block pre {
63
- margin: 0;
64
- overflow-x: auto;
65
- font-size: 0.9em;
66
- }
67
 
68
- .copy-btn {
69
- position: absolute;
70
- top: 10px;
71
- right: 10px;
72
- background: none;
73
- border: none;
74
- cursor: pointer;
75
- outline: none;
76
- }
77
 
78
- .copy-btn img {
79
- width: 24px;
80
- height: 24px;
81
- }
82
 
83
- .stats-container {
84
- display: grid;
85
- grid-template-columns: 1fr 1fr;
86
- gap: 20px;
87
- margin-top: 40px;
88
- }
89
 
90
- .stat-box {
91
- background: #fff;
92
- padding: 20px;
93
- border-radius: 10px;
94
- text-align: center;
95
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
96
- transition: transform 0.3s, box-shadow 0.3s;
97
- }
98
 
99
- .stat-box:hover {
100
- transform: translateY(-10px);
101
- box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
102
- }
103
 
104
- .stat-box h3 {
105
- margin: 0;
106
- font-size: 1.2em;
107
- color: #4a90e2;
108
- font-weight: 500;
109
- }
110
 
111
- .stat-box p {
112
- margin: 10px 0 0;
113
- font-size: 2.5em;
114
- font-weight: bold;
115
- color: #333;
116
- }
117
 
118
- .stat-box.full-width {
119
- grid-column: span 2;
120
- }
121
 
122
- footer {
123
- background: linear-gradient(90deg, #4a90e2, #007aff);
124
- color: #fff;
125
- text-align: center;
126
- padding: 20px 0;
127
- position: relative;
128
- bottom: 0;
129
- width: 100%;
130
- margin-top: 40px;
131
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
132
  }
133
 
@@ -294,15 +295,6 @@
294
  background-color: #007aff; /* Ganti warna latar belakang saat tombol dihover */
295
  border: 2px solid #007aff; /* Ganti warna border saat tombol dihover */
296
  }
297
- header {
298
- /* existing styles */
299
- transition: height 0.3s ease;
300
- }
301
-
302
- .dark-mode header {
303
- /* existing styles */
304
- height: 40px;
305
- }
306
 
307
  </style>
308
  </head>
@@ -466,29 +458,6 @@ themeSwitch.addEventListener('change', () => {
466
  console.error('Failed to copy: ', err);
467
  });
468
  }
469
- const themeSwitch = document.getElementById('theme-switch');
470
- const pageHeader = document.getElementById('page-header');
471
-
472
- function toggleDarkMode() {
473
- document.body.classList.toggle('dark-mode');
474
-
475
- // Change header behavior on scroll
476
- if (document.body.classList.contains('dark-mode')) {
477
- window.addEventListener('scroll', () => {
478
- if (window.scrollY > 0 && window.scrollY < 150) {
479
- pageHeader.style.height = `calc(40px + ${window.scrollY * 0.5}px)`;
480
- } else if (window.scrollY >= 150) {
481
- pageHeader.style.height = '80px';
482
- } else {
483
- pageHeader.style.height = '40px';
484
- }
485
- });
486
- } else {
487
- window.removeEventListener('scroll', headerScrollFunction);
488
- }
489
- }
490
-
491
- themeSwitch.addEventListener('change', toggleDarkMode);
492
  </script>
493
  </body>
494
  </html>
 
10
  <title>LuminAI API Client</title>
11
  <style>
12
  body {
13
+ font-family: 'Roboto', sans-serif;
14
+ background-color: #f5f7fa;
15
+ color: #444;
16
+ margin: 0;
17
+ padding: 0;
18
+ line-height: 1.6;
19
+ transition: background-color 0.3s, color 0.3s;
20
+ }
21
 
22
+ .container {
23
+ max-width: 1000px;
24
+ margin: 40px auto;
25
+ padding: 0 20px;
26
+ }
27
 
28
+ header {
29
+ background: linear-gradient(90deg, #4a90e2, #007aff);
30
+ color: #fff;
31
+ padding: 40px 0;
32
+ text-align: center;
33
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
34
+ transition: height 0.3s ease; /* Add transition for header height */
35
+ }
36
 
37
+ header h1 {
38
+ margin: 0;
39
+ font-size: 2.5em;
40
+ font-weight: 700;
41
+ font-family: 'Playfair Display', serif;
42
+ }
43
 
44
+ .main {
45
+ margin-top: 20px;
46
+ }
47
 
48
+ h2, h3 {
49
+ color: #4a90e2;
50
+ font-weight: 500;
51
+ }
52
 
53
+ .code-block {
54
+ background: #eef7ff;
55
+ padding: 15px;
56
+ border-left: 5px solid #4a90e2;
57
+ margin: 20px 0;
58
+ position: relative;
59
+ border-radius: 5px;
60
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
61
+ }
62
 
63
+ .code-block pre {
64
+ margin: 0;
65
+ overflow-x: auto;
66
+ font-size: 0.9em;
67
+ }
68
 
69
+ .copy-btn {
70
+ position: absolute;
71
+ top: 10px;
72
+ right: 10px;
73
+ background: none;
74
+ border: none;
75
+ cursor: pointer;
76
+ outline: none;
77
+ }
78
 
79
+ .copy-btn img {
80
+ width: 24px;
81
+ height: 24px;
82
+ }
83
 
84
+ .stats-container {
85
+ display: grid;
86
+ grid-template-columns: 1fr 1fr;
87
+ gap: 20px;
88
+ margin-top: 40px;
89
+ }
90
 
91
+ .stat-box {
92
+ background: #fff;
93
+ padding: 20px;
94
+ border-radius: 10px;
95
+ text-align: center;
96
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
97
+ transition: transform 0.3s, box-shadow 0.3s;
98
+ }
99
 
100
+ .stat-box:hover {
101
+ transform: translateY(-10px);
102
+ box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
103
+ }
104
 
105
+ .stat-box h3 {
106
+ margin: 0;
107
+ font-size: 1.2em;
108
+ color: #4a90e2;
109
+ font-weight: 500;
110
+ }
111
 
112
+ .stat-box p {
113
+ margin: 10px 0 0;
114
+ font-size: 2.5em;
115
+ font-weight: bold;
116
+ color: #333;
117
+ }
118
 
119
+ .stat-box.full-width {
120
+ grid-column: span 2;
121
+ }
122
 
123
+ footer {
124
+ background: linear-gradient(90deg, #4a90e2, #007aff);
125
+ color: #fff;
126
+ text-align: center;
127
+ padding: 20px 0;
128
+ position: relative;
129
+ bottom: 0;
130
+ width: 100%;
131
+ margin-top: 40px
132
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
133
  }
134
 
 
295
  background-color: #007aff; /* Ganti warna latar belakang saat tombol dihover */
296
  border: 2px solid #007aff; /* Ganti warna border saat tombol dihover */
297
  }
 
 
 
 
 
 
 
 
 
298
 
299
  </style>
300
  </head>
 
458
  console.error('Failed to copy: ', err);
459
  });
460
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
  </script>
462
  </body>
463
  </html>