ilhamdev commited on
Commit
9b84015
·
1 Parent(s): 24f6106

fix(contact): update official WhatsApp contact phone number

Browse files
Files changed (3) hide show
  1. frontend/404.html +200 -202
  2. frontend/index.html +714 -738
  3. frontend/public/404.html +200 -202
frontend/404.html CHANGED
@@ -1,211 +1,209 @@
1
  <!DOCTYPE html>
2
  <html lang="id">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>404 - Halaman Tidak Ditemukan | Quote Studio</title>
7
- <meta name="robots" content="noindex, follow" />
8
- <link rel="icon" type="image/png" href="/favicon.png" />
9
- <link rel="alternate icon" href="/favicon.ico" />
10
- <link rel="apple-touch-icon" href="/favicon.png" />
11
- <link rel="preconnect" href="https://fonts.googleapis.com" />
12
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
13
- <link
14
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@700;800&display=swap"
15
- rel="stylesheet"
16
- />
17
- <style>
18
- :root {
19
- --bg-body: #FFFDF9;
20
- --text-primary: #121316;
21
- --text-muted: #575A65;
22
- --color-primary: #FFE74C;
23
- --color-secondary: #FF5E5B;
24
- --color-accent-blue: #00F0FF;
25
- --color-accent-green: #05FFA1;
26
- --border-color: #121316;
27
- --shadow-color: #121316;
28
- --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
29
- --font-mono: 'JetBrains Mono', monospace;
30
- }
31
-
32
- @media (prefers-color-scheme: dark) {
33
- :root {
34
- --bg-body: #0E0F12;
35
- --text-primary: #F4F5F8;
36
- --text-muted: #A0A4B0;
37
- --border-color: #F4F5F8;
38
- --shadow-color: #F4F5F8;
39
- }
40
- }
41
-
42
- * {
43
- box-sizing: border-box;
44
- margin: 0;
45
- padding: 0;
46
- }
47
-
48
- body {
49
- font-family: var(--font-sans);
50
- background-color: var(--bg-body);
51
- color: var(--text-primary);
52
- min-height: 100vh;
53
- display: flex;
54
- align-items: center;
55
- justify-content: center;
56
- padding: 1.5rem;
57
- }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  .error-card {
60
- max-width: 580px;
61
- width: 100%;
62
- background: #ffffff;
63
- border: 4px solid var(--border-color);
64
- box-shadow: 8px 8px 0px var(--shadow-color);
65
- border-radius: 8px;
66
- padding: 2.5rem 2rem;
67
- text-align: center;
68
- }
69
-
70
- @media (prefers-color-scheme: dark) {
71
- .error-card {
72
- background: #18191E;
73
- }
74
- }
75
-
76
- .badge-404 {
77
- display: inline-block;
78
- font-family: var(--font-mono);
79
- font-weight: 800;
80
- font-size: 0.85rem;
81
- text-transform: uppercase;
82
- letter-spacing: 0.08em;
83
- padding: 0.35rem 0.85rem;
84
- background: var(--color-secondary);
85
- color: #ffffff;
86
- border: 2.5px solid var(--border-color);
87
- box-shadow: 3px 3px 0px var(--shadow-color);
88
- border-radius: 4px;
89
- margin-bottom: 1.25rem;
90
- }
91
-
92
- .glitch-title {
93
- font-family: var(--font-mono);
94
- font-size: clamp(3.5rem, 12vw, 5.5rem);
95
- font-weight: 800;
96
- line-height: 1;
97
- letter-spacing: -0.05em;
98
- margin-bottom: 0.5rem;
99
- color: var(--text-primary);
100
- }
101
-
102
- .error-heading {
103
- font-size: 1.5rem;
104
- font-weight: 800;
105
- margin-bottom: 1rem;
106
- letter-spacing: -0.02em;
107
- }
108
-
109
- .error-desc {
110
- color: var(--text-muted);
111
- font-size: 1rem;
112
- line-height: 1.6;
113
- margin-bottom: 2rem;
114
- }
115
-
116
  .actions-grid {
117
- display: flex;
118
- flex-direction: column;
119
- gap: 0.85rem;
120
- }
121
-
122
- @media (min-width: 480px) {
123
- .actions-grid {
124
- flex-direction: row;
125
- justify-content: center;
126
- }
127
- }
128
-
129
- .btn {
130
- display: inline-flex;
131
- align-items: center;
132
  justify-content: center;
133
- gap: 0.5rem;
134
- padding: 0.85rem 1.35rem;
135
- font-size: 0.95rem;
136
- font-weight: 800;
137
- text-decoration: none;
138
- border: 3px solid var(--border-color);
139
- border-radius: 6px;
140
- box-shadow: 4px 4px 0px var(--shadow-color);
141
- transition: transform 0.1s ease, box-shadow 0.1s ease;
142
- cursor: pointer;
143
- }
144
-
145
- .btn:hover {
146
- transform: translate(-2px, -2px);
147
- box-shadow: 6px 6px 0px var(--shadow-color);
148
- }
149
-
150
- .btn:active {
151
- transform: translate(2px, 2px);
152
- box-shadow: 0px 0px 0px var(--shadow-color);
153
- }
154
-
155
- .btn-primary {
156
- background: var(--color-primary);
157
- color: #000000;
158
- }
159
-
160
- .btn-secondary {
161
- background: var(--color-accent-blue);
162
- color: #000000;
163
- }
164
-
165
- .btn-whatsapp {
166
- background: #25D366;
167
- color: #000000;
168
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
 
170
- .footer-note {
171
- margin-top: 2rem;
172
- font-size: 0.8rem;
173
- font-weight: 600;
174
- color: var(--text-muted);
175
- font-family: var(--font-mono);
176
- }
177
- </style>
178
- </head>
179
- <body>
180
- <div class="error-card">
181
- <div class="badge-404">HTTP ERROR 404</div>
182
- <h1 class="glitch-title">404</h1>
183
- <h2 class="error-heading">Halaman Tidak Ditemukan</h2>
184
- <p class="error-desc">
185
- Tautan yang Anda tuju mungkin sudah dipindahkan, dihapus, atau salah ketik. Silakan kembali ke Studio Customizer atau jelajahi dokumentasi API kami.
186
- </p>
187
-
188
- <div class="actions-grid">
189
- <a href="/" class="btn btn-primary" data-track="404_home">
190
- <span>&larr; Ke Studio</span>
191
- </a>
192
- <a href="/#api-docs" class="btn btn-secondary" data-track="404_docs">
193
- <span>Dokumentasi API</span>
194
- </a>
195
- <a
196
- href="https://wa.me/6281234567890?text=Halo%20Mang%20Rusdi%2C%20saya%20menemukan%20halaman%20404%20di%20Quote%20Studio"
197
- target="_blank"
198
- rel="noopener noreferrer"
199
- class="btn btn-whatsapp"
200
- data-track="404_wa"
201
- >
202
- <span>Chat WhatsApp</span>
203
- </a>
204
- </div>
205
-
206
- <div class="footer-note">
207
- Quote Studio &bull; qc.mangrusdi.my.id
208
- </div>
209
  </div>
210
- </body>
211
- </html>
 
 
 
1
  <!DOCTYPE html>
2
  <html lang="id">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>404 - Halaman Tidak Ditemukan | Quote Studio</title>
8
+ <meta name="robots" content="noindex, follow" />
9
+ <link rel="icon" type="image/png" href="/favicon.png" />
10
+ <link rel="alternate icon" href="/favicon.ico" />
11
+ <link rel="apple-touch-icon" href="/favicon.png" />
12
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
13
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14
+ <link
15
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@700;800&display=swap"
16
+ rel="stylesheet" />
17
+ <style>
18
+ :root {
19
+ --bg-body: #FFFDF9;
20
+ --text-primary: #121316;
21
+ --text-muted: #575A65;
22
+ --color-primary: #FFE74C;
23
+ --color-secondary: #FF5E5B;
24
+ --color-accent-blue: #00F0FF;
25
+ --color-accent-green: #05FFA1;
26
+ --border-color: #121316;
27
+ --shadow-color: #121316;
28
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
29
+ --font-mono: 'JetBrains Mono', monospace;
30
+ }
31
+
32
+ @media (prefers-color-scheme: dark) {
33
+ :root {
34
+ --bg-body: #0E0F12;
35
+ --text-primary: #F4F5F8;
36
+ --text-muted: #A0A4B0;
37
+ --border-color: #F4F5F8;
38
+ --shadow-color: #F4F5F8;
39
+ }
40
+ }
41
+
42
+ * {
43
+ box-sizing: border-box;
44
+ margin: 0;
45
+ padding: 0;
46
+ }
47
+
48
+ body {
49
+ font-family: var(--font-sans);
50
+ background-color: var(--bg-body);
51
+ color: var(--text-primary);
52
+ min-height: 100vh;
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ padding: 1.5rem;
57
+ }
58
+
59
+ .error-card {
60
+ max-width: 580px;
61
+ width: 100%;
62
+ background: #ffffff;
63
+ border: 4px solid var(--border-color);
64
+ box-shadow: 8px 8px 0px var(--shadow-color);
65
+ border-radius: 8px;
66
+ padding: 2.5rem 2rem;
67
+ text-align: center;
68
+ }
69
+
70
+ @media (prefers-color-scheme: dark) {
71
  .error-card {
72
+ background: #18191E;
73
+ }
74
+ }
75
+
76
+ .badge-404 {
77
+ display: inline-block;
78
+ font-family: var(--font-mono);
79
+ font-weight: 800;
80
+ font-size: 0.85rem;
81
+ text-transform: uppercase;
82
+ letter-spacing: 0.08em;
83
+ padding: 0.35rem 0.85rem;
84
+ background: var(--color-secondary);
85
+ color: #ffffff;
86
+ border: 2.5px solid var(--border-color);
87
+ box-shadow: 3px 3px 0px var(--shadow-color);
88
+ border-radius: 4px;
89
+ margin-bottom: 1.25rem;
90
+ }
91
+
92
+ .glitch-title {
93
+ font-family: var(--font-mono);
94
+ font-size: clamp(3.5rem, 12vw, 5.5rem);
95
+ font-weight: 800;
96
+ line-height: 1;
97
+ letter-spacing: -0.05em;
98
+ margin-bottom: 0.5rem;
99
+ color: var(--text-primary);
100
+ }
101
+
102
+ .error-heading {
103
+ font-size: 1.5rem;
104
+ font-weight: 800;
105
+ margin-bottom: 1rem;
106
+ letter-spacing: -0.02em;
107
+ }
108
+
109
+ .error-desc {
110
+ color: var(--text-muted);
111
+ font-size: 1rem;
112
+ line-height: 1.6;
113
+ margin-bottom: 2rem;
114
+ }
115
+
116
+ .actions-grid {
117
+ display: flex;
118
+ flex-direction: column;
119
+ gap: 0.85rem;
120
+ }
121
+
122
+ @media (min-width: 480px) {
 
 
 
 
 
123
  .actions-grid {
124
+ flex-direction: row;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  justify-content: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  }
127
+ }
128
+
129
+ .btn {
130
+ display: inline-flex;
131
+ align-items: center;
132
+ justify-content: center;
133
+ gap: 0.5rem;
134
+ padding: 0.85rem 1.35rem;
135
+ font-size: 0.95rem;
136
+ font-weight: 800;
137
+ text-decoration: none;
138
+ border: 3px solid var(--border-color);
139
+ border-radius: 6px;
140
+ box-shadow: 4px 4px 0px var(--shadow-color);
141
+ transition: transform 0.1s ease, box-shadow 0.1s ease;
142
+ cursor: pointer;
143
+ }
144
+
145
+ .btn:hover {
146
+ transform: translate(-2px, -2px);
147
+ box-shadow: 6px 6px 0px var(--shadow-color);
148
+ }
149
+
150
+ .btn:active {
151
+ transform: translate(2px, 2px);
152
+ box-shadow: 0px 0px 0px var(--shadow-color);
153
+ }
154
+
155
+ .btn-primary {
156
+ background: var(--color-primary);
157
+ color: #000000;
158
+ }
159
+
160
+ .btn-secondary {
161
+ background: var(--color-accent-blue);
162
+ color: #000000;
163
+ }
164
+
165
+ .btn-whatsapp {
166
+ background: #25D366;
167
+ color: #000000;
168
+ }
169
+
170
+ .footer-note {
171
+ margin-top: 2rem;
172
+ font-size: 0.8rem;
173
+ font-weight: 600;
174
+ color: var(--text-muted);
175
+ font-family: var(--font-mono);
176
+ }
177
+ </style>
178
+ </head>
179
+
180
+ <body>
181
+ <div class="error-card">
182
+ <div class="badge-404">HTTP ERROR 404</div>
183
+ <h1 class="glitch-title">404</h1>
184
+ <h2 class="error-heading">Halaman Tidak Ditemukan</h2>
185
+ <p class="error-desc">
186
+ Tautan yang Anda tuju mungkin sudah dipindahkan, dihapus, atau salah ketik. Silakan kembali ke Studio Customizer
187
+ atau jelajahi dokumentasi API kami.
188
+ </p>
189
+
190
+ <div class="actions-grid">
191
+ <a href="/" class="btn btn-primary" data-track="404_home">
192
+ <span>&larr; Ke Studio</span>
193
+ </a>
194
+ <a href="/#api-docs" class="btn btn-secondary" data-track="404_docs">
195
+ <span>Dokumentasi API</span>
196
+ </a>
197
+ <a href="https://wa.me/6281233649676?text=Halo%20Mang%20Rusdi%2C%20saya%20menemukan%20halaman%20404%20di%20Quote%20Studio"
198
+ target="_blank" rel="noopener noreferrer" class="btn btn-whatsapp" data-track="404_wa">
199
+ <span>Chat WhatsApp</span>
200
+ </a>
201
+ </div>
202
 
203
+ <div class="footer-note">
204
+ Quote Studio &bull; qc.mangrusdi.my.id
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  </div>
206
+ </div>
207
+ </body>
208
+
209
+ </html>
frontend/index.html CHANGED
@@ -1,45 +1,41 @@
1
  <!DOCTYPE html>
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Telegram Quote Maker & Generator REST API | Mang Rusdi</title>
7
- <meta
8
- name="description"
9
- content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories. Web customizer and public REST API on qc.mangrusdi.my.id."
10
- />
11
- <meta name="keywords" content="telegram quote generator, fake chat maker, quotly api, telegram sticker quote, quote maker web, telegram bot api" />
12
- <meta name="author" content="Rusdi Ilham" />
13
- <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
14
- <meta name="google-site-verification" content="GSC_VERIFICATION_TOKEN" />
15
- <link rel="canonical" href="https://qc.mangrusdi.my.id/" />
16
-
17
- <!-- Open Graph / Facebook -->
18
- <meta property="og:type" content="website" />
19
- <meta property="og:locale" content="en_US" />
20
- <meta property="og:url" content="https://qc.mangrusdi.my.id/" />
21
- <meta property="og:site_name" content="Quote Studio" />
22
- <meta property="og:title" content="Telegram Quote Maker & Generator REST API" />
23
- <meta
24
- property="og:description"
25
- content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories with real-time preview and free REST API."
26
- />
27
- <meta property="og:image" content="https://qc.mangrusdi.my.id/og-image.png" />
28
- <meta property="og:image:width" content="1200" />
29
- <meta property="og:image:height" content="630" />
30
- <meta property="og:image:alt" content="Telegram Quote Studio Interface" />
31
-
32
- <!-- Twitter Cards -->
33
- <meta name="twitter:card" content="summary_large_image" />
34
- <meta name="twitter:title" content="Telegram Quote Maker & Generator REST API" />
35
- <meta
36
- name="twitter:description"
37
- content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories with real-time preview and free REST API."
38
- />
39
- <meta name="twitter:image" content="https://qc.mangrusdi.my.id/og-image.png" />
40
-
41
- <!-- JSON-LD Structured Data for Google Search Console (App, Org, FAQ, Breadcrumbs) -->
42
- <script type="application/ld+json">
43
  {
44
  "@context": "https://schema.org",
45
  "@graph": [
@@ -146,790 +142,770 @@
146
  }
147
  </script>
148
 
149
- <!-- Fonts & Icons -->
150
- <link rel="preconnect" href="https://fonts.googleapis.com" />
151
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
152
- <link
153
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
154
- rel="stylesheet"
155
- />
156
- <link rel="icon" type="image/png" href="/favicon.png" />
157
- <link rel="alternate icon" href="/favicon.ico" />
158
- <link rel="apple-touch-icon" href="/favicon.png" />
159
-
160
- <!-- Stylesheets -->
161
- <link rel="stylesheet" href="./src/styles/base.css" />
162
- <link rel="stylesheet" href="./src/styles/components.css" />
163
- <link rel="stylesheet" href="./src/styles/preview.css" />
164
- </head>
165
- <body>
166
- <div id="app" class="app-layout">
167
- <!-- Top Navbar -->
168
- <header class="navbar">
169
- <a href="#studio" class="brand" title="Quote Studio Home">
170
- <img src="/favicon.png" alt="Quote Studio Logo" class="brand-logo" width="44" height="44" />
171
- <div class="brand-title-wrap">
172
- <h1 class="brand-title">Quote Studio <span class="brand-tag">Neubrutal</span></h1>
173
- <p class="brand-sub">Telegram Quote Generator & REST API</p>
174
- </div>
175
- </a>
176
 
177
- <nav class="nav-links" aria-label="Page Navigation">
178
- <a href="#studio" class="nav-anchor">Studio</a>
179
- <a href="#api-docs" class="nav-anchor">API Endpoints</a>
180
- <a href="#specs" class="nav-anchor">Formats</a>
181
- <a href="#faq" class="nav-anchor">FAQ</a>
182
- </nav>
183
-
184
- <div class="nav-actions">
185
- <div id="apiStatusBadge" class="status-badge checking">
186
- <span class="status-dot"></span>
187
- <span id="apiStatusText" class="status-text">Checking API...</span>
188
- </div>
189
 
190
- <!-- Neubrutalism Light / Dark Mode Toggle -->
191
- <button
192
- type="button"
193
- id="themeToggleBtn"
194
- class="theme-toggle-btn"
195
- title="Toggle Light / Dark Mode"
196
- aria-label="Toggle Light or Dark Theme"
197
- >
198
- <svg id="themeIconSun" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
199
- <circle cx="12" cy="12" r="5"></circle>
200
- <line x1="12" y1="1" x2="12" y2="3"></line>
201
- <line x1="12" y1="21" x2="12" y2="23"></line>
202
- <line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
203
- <line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
204
- <line x1="1" y1="12" x2="3" y2="12"></line>
205
- <line x1="21" y1="12" x2="23" y2="12"></line>
206
- <line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
207
- <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
208
- </svg>
209
- <svg id="themeIconMoon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" style="display: none;">
210
- <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
211
- </svg>
212
- </button>
213
-
214
- <a
215
- href="https://wa.me/6281234567890?text=Halo%20Mang%20Rusdi%2C%20saya%20tertarik%20dengan%20Quote%20Studio%20API"
216
- target="_blank"
217
- rel="noopener noreferrer"
218
- class="whatsapp-btn"
219
- data-track="click_wa"
220
- title="Chat Developer via WhatsApp"
221
- >
222
- <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor">
223
- <path d="M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38c1.45.79 3.08 1.21 4.74 1.21 5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.816 9.816 0 0 0 12.04 2m.01 1.67c2.2 0 4.26.86 5.82 2.41a8.176 8.176 0 0 1 2.41 5.83c0 4.54-3.7 8.24-8.24 8.24-1.48 0-2.93-.4-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.21 8.21 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.24-8.24m4.52 11.53c-.25-.13-1.47-.72-1.7-.81-.23-.08-.39-.13-.56.13-.17.25-.64.81-.79.97-.14.17-.29.19-.54.06-.25-.13-1.06-.39-2.02-1.25-.75-.67-1.26-1.5-1.41-1.75-.14-.25-.02-.39.11-.51.11-.11.25-.29.38-.44.12-.14.17-.25.25-.42.08-.17.04-.31-.02-.44-.06-.13-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.44.06-.67.31-.23.25-.88.86-.88 2.1s.9 2.44 1.03 2.61c.12.17 1.77 2.7 4.29 3.79.6.26 1.07.41 1.44.53.6.19 1.15.16 1.58.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.15-1.18-.06-.11-.23-.17-.48-.29z"/>
224
- </svg>
225
- <span>WhatsApp</span>
226
- </a>
227
-
228
- <a
229
- href="https://github.com/RusdiEneri/quote"
230
- target="_blank"
231
- rel="noopener noreferrer"
232
- class="nav-link-btn"
233
- title="GitHub Repository"
234
- >
235
- <span>GitHub</span>
236
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
237
- <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
238
- </svg>
239
- </a>
240
- <button type="button" class="mobile-menu-btn" id="mobileMenuBtn" aria-label="Toggle navigation menu" aria-expanded="false">
241
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
242
- <line x1="3" y1="6" x2="21" y2="6"></line>
243
- <line x1="3" y1="12" x2="21" y2="12"></line>
244
- <line x1="3" y1="18" x2="21" y2="18"></line>
245
- </svg>
246
- </button>
247
  </div>
248
- </header>
249
-
250
- <!-- Breadcrumb Navigation Bar (Point 6) -->
251
- <nav aria-label="Breadcrumb" class="breadcrumb-nav">
252
- <ol class="breadcrumb-list">
253
- <li class="breadcrumb-item"><a href="/">Home</a></li>
254
- <li class="breadcrumb-sep" aria-hidden="true">/</li>
255
- <li class="breadcrumb-item"><a href="#studio">Studio</a></li>
256
- <li class="breadcrumb-sep" aria-hidden="true">/</li>
257
- <li class="breadcrumb-item current" aria-current="page">Customizer</li>
258
- </ol>
259
- </nav>
260
 
261
- <!-- Mobile View Switcher (Visible on small screens) -->
262
- <div class="mobile-studio-switcher" role="tablist" aria-label="Studio View Switcher">
263
- <button type="button" class="studio-tab-btn active" id="tabEditorBtn" role="tab" aria-selected="true" aria-controls="editorPanel">
264
- <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
265
- <path d="M12 20h9"></path>
266
- <path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>
 
 
 
 
 
 
 
 
 
 
 
 
267
  </svg>
268
- <span>Customizer</span>
269
  </button>
270
- <button type="button" class="studio-tab-btn" id="tabPreviewBtn" role="tab" aria-selected="false" aria-controls="previewPanel">
271
- <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
272
- <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
273
- <circle cx="12" cy="12" r="3"></circle>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  </svg>
275
- <span>Live Preview</span>
276
- <span class="tab-badge" id="previewBadgeLive">Live</span>
277
  </button>
278
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
 
280
- <!-- Main Studio Grid -->
281
- <main class="studio-container" id="studio">
282
- <!-- Left: Form Controls Panel -->
283
- <section class="panel editor-panel active-mobile-view" id="editorPanel" aria-labelledby="editorHeading">
284
- <div class="panel-header">
285
- <h2 id="editorHeading" class="panel-title">Quote Customizer</h2>
286
- <button id="resetFormBtn" type="button" class="btn-text" data-track="click_cta_reset" title="Reset form to default values">Reset</button>
287
  </div>
288
 
289
- <form id="quoteForm" class="editor-form" autocomplete="off">
290
- <!-- Anti-Spam Honeypot (Point 13) -->
291
- <div class="hp-trap" aria-hidden="true">
292
- <label for="hpWebsite">Leave this field blank</label>
293
- <input type="text" id="hpWebsite" name="hp_website" tabindex="-1" autocomplete="off" />
 
 
 
294
  </div>
295
 
296
- <!-- Section: Sender Info -->
297
- <div class="form-section" role="group" aria-labelledby="senderInfoHeading">
298
- <div class="section-title" id="senderInfoHeading">
299
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
300
- <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
301
- <circle cx="12" cy="7" r="4"></circle>
302
- </svg>
303
- <span>Sender Information</span>
304
  </div>
305
-
306
- <div class="form-row">
307
- <div class="form-group flex-2">
308
- <label for="senderName">Sender Name <span class="required">*</span></label>
309
- <input
310
- type="text"
311
- id="senderName"
312
- name="senderName"
313
- class="form-input"
314
- value="Mang Rusdi"
315
- maxlength="64"
316
- placeholder="e.g. Rusdi Ilham"
317
- required
318
- />
319
- </div>
320
- <div class="form-group flex-1">
321
- <label for="senderTitle">Role / Tag</label>
322
- <input
323
- type="text"
324
- id="senderTitle"
325
- name="senderTitle"
326
- class="form-input"
327
- value="Owner"
328
- maxlength="32"
329
- placeholder="e.g. Admin"
330
- />
331
- </div>
332
  </div>
 
333
 
334
- <!-- Avatar Management -->
335
- <div class="form-group">
336
- <label for="avatarUrl">Avatar Photo</label>
337
- <div class="avatar-tabs">
338
- <div class="avatar-input-wrapper">
339
- <input
340
- type="url"
341
- id="avatarUrl"
342
- name="avatarUrl"
343
- class="form-input"
344
- value="https://avatars.githubusercontent.com/u/108991206?v=4"
345
- placeholder="Paste image URL (https://...)"
346
- />
347
- <label for="avatarUploadInput" class="upload-btn" title="Upload image from computer">
348
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
349
- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
350
- <polyline points="17 8 12 3 7 8"></polyline>
351
- <line x1="12" y1="3" x2="12" y2="15"></line>
352
- </svg>
353
- <span>Upload</span>
354
- </label>
355
- <input type="file" id="avatarUploadInput" accept="image/*" class="file-hidden" aria-label="Upload Avatar Image" />
356
- </div>
357
- </div>
358
- <div class="avatar-quick-pick">
359
- <span class="quick-pick-label">Presets:</span>
360
- <button type="button" class="preset-avatar-btn" data-url="https://avatars.githubusercontent.com/u/108991206?v=4">Rusdi</button>
361
- <button type="button" class="preset-avatar-btn" data-url="https://api.dicebear.com/7.x/bottts/svg?seed=Telegram">Bot</button>
362
- <button type="button" class="preset-avatar-btn" data-url="https://api.dicebear.com/7.x/notionists/svg?seed=Felix">Alex</button>
363
  </div>
364
  </div>
 
 
 
 
 
 
 
 
 
365
  </div>
 
366
 
367
- <!-- Section: Message Content -->
368
- <div class="form-section" role="group" aria-labelledby="messageContentHeading">
369
- <div class="section-title" id="messageContentHeading">
370
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
371
- <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
372
- </svg>
373
- <span>Message Content</span>
374
- </div>
375
 
376
- <div class="form-group">
377
- <div class="label-row">
378
- <label for="messageText">Chat Text <span class="required">*</span></label>
379
- <span id="charCountBadge" class="char-count-badge">78 / 3000</span>
380
- </div>
381
- <textarea
382
- id="messageText"
383
- name="messageText"
384
- class="form-textarea"
385
- rows="3"
386
- maxlength="3000"
387
- placeholder="Type Telegram message..."
388
- required
389
- >Halo semuanya! Quote API Telegram sekarang sudah live dan siap digunakan 🚀</textarea>
390
  </div>
 
 
 
 
391
 
392
- <!-- Reply Quote Switch -->
393
- <div class="toggle-group">
394
- <label class="switch-container">
395
- <input type="checkbox" id="replyToggle" class="switch-input" checked />
396
- <span class="switch-slider"></span>
397
- <span class="switch-label">Include Quoted Reply</span>
398
- </label>
399
- </div>
400
 
401
- <div id="replyFields" class="nested-fields">
402
- <div class="form-group">
403
- <label for="replyName">Reply To (User)</label>
404
- <input
405
- type="text"
406
- id="replyName"
407
- class="form-input"
408
- value="Dika Ardnt"
409
- maxlength="64"
410
- placeholder="Quoted user name"
411
- />
412
- </div>
413
- <div class="form-group">
414
- <label for="replyText">Quoted Message</label>
415
- <input
416
- type="text"
417
- id="replyText"
418
- class="form-input"
419
- value="Kapan Quote API selesai dideploy?"
420
- maxlength="1000"
421
- placeholder="Quoted text preview"
422
- />
423
- </div>
424
  </div>
425
-
426
- <!-- Media Attachment Switch -->
427
- <div class="toggle-group">
428
- <label class="switch-container">
429
- <input type="checkbox" id="mediaToggle" class="switch-input" />
430
- <span class="switch-slider"></span>
431
- <span class="switch-label">Include Attachment Image</span>
432
- </label>
433
  </div>
 
434
 
435
- <div id="mediaFields" class="nested-fields hidden">
436
- <div class="form-group">
437
- <label for="mediaUrl">Media Image URL</label>
438
- <input
439
- type="url"
440
- id="mediaUrl"
441
- class="form-input"
442
- placeholder="https://example.com/photo.jpg"
443
- />
444
- </div>
445
- </div>
446
  </div>
447
 
448
- <!-- Section: Output & Styling -->
449
- <div class="form-section" role="group" aria-labelledby="outputStyleHeading">
450
- <div class="section-title" id="outputStyleHeading">
451
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
452
- <circle cx="12" cy="12" r="10"></circle>
453
- <path d="m4.93 4.93 4.24 4.24"></path>
454
- <path d="m14.83 9.17 4.24-4.24"></path>
455
- <path d="m14.83 14.83 4.24 4.24"></path>
456
- <path d="m9.17 14.83-4.24 4.24"></path>
457
- </svg>
458
- <span>Output Style & Layout</span>
459
  </div>
 
 
460
 
461
- <div class="form-row">
462
- <div class="form-group flex-1">
463
- <label for="quoteType">Format Type</label>
464
- <select id="quoteType" class="form-select">
465
- <option value="quote" selected>Quote Bubble (Sticker)</option>
466
- <option value="stories">Stories (9:16 Vertical)</option>
467
- <option value="image">Image Card (Canvas)</option>
468
- </select>
469
- </div>
 
 
 
470
 
471
- <div class="form-group flex-1">
472
- <label for="imageFormat">File Format</label>
473
- <select id="imageFormat" class="form-select">
474
- <option value="png" selected>PNG (Lossless)</option>
475
- <option value="webp">WebP (Compact)</option>
476
- </select>
477
- </div>
 
478
  </div>
479
 
480
- <div class="form-row">
481
- <div class="form-group flex-1">
482
- <label for="bgColor">Background Color</label>
483
- <div class="color-picker-row">
484
- <input type="color" id="bgColor" class="color-swatch" value="#1b1e23" aria-label="Color Picker Swatch" />
485
- <input type="text" id="bgColorText" class="form-input hex-input" value="#1b1e23" aria-label="Hex Color Code" />
486
- </div>
487
- </div>
488
 
489
- <div class="form-group flex-1" id="watermarkGroup">
490
- <label for="watermark">Watermark (Stories/Image)</label>
491
- <input
492
- type="text"
493
- id="watermark"
494
- class="form-input"
495
- value="qc.mangrusdi.my.id"
496
- maxlength="64"
497
- placeholder="Watermark text"
498
- />
499
  </div>
500
  </div>
501
 
502
- <!-- Color Palette Quick Pick -->
503
- <div class="palette-group">
504
- <span class="quick-pick-label">Telegram Themes:</span>
505
- <button type="button" class="palette-btn active" data-color="#1b1e23" style="background: #1b1e23" title="Dark Slate" aria-label="Dark Slate Theme"></button>
506
- <button type="button" class="palette-btn" data-color="#0f172a" style="background: #0f172a" title="Midnight" aria-label="Midnight Theme"></button>
507
- <button type="button" class="palette-btn" data-color="#182533" style="background: #182533" title="Telegram Dark" aria-label="Telegram Dark Theme"></button>
508
- <button type="button" class="palette-btn" data-color="#212d3b" style="background: #212d3b" title="Telegram Blue" aria-label="Telegram Blue Theme"></button>
509
- <button type="button" class="palette-btn" data-color="#2d132c" style="background: #2d132c" title="Deep Plum" aria-label="Deep Plum Theme"></button>
510
- <button type="button" class="palette-btn" data-color="#172e27" style="background: #172e27" title="Forest Dark" aria-label="Forest Dark Theme"></button>
511
  </div>
512
  </div>
513
 
514
- <!-- Generate Action Button -->
515
- <div class="form-actions">
516
- <button id="generateBtn" type="button" class="btn-primary" data-track="click_cta_generate">
517
- <span class="btn-icon">
518
- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
519
- <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
520
- <circle cx="8.5" cy="8.5" r="1.5"></circle>
521
- <polyline points="21 15 16 10 5 21"></polyline>
522
- </svg>
523
- </span>
524
- <span class="btn-text-label">Generate Quote Image</span>
525
- </button>
 
 
 
526
  </div>
527
- </form>
528
- </section>
529
-
530
- <section class="panel preview-panel" id="previewPanel" aria-labelledby="previewHeading">
531
- <div class="panel-header">
532
- <h2 id="previewHeading" class="panel-title">Interactive Live Preview</h2>
533
- <div class="preview-mode-tag" id="previewModeTag">Quote Mode</div>
534
  </div>
535
 
536
- <!-- Live Preview Metadata Strip -->
537
- <div class="preview-meta-strip">
538
- <span class="preview-meta-item">Format: <strong id="prevFormatMeta">PNG (512px max)</strong></span>
539
- <span class="preview-meta-item">Theme: <strong id="prevBgMeta">#1B1E23</strong></span>
 
 
 
 
 
 
 
 
540
  </div>
 
 
 
 
 
 
 
 
541
 
542
- <!-- Telegram Bubble Simulated Preview Box -->
543
- <div class="preview-stage-container" id="previewStage">
544
- <div class="telegram-quote-card" id="simulatedBubble">
545
- <div class="tg-avatar-col">
546
- <img id="prevAvatar" src="https://avatars.githubusercontent.com/u/108991206?v=4" alt="Avatar" class="tg-avatar" />
 
 
 
 
 
 
 
 
 
 
 
 
547
  </div>
548
- <div class="tg-bubble-col">
549
- <div class="tg-bubble-header">
550
- <span id="prevSenderName" class="tg-sender-name">Mang Rusdi</span>
551
- <span id="prevSenderTitle" class="tg-sender-badge">Owner</span>
552
- </div>
553
 
554
- <!-- Quoted Reply Area in Bubble -->
555
- <div id="prevReplyBox" class="tg-reply-box">
556
- <div class="tg-reply-line"></div>
557
- <div class="tg-reply-content">
558
- <div id="prevReplyName" class="tg-reply-name">Dika Ardnt</div>
559
- <div id="prevReplyText" class="tg-reply-text">Kapan Quote API selesai dideploy?</div>
560
- </div>
561
  </div>
 
562
 
563
- <!-- Media Preview in Bubble -->
564
- <div id="prevMediaBox" class="tg-media-box hidden">
565
- <img id="prevMediaImg" src="" alt="Attached media" class="tg-media-img" />
566
- </div>
567
 
568
- <!-- Main Message Text -->
569
- <div id="prevMessageText" class="tg-message-text">Halo semuanya! Quote API Telegram sekarang sudah live dan siap digunakan 🚀</div>
 
570
 
571
- <!-- Message Meta Footer -->
572
- <div class="tg-message-meta">
573
- <span class="tg-timestamp" id="prevTimestamp">21:30</span>
574
- <svg class="tg-checks" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
575
- <polyline points="20 6 9 17 4 12"></polyline>
576
- </svg>
577
- </div>
578
  </div>
579
  </div>
580
  </div>
 
581
 
582
- <!-- Real Server Generated Result Container -->
583
- <div id="generatedResultBox" class="generated-box hidden">
584
- <div class="result-header">
585
- <span class="result-badge">
586
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
587
- <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
588
- <polyline points="22 4 12 14.01 9 11.01"></polyline>
589
- </svg>
590
- Rendered by Quote API
591
- </span>
592
- <div class="result-info" id="resultMeta">PNG • 512x360</div>
593
- </div>
594
 
595
- <div class="result-preview-image-wrap">
596
- <img id="renderedImage" src="" alt="Rendered Quote Output" class="rendered-image" />
597
- </div>
598
 
599
- <div class="result-actions">
600
- <a id="downloadBtn" href="#" download="telegram-quote.png" class="btn-secondary" data-track="click_cta_download">
601
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
602
- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
603
- <polyline points="7 10 12 15 17 10"></polyline>
604
- <line x1="12" y1="3" x2="12" y2="3"></line>
605
- </svg>
606
- Download Image
607
- </a>
608
- <button id="copyImageBtn" type="button" class="btn-outline" data-track="click_cta_copy_image">
609
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
610
  <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
611
  <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
612
  </svg>
613
- Copy to Clipboard
614
  </button>
615
  </div>
616
  </div>
617
 
618
- <!-- Developer API Integration Drawer -->
619
- <div class="api-playground-box">
620
- <div class="playground-header">
621
- <span class="playground-title">Developer Integration Snippet</span>
622
- <div class="playground-actions">
623
- <div class="tab-buttons">
624
- <button type="button" class="tab-btn active" data-tab="curl">cURL</button>
625
- <button type="button" class="tab-btn" data-tab="js">JavaScript</button>
626
- <button type="button" class="tab-btn" data-tab="py">Python</button>
627
- </div>
628
- <button id="copySnippetBtn" type="button" class="copy-snippet-btn" data-track="click_cta_copy_snippet" title="Copy code snippet">
629
- <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
630
- <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
631
- <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
632
- </svg>
633
- <span class="copy-label">Copy</span>
634
- </button>
635
- </div>
636
- </div>
637
-
638
- <div class="snippet-viewer">
639
- <pre><code id="codeSnippet" class="code-block">curl -X POST https://qc.mangrusdi.my.id/generate ...</code></pre>
640
- </div>
641
  </div>
642
- </section>
643
- </main>
644
-
645
- <!-- Section: API Reference & Parameter Documentation -->
646
- <section class="content-section" id="api-docs" aria-labelledby="apiDocsHeading">
647
- <div class="section-header">
648
- <h2 id="apiDocsHeading" class="section-heading">REST API Reference & Endpoints</h2>
649
- <p class="section-desc">
650
- Directly integrate Telegram quote generation into your Telegram bots, web apps, or backend services using our public endpoints.
651
- </p>
652
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
653
 
654
- <div class="table-responsive">
655
- <table class="api-table">
656
- <thead>
657
- <tr>
658
- <th>Method</th>
659
- <th>Endpoint</th>
660
- <th>Description</th>
661
- <th>Content-Type</th>
662
- </tr>
663
- </thead>
664
- <tbody>
665
- <tr>
666
- <td><span class="method-tag post">POST</span></td>
667
- <td><code class="endpoint-path">https://qc.mangrusdi.my.id/generate</code></td>
668
- <td>Main quote generator endpoint (returns base64 image and dimensions)</td>
669
- <td><code>application/json</code></td>
670
- </tr>
671
- <tr>
672
- <td><span class="method-tag post">POST</span></td>
673
- <td><code class="endpoint-path">https://qc.mangrusdi.my.id/api/generate</code></td>
674
- <td>Secondary proxy route for flexible integrations</td>
675
- <td><code>application/json</code></td>
676
- </tr>
677
- <tr>
678
- <td><span class="method-tag get">GET</span></td>
679
- <td><code class="endpoint-path">https://qc.mangrusdi.my.id/status</code></td>
680
- <td>Operational health check and service uptime info</td>
681
- <td><code>application/json</code></td>
682
- </tr>
683
- </tbody>
684
- </table>
685
- </div>
686
 
687
- <!-- Request Body Schema Documentation -->
688
- <div class="section-header" style="margin-top: 2rem;">
689
- <h3 class="section-heading" style="font-size: 1.15rem;">Request Payload Schema (JSON)</h3>
690
- <p class="section-desc">
691
- Payload properties accepted by the <code>POST /generate</code> endpoint.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
692
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
693
  </div>
694
 
695
- <div class="table-responsive">
696
- <table class="api-table">
697
- <thead>
698
- <tr>
699
- <th>Field</th>
700
- <th>Type</th>
701
- <th>Requirement</th>
702
- <th>Description</th>
703
- </tr>
704
- </thead>
705
- <tbody>
706
- <tr>
707
- <td><code class="endpoint-path">messages</code></td>
708
- <td><code>Array&lt;Object&gt;</code></td>
709
- <td><span class="required">Required</span></td>
710
- <td>Array of message objects to be stacked into quote bubble canvas.</td>
711
- </tr>
712
- <tr>
713
- <td><code class="endpoint-path">messages[].from.name</code></td>
714
- <td><code>string</code></td>
715
- <td><span class="required">Required</span></td>
716
- <td>Sender display name shown at the top of the chat bubble.</td>
717
- </tr>
718
- <tr>
719
- <td><code class="endpoint-path">messages[].text</code></td>
720
- <td><code>string</code></td>
721
- <td><span class="required">Required</span></td>
722
- <td>The text message content. Supports Markdown &amp; emojis.</td>
723
- </tr>
724
- <tr>
725
- <td><code class="endpoint-path">messages[].from.title</code></td>
726
- <td><code>string</code></td>
727
- <td>Optional</td>
728
- <td>Role badge next to the sender name (e.g. "Admin", "Owner").</td>
729
- </tr>
730
- <tr>
731
- <td><code class="endpoint-path">messages[].from.photo.url</code></td>
732
- <td><code>string</code></td>
733
- <td>Optional</td>
734
- <td>Public image URL or base64 data URI for sender avatar.</td>
735
- </tr>
736
- <tr>
737
- <td><code class="endpoint-path">messages[].replyMessage</code></td>
738
- <td><code>Object</code></td>
739
- <td>Optional</td>
740
- <td>Quoted reply box containing <code>name</code> and <code>text</code>.</td>
741
- </tr>
742
- <tr>
743
- <td><code class="endpoint-path">type</code></td>
744
- <td><code>string</code></td>
745
- <td>Optional</td>
746
- <td><code>"quote"</code> (sticker, 512px max), <code>"stories"</code> (9:16), or <code>"image"</code> (canvas).</td>
747
- </tr>
748
- <tr>
749
- <td><code class="endpoint-path">format</code></td>
750
- <td><code>string</code></td>
751
- <td>Optional</td>
752
- <td>Image compression format: <code>"png"</code> (lossless) or <code>"webp"</code>.</td>
753
- </tr>
754
- <tr>
755
- <td><code class="endpoint-path">backgroundColor</code></td>
756
- <td><code>string</code></td>
757
- <td>Optional</td>
758
- <td>Hex color string for chat bubble background (default: <code>"#1b1e23"</code>).</td>
759
- </tr>
760
- <tr>
761
- <td><code class="endpoint-path">watermark</code></td>
762
- <td><code>string</code></td>
763
- <td>Optional</td>
764
- <td>Branding watermark text applied on Stories and Canvas layouts.</td>
765
- </tr>
766
- </tbody>
767
- </table>
768
  </div>
769
- </section>
770
 
771
- <!-- Section: Output Formats & Specs -->
772
- <section class="content-section" id="specs" aria-labelledby="specsHeading">
773
- <div class="section-header">
774
- <h2 id="specsHeading" class="section-heading">Supported Output Layouts</h2>
775
- <p class="section-desc">
776
- Choose the layout format suited to your media channel: transparent stickers, vertical stories, or wide canvas cards.
777
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
778
  </div>
 
 
 
 
 
 
 
 
 
 
 
779
 
780
- <div class="modes-grid">
781
- <div class="mode-card">
782
- <h3 class="mode-card-title">Quote Bubble (Sticker)</h3>
783
- <p class="mode-card-desc">
784
- Standard Telegram message bubble rendered with transparent background, ideal for creating Telegram sticker packs and bot replies.
785
- </p>
786
- <ul class="mode-specs-list">
787
- <li>
788
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
789
- <polyline points="20 6 9 17 4 12"></polyline>
790
- </svg>
791
- 512px standard sticker width
792
- </li>
793
- <li>
794
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
795
- <polyline points="20 6 9 17 4 12"></polyline>
796
- </svg>
797
- Full alpha channel transparency
798
- </li>
799
- <li>
800
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
801
- <polyline points="20 6 9 17 4 12"></polyline>
802
- </svg>
803
- Supports replies and badges
804
- </li>
805
- </ul>
806
  </div>
807
-
808
- <div class="mode-card">
809
- <h3 class="mode-card-title">Vertical Stories (9:16)</h3>
810
- <p class="mode-card-desc">
811
- High-resolution vertical format designed for Telegram Stories, WhatsApp Status, and Instagram Reels with custom background themes.
812
- </p>
813
- <ul class="mode-specs-list">
814
- <li>
815
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
816
- <polyline points="20 6 9 17 4 12"></polyline>
817
- </svg>
818
- 1080 x 1920 portrait canvas
819
- </li>
820
- <li>
821
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
822
- <polyline points="20 6 9 17 4 12"></polyline>
823
- </svg>
824
- 4x supersampling resolution
825
- </li>
826
- <li>
827
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
828
- <polyline points="20 6 9 17 4 12"></polyline>
829
- </svg>
830
- Custom watermark placement
831
- </li>
832
- </ul>
833
  </div>
834
-
835
- <div class="mode-card">
836
- <h3 class="mode-card-title">Image Card (Canvas)</h3>
837
- <p class="mode-card-desc">
838
- Horizontal card presentation featuring elevation shadows, rounded frames, and clean padding for social media embeds and articles.
839
- </p>
840
- <ul class="mode-specs-list">
841
- <li>
842
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
843
- <polyline points="20 6 9 17 4 12"></polyline>
844
- </svg>
845
- 1280 x 720 landscape canvas
846
- </li>
847
- <li>
848
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
849
- <polyline points="20 6 9 17 4 12"></polyline>
850
- </svg>
851
- Soft elevation shadow
852
- </li>
853
- <li>
854
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
855
- <polyline points="20 6 9 17 4 12"></polyline>
856
- </svg>
857
- Lossless PNG and compact WebP
858
- </li>
859
- </ul>
860
  </div>
861
- </div>
862
- </section>
863
 
864
- <!-- Section: Frequently Asked Questions -->
865
- <section class="content-section" id="faq" aria-labelledby="faqHeading">
866
- <div class="section-header">
867
- <h2 id="faqHeading" class="section-heading">Frequently Asked Questions</h2>
868
- <p class="section-desc">
869
- Common questions regarding integration, file formats, and server capabilities.
870
- </p>
 
 
 
 
 
 
 
 
 
871
  </div>
872
 
873
- <div class="faq-grid">
874
- <details class="faq-item" open>
875
- <summary class="faq-summary">How do I generate quote stickers using the REST API?</summary>
876
- <div class="faq-answer">
877
- Send an HTTP POST request to <code>https://qc.mangrusdi.my.id/generate</code> with header <code>Content-Type: application/json</code>. Include a <code>messages</code> array containing the sender name, avatar URL, and text message. The server processes the canvas in approximately 1 to 2 seconds and returns the resulting base64 image.
878
- </div>
879
- </details>
880
-
881
- <details class="faq-item">
882
- <summary class="faq-summary">Which image formats and transparency settings are supported?</summary>
883
- <div class="faq-answer">
884
- The API natively supports PNG and WebP. For standard sticker bubbles, PNG preserves complete alpha transparency, making it ready to upload directly as a Telegram sticker. WebP provides smaller payloads for web rendering and mobile bandwidth efficiency.
885
- </div>
886
- </details>
887
-
888
- <details class="faq-item">
889
- <summary class="faq-summary">Can I supply local avatar pictures without public hosting?</summary>
890
- <div class="faq-answer">
891
- Yes. The web customizer includes an upload button that reads your local image file and converts it into a base64 data URI (<code>data:image/png;base64,...</code>). The backend accepts both HTTP image links and base64 data URIs for avatars and attachments.
892
- </div>
893
- </details>
894
-
895
- <details class="faq-item">
896
- <summary class="faq-summary">Is there a health check endpoint to monitor API uptime?</summary>
897
- <div class="faq-answer">
898
- Yes. A simple HTTP GET request to <code>https://qc.mangrusdi.my.id/status</code> returns a JSON object containing operational status, server availability, and uptime duration.
899
- </div>
900
- </details>
901
  </div>
902
- </section>
903
-
904
- <!-- Site Footer -->
905
- <footer class="site-footer">
906
- <div class="footer-top">
907
- <div>
908
- <div class="footer-brand-text">Quote Studio</div>
909
- <p class="footer-sub">Open-Source Telegram Quote Generator & REST API Engine</p>
910
- </div>
911
 
912
- <div class="footer-links">
913
- <a href="#studio" class="footer-link">Customizer</a>
914
- <a href="#api-docs" class="footer-link">Documentation</a>
915
- <a href="#specs" class="footer-link">Layout Formats</a>
916
- <a href="#faq" class="footer-link">FAQ</a>
917
- <a href="https://wa.me/6281234567890?text=Halo%20Mang%20Rusdi%2C%20saya%20tertarik%20dengan%20Quote%20Studio%20API" target="_blank" rel="noopener noreferrer" class="footer-link" data-track="click_wa">WhatsApp</a>
918
- <a href="https://github.com/RusdiEneri/quote" target="_blank" rel="noopener noreferrer" class="footer-link">GitHub Repo</a>
919
- <a href="https://huggingface.co/spaces/ilhamdev/quote-api" target="_blank" rel="noopener noreferrer" class="footer-link">Hugging Face Space</a>
920
- </div>
921
- </div>
922
 
923
- <div class="footer-bottom">
924
- <p>&copy; 2026 Mang Rusdi. Built with Bun, Hono, Node-Canvas, and Vite.</p>
925
- <p>Licensed under MIT. Open for personal and bot automation projects.</p>
926
- </div>
927
- </footer>
928
 
929
- <!-- Global Toast Container -->
930
- <div id="toast" class="toast hidden" role="alert" aria-live="polite"></div>
931
- </div>
932
 
933
- <script type="module" src="./src/main.js"></script>
934
- </body>
935
- </html>
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Telegram Quote Maker & Generator REST API | Mang Rusdi</title>
8
+ <meta name="description"
9
+ content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories. Web customizer and public REST API on qc.mangrusdi.my.id." />
10
+ <meta name="keywords"
11
+ content="telegram quote generator, fake chat maker, quotly api, telegram sticker quote, quote maker web, telegram bot api" />
12
+ <meta name="author" content="Rusdi Ilham" />
13
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
14
+ <meta name="google-site-verification" content="GSC_VERIFICATION_TOKEN" />
15
+ <link rel="canonical" href="https://qc.mangrusdi.my.id/" />
16
+
17
+ <!-- Open Graph / Facebook -->
18
+ <meta property="og:type" content="website" />
19
+ <meta property="og:locale" content="en_US" />
20
+ <meta property="og:url" content="https://qc.mangrusdi.my.id/" />
21
+ <meta property="og:site_name" content="Quote Studio" />
22
+ <meta property="og:title" content="Telegram Quote Maker & Generator REST API" />
23
+ <meta property="og:description"
24
+ content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories with real-time preview and free REST API." />
25
+ <meta property="og:image" content="https://qc.mangrusdi.my.id/og-image.png" />
26
+ <meta property="og:image:width" content="1200" />
27
+ <meta property="og:image:height" content="630" />
28
+ <meta property="og:image:alt" content="Telegram Quote Studio Interface" />
29
+
30
+ <!-- Twitter Cards -->
31
+ <meta name="twitter:card" content="summary_large_image" />
32
+ <meta name="twitter:title" content="Telegram Quote Maker & Generator REST API" />
33
+ <meta name="twitter:description"
34
+ content="Generate high-resolution Telegram chat bubble quotes, transparent stickers, and vertical stories with real-time preview and free REST API." />
35
+ <meta name="twitter:image" content="https://qc.mangrusdi.my.id/og-image.png" />
36
+
37
+ <!-- JSON-LD Structured Data for Google Search Console (App, Org, FAQ, Breadcrumbs) -->
38
+ <script type="application/ld+json">
 
 
 
 
39
  {
40
  "@context": "https://schema.org",
41
  "@graph": [
 
142
  }
143
  </script>
144
 
145
+ <!-- Fonts & Icons -->
146
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
147
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
148
+ <link
149
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
150
+ rel="stylesheet" />
151
+ <link rel="icon" type="image/png" href="/favicon.png" />
152
+ <link rel="alternate icon" href="/favicon.ico" />
153
+ <link rel="apple-touch-icon" href="/favicon.png" />
154
+
155
+ <!-- Stylesheets -->
156
+ <link rel="stylesheet" href="./src/styles/base.css" />
157
+ <link rel="stylesheet" href="./src/styles/components.css" />
158
+ <link rel="stylesheet" href="./src/styles/preview.css" />
159
+ </head>
160
+
161
+ <body>
162
+ <div id="app" class="app-layout">
163
+ <!-- Top Navbar -->
164
+ <header class="navbar">
165
+ <a href="#studio" class="brand" title="Quote Studio Home">
166
+ <img src="/favicon.png" alt="Quote Studio Logo" class="brand-logo" width="44" height="44" />
167
+ <div class="brand-title-wrap">
168
+ <h1 class="brand-title">Quote Studio <span class="brand-tag">Neubrutal</span></h1>
169
+ <p class="brand-sub">Telegram Quote Generator & REST API</p>
170
+ </div>
171
+ </a>
172
 
173
+ <nav class="nav-links" aria-label="Page Navigation">
174
+ <a href="#studio" class="nav-anchor">Studio</a>
175
+ <a href="#api-docs" class="nav-anchor">API Endpoints</a>
176
+ <a href="#specs" class="nav-anchor">Formats</a>
177
+ <a href="#faq" class="nav-anchor">FAQ</a>
178
+ </nav>
 
 
 
 
 
 
179
 
180
+ <div class="nav-actions">
181
+ <div id="apiStatusBadge" class="status-badge checking">
182
+ <span class="status-dot"></span>
183
+ <span id="apiStatusText" class="status-text">Checking API...</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
185
 
186
+ <!-- Neubrutalism Light / Dark Mode Toggle -->
187
+ <button type="button" id="themeToggleBtn" class="theme-toggle-btn" title="Toggle Light / Dark Mode"
188
+ aria-label="Toggle Light or Dark Theme">
189
+ <svg id="themeIconSun" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
190
+ stroke-width="2.5">
191
+ <circle cx="12" cy="12" r="5"></circle>
192
+ <line x1="12" y1="1" x2="12" y2="3"></line>
193
+ <line x1="12" y1="21" x2="12" y2="23"></line>
194
+ <line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
195
+ <line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
196
+ <line x1="1" y1="12" x2="3" y2="12"></line>
197
+ <line x1="21" y1="12" x2="23" y2="12"></line>
198
+ <line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
199
+ <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
200
+ </svg>
201
+ <svg id="themeIconMoon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
202
+ stroke-width="2.5" style="display: none;">
203
+ <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
204
  </svg>
 
205
  </button>
206
+
207
+ <a href="https://wa.me/6281233649676?text=Halo%20Mang%20Rusdi%2C%20saya%20tertarik%20dengan%20Quote%20Studio%20API"
208
+ target="_blank" rel="noopener noreferrer" class="whatsapp-btn" data-track="click_wa"
209
+ title="Chat Developer via WhatsApp">
210
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor">
211
+ <path
212
+ d="M12.04 2c-5.46 0-9.91 4.45-9.91 9.91 0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38c1.45.79 3.08 1.21 4.74 1.21 5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.816 9.816 0 0 0 12.04 2m.01 1.67c2.2 0 4.26.86 5.82 2.41a8.176 8.176 0 0 1 2.41 5.83c0 4.54-3.7 8.24-8.24 8.24-1.48 0-2.93-.4-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.21 8.21 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.24-8.24m4.52 11.53c-.25-.13-1.47-.72-1.7-.81-.23-.08-.39-.13-.56.13-.17.25-.64.81-.79.97-.14.17-.29.19-.54.06-.25-.13-1.06-.39-2.02-1.25-.75-.67-1.26-1.5-1.41-1.75-.14-.25-.02-.39.11-.51.11-.11.25-.29.38-.44.12-.14.17-.25.25-.42.08-.17.04-.31-.02-.44-.06-.13-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48c-.17 0-.44.06-.67.31-.23.25-.88.86-.88 2.1s.9 2.44 1.03 2.61c.12.17 1.77 2.7 4.29 3.79.6.26 1.07.41 1.44.53.6.19 1.15.16 1.58.1.48-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.15-1.18-.06-.11-.23-.17-.48-.29z" />
213
+ </svg>
214
+ <span>WhatsApp</span>
215
+ </a>
216
+
217
+ <a href="https://github.com/RusdiEneri/quote" target="_blank" rel="noopener noreferrer" class="nav-link-btn"
218
+ title="GitHub Repository">
219
+ <span>GitHub</span>
220
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
221
+ <path
222
+ d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22">
223
+ </path>
224
+ </svg>
225
+ </a>
226
+ <button type="button" class="mobile-menu-btn" id="mobileMenuBtn" aria-label="Toggle navigation menu"
227
+ aria-expanded="false">
228
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
229
+ <line x1="3" y1="6" x2="21" y2="6"></line>
230
+ <line x1="3" y1="12" x2="21" y2="12"></line>
231
+ <line x1="3" y1="18" x2="21" y2="18"></line>
232
  </svg>
 
 
233
  </button>
234
  </div>
235
+ </header>
236
+
237
+ <!-- Breadcrumb Navigation Bar (Point 6) -->
238
+ <nav aria-label="Breadcrumb" class="breadcrumb-nav">
239
+ <ol class="breadcrumb-list">
240
+ <li class="breadcrumb-item"><a href="/">Home</a></li>
241
+ <li class="breadcrumb-sep" aria-hidden="true">/</li>
242
+ <li class="breadcrumb-item"><a href="#studio">Studio</a></li>
243
+ <li class="breadcrumb-sep" aria-hidden="true">/</li>
244
+ <li class="breadcrumb-item current" aria-current="page">Customizer</li>
245
+ </ol>
246
+ </nav>
247
+
248
+ <!-- Mobile View Switcher (Visible on small screens) -->
249
+ <div class="mobile-studio-switcher" role="tablist" aria-label="Studio View Switcher">
250
+ <button type="button" class="studio-tab-btn active" id="tabEditorBtn" role="tab" aria-selected="true"
251
+ aria-controls="editorPanel">
252
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
253
+ <path d="M12 20h9"></path>
254
+ <path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>
255
+ </svg>
256
+ <span>Customizer</span>
257
+ </button>
258
+ <button type="button" class="studio-tab-btn" id="tabPreviewBtn" role="tab" aria-selected="false"
259
+ aria-controls="previewPanel">
260
+ <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
261
+ <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
262
+ <circle cx="12" cy="12" r="3"></circle>
263
+ </svg>
264
+ <span>Live Preview</span>
265
+ <span class="tab-badge" id="previewBadgeLive">Live</span>
266
+ </button>
267
+ </div>
268
+
269
+ <!-- Main Studio Grid -->
270
+ <main class="studio-container" id="studio">
271
+ <!-- Left: Form Controls Panel -->
272
+ <section class="panel editor-panel active-mobile-view" id="editorPanel" aria-labelledby="editorHeading">
273
+ <div class="panel-header">
274
+ <h2 id="editorHeading" class="panel-title">Quote Customizer</h2>
275
+ <button id="resetFormBtn" type="button" class="btn-text" data-track="click_cta_reset"
276
+ title="Reset form to default values">Reset</button>
277
+ </div>
278
 
279
+ <form id="quoteForm" class="editor-form" autocomplete="off">
280
+ <!-- Anti-Spam Honeypot (Point 13) -->
281
+ <div class="hp-trap" aria-hidden="true">
282
+ <label for="hpWebsite">Leave this field blank</label>
283
+ <input type="text" id="hpWebsite" name="hp_website" tabindex="-1" autocomplete="off" />
 
 
284
  </div>
285
 
286
+ <!-- Section: Sender Info -->
287
+ <div class="form-section" role="group" aria-labelledby="senderInfoHeading">
288
+ <div class="section-title" id="senderInfoHeading">
289
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
290
+ <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
291
+ <circle cx="12" cy="7" r="4"></circle>
292
+ </svg>
293
+ <span>Sender Information</span>
294
  </div>
295
 
296
+ <div class="form-row">
297
+ <div class="form-group flex-2">
298
+ <label for="senderName">Sender Name <span class="required">*</span></label>
299
+ <input type="text" id="senderName" name="senderName" class="form-input" value="Mang Rusdi"
300
+ maxlength="64" placeholder="e.g. Rusdi Ilham" required />
 
 
 
301
  </div>
302
+ <div class="form-group flex-1">
303
+ <label for="senderTitle">Role / Tag</label>
304
+ <input type="text" id="senderTitle" name="senderTitle" class="form-input" value="Owner" maxlength="32"
305
+ placeholder="e.g. Admin" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  </div>
307
+ </div>
308
 
309
+ <!-- Avatar Management -->
310
+ <div class="form-group">
311
+ <label for="avatarUrl">Avatar Photo</label>
312
+ <div class="avatar-tabs">
313
+ <div class="avatar-input-wrapper">
314
+ <input type="url" id="avatarUrl" name="avatarUrl" class="form-input"
315
+ value="https://avatars.githubusercontent.com/u/108991206?v=4"
316
+ placeholder="Paste image URL (https://...)" />
317
+ <label for="avatarUploadInput" class="upload-btn" title="Upload image from computer">
318
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
319
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
320
+ <polyline points="17 8 12 3 7 8"></polyline>
321
+ <line x1="12" y1="3" x2="12" y2="15"></line>
322
+ </svg>
323
+ <span>Upload</span>
324
+ </label>
325
+ <input type="file" id="avatarUploadInput" accept="image/*" class="file-hidden"
326
+ aria-label="Upload Avatar Image" />
 
 
 
 
 
 
 
 
 
 
 
327
  </div>
328
  </div>
329
+ <div class="avatar-quick-pick">
330
+ <span class="quick-pick-label">Presets:</span>
331
+ <button type="button" class="preset-avatar-btn"
332
+ data-url="https://avatars.githubusercontent.com/u/108991206?v=4">Rusdi</button>
333
+ <button type="button" class="preset-avatar-btn"
334
+ data-url="https://api.dicebear.com/7.x/bottts/svg?seed=Telegram">Bot</button>
335
+ <button type="button" class="preset-avatar-btn"
336
+ data-url="https://api.dicebear.com/7.x/notionists/svg?seed=Felix">Alex</button>
337
+ </div>
338
  </div>
339
+ </div>
340
 
341
+ <!-- Section: Message Content -->
342
+ <div class="form-section" role="group" aria-labelledby="messageContentHeading">
343
+ <div class="section-title" id="messageContentHeading">
344
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
345
+ <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
346
+ </svg>
347
+ <span>Message Content</span>
348
+ </div>
349
 
350
+ <div class="form-group">
351
+ <div class="label-row">
352
+ <label for="messageText">Chat Text <span class="required">*</span></label>
353
+ <span id="charCountBadge" class="char-count-badge">78 / 3000</span>
 
 
 
 
 
 
 
 
 
 
354
  </div>
355
+ <textarea id="messageText" name="messageText" class="form-textarea" rows="3" maxlength="3000"
356
+ placeholder="Type Telegram message..."
357
+ required>Halo semuanya! Quote API Telegram sekarang sudah live dan siap digunakan 🚀</textarea>
358
+ </div>
359
 
360
+ <!-- Reply Quote Switch -->
361
+ <div class="toggle-group">
362
+ <label class="switch-container">
363
+ <input type="checkbox" id="replyToggle" class="switch-input" checked />
364
+ <span class="switch-slider"></span>
365
+ <span class="switch-label">Include Quoted Reply</span>
366
+ </label>
367
+ </div>
368
 
369
+ <div id="replyFields" class="nested-fields">
370
+ <div class="form-group">
371
+ <label for="replyName">Reply To (User)</label>
372
+ <input type="text" id="replyName" class="form-input" value="Dika Ardnt" maxlength="64"
373
+ placeholder="Quoted user name" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  </div>
375
+ <div class="form-group">
376
+ <label for="replyText">Quoted Message</label>
377
+ <input type="text" id="replyText" class="form-input" value="Kapan Quote API selesai dideploy?"
378
+ maxlength="1000" placeholder="Quoted text preview" />
 
 
 
 
379
  </div>
380
+ </div>
381
 
382
+ <!-- Media Attachment Switch -->
383
+ <div class="toggle-group">
384
+ <label class="switch-container">
385
+ <input type="checkbox" id="mediaToggle" class="switch-input" />
386
+ <span class="switch-slider"></span>
387
+ <span class="switch-label">Include Attachment Image</span>
388
+ </label>
 
 
 
 
389
  </div>
390
 
391
+ <div id="mediaFields" class="nested-fields hidden">
392
+ <div class="form-group">
393
+ <label for="mediaUrl">Media Image URL</label>
394
+ <input type="url" id="mediaUrl" class="form-input" placeholder="https://example.com/photo.jpg" />
 
 
 
 
 
 
 
395
  </div>
396
+ </div>
397
+ </div>
398
 
399
+ <!-- Section: Output & Styling -->
400
+ <div class="form-section" role="group" aria-labelledby="outputStyleHeading">
401
+ <div class="section-title" id="outputStyleHeading">
402
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
403
+ <circle cx="12" cy="12" r="10"></circle>
404
+ <path d="m4.93 4.93 4.24 4.24"></path>
405
+ <path d="m14.83 9.17 4.24-4.24"></path>
406
+ <path d="m14.83 14.83 4.24 4.24"></path>
407
+ <path d="m9.17 14.83-4.24 4.24"></path>
408
+ </svg>
409
+ <span>Output Style & Layout</span>
410
+ </div>
411
 
412
+ <div class="form-row">
413
+ <div class="form-group flex-1">
414
+ <label for="quoteType">Format Type</label>
415
+ <select id="quoteType" class="form-select">
416
+ <option value="quote" selected>Quote Bubble (Sticker)</option>
417
+ <option value="stories">Stories (9:16 Vertical)</option>
418
+ <option value="image">Image Card (Canvas)</option>
419
+ </select>
420
  </div>
421
 
422
+ <div class="form-group flex-1">
423
+ <label for="imageFormat">File Format</label>
424
+ <select id="imageFormat" class="form-select">
425
+ <option value="png" selected>PNG (Lossless)</option>
426
+ <option value="webp">WebP (Compact)</option>
427
+ </select>
428
+ </div>
429
+ </div>
430
 
431
+ <div class="form-row">
432
+ <div class="form-group flex-1">
433
+ <label for="bgColor">Background Color</label>
434
+ <div class="color-picker-row">
435
+ <input type="color" id="bgColor" class="color-swatch" value="#1b1e23"
436
+ aria-label="Color Picker Swatch" />
437
+ <input type="text" id="bgColorText" class="form-input hex-input" value="#1b1e23"
438
+ aria-label="Hex Color Code" />
 
 
439
  </div>
440
  </div>
441
 
442
+ <div class="form-group flex-1" id="watermarkGroup">
443
+ <label for="watermark">Watermark (Stories/Image)</label>
444
+ <input type="text" id="watermark" class="form-input" value="qc.mangrusdi.my.id" maxlength="64"
445
+ placeholder="Watermark text" />
 
 
 
 
 
446
  </div>
447
  </div>
448
 
449
+ <!-- Color Palette Quick Pick -->
450
+ <div class="palette-group">
451
+ <span class="quick-pick-label">Telegram Themes:</span>
452
+ <button type="button" class="palette-btn active" data-color="#1b1e23" style="background: #1b1e23"
453
+ title="Dark Slate" aria-label="Dark Slate Theme"></button>
454
+ <button type="button" class="palette-btn" data-color="#0f172a" style="background: #0f172a"
455
+ title="Midnight" aria-label="Midnight Theme"></button>
456
+ <button type="button" class="palette-btn" data-color="#182533" style="background: #182533"
457
+ title="Telegram Dark" aria-label="Telegram Dark Theme"></button>
458
+ <button type="button" class="palette-btn" data-color="#212d3b" style="background: #212d3b"
459
+ title="Telegram Blue" aria-label="Telegram Blue Theme"></button>
460
+ <button type="button" class="palette-btn" data-color="#2d132c" style="background: #2d132c"
461
+ title="Deep Plum" aria-label="Deep Plum Theme"></button>
462
+ <button type="button" class="palette-btn" data-color="#172e27" style="background: #172e27"
463
+ title="Forest Dark" aria-label="Forest Dark Theme"></button>
464
  </div>
 
 
 
 
 
 
 
465
  </div>
466
 
467
+ <!-- Generate Action Button -->
468
+ <div class="form-actions">
469
+ <button id="generateBtn" type="button" class="btn-primary" data-track="click_cta_generate">
470
+ <span class="btn-icon">
471
+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
472
+ <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
473
+ <circle cx="8.5" cy="8.5" r="1.5"></circle>
474
+ <polyline points="21 15 16 10 5 21"></polyline>
475
+ </svg>
476
+ </span>
477
+ <span class="btn-text-label">Generate Quote Image</span>
478
+ </button>
479
  </div>
480
+ </form>
481
+ </section>
482
+
483
+ <section class="panel preview-panel" id="previewPanel" aria-labelledby="previewHeading">
484
+ <div class="panel-header">
485
+ <h2 id="previewHeading" class="panel-title">Interactive Live Preview</h2>
486
+ <div class="preview-mode-tag" id="previewModeTag">Quote Mode</div>
487
+ </div>
488
 
489
+ <!-- Live Preview Metadata Strip -->
490
+ <div class="preview-meta-strip">
491
+ <span class="preview-meta-item">Format: <strong id="prevFormatMeta">PNG (512px max)</strong></span>
492
+ <span class="preview-meta-item">Theme: <strong id="prevBgMeta">#1B1E23</strong></span>
493
+ </div>
494
+
495
+ <!-- Telegram Bubble Simulated Preview Box -->
496
+ <div class="preview-stage-container" id="previewStage">
497
+ <div class="telegram-quote-card" id="simulatedBubble">
498
+ <div class="tg-avatar-col">
499
+ <img id="prevAvatar" src="https://avatars.githubusercontent.com/u/108991206?v=4" alt="Avatar"
500
+ class="tg-avatar" />
501
+ </div>
502
+ <div class="tg-bubble-col">
503
+ <div class="tg-bubble-header">
504
+ <span id="prevSenderName" class="tg-sender-name">Mang Rusdi</span>
505
+ <span id="prevSenderTitle" class="tg-sender-badge">Owner</span>
506
  </div>
 
 
 
 
 
507
 
508
+ <!-- Quoted Reply Area in Bubble -->
509
+ <div id="prevReplyBox" class="tg-reply-box">
510
+ <div class="tg-reply-line"></div>
511
+ <div class="tg-reply-content">
512
+ <div id="prevReplyName" class="tg-reply-name">Dika Ardnt</div>
513
+ <div id="prevReplyText" class="tg-reply-text">Kapan Quote API selesai dideploy?</div>
 
514
  </div>
515
+ </div>
516
 
517
+ <!-- Media Preview in Bubble -->
518
+ <div id="prevMediaBox" class="tg-media-box hidden">
519
+ <img id="prevMediaImg" src="" alt="Attached media" class="tg-media-img" />
520
+ </div>
521
 
522
+ <!-- Main Message Text -->
523
+ <div id="prevMessageText" class="tg-message-text">Halo semuanya! Quote API Telegram sekarang sudah live
524
+ dan siap digunakan 🚀</div>
525
 
526
+ <!-- Message Meta Footer -->
527
+ <div class="tg-message-meta">
528
+ <span class="tg-timestamp" id="prevTimestamp">21:30</span>
529
+ <svg class="tg-checks" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
530
+ stroke-width="2">
531
+ <polyline points="20 6 9 17 4 12"></polyline>
532
+ </svg>
533
  </div>
534
  </div>
535
  </div>
536
+ </div>
537
 
538
+ <!-- Real Server Generated Result Container -->
539
+ <div id="generatedResultBox" class="generated-box hidden">
540
+ <div class="result-header">
541
+ <span class="result-badge">
542
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
543
+ <path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
544
+ <polyline points="22 4 12 14.01 9 11.01"></polyline>
545
+ </svg>
546
+ Rendered by Quote API
547
+ </span>
548
+ <div class="result-info" id="resultMeta">PNG • 512x360</div>
549
+ </div>
550
 
551
+ <div class="result-preview-image-wrap">
552
+ <img id="renderedImage" src="" alt="Rendered Quote Output" class="rendered-image" />
553
+ </div>
554
 
555
+ <div class="result-actions">
556
+ <a id="downloadBtn" href="#" download="telegram-quote.png" class="btn-secondary"
557
+ data-track="click_cta_download">
558
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
559
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
560
+ <polyline points="7 10 12 15 17 10"></polyline>
561
+ <line x1="12" y1="3" x2="12" y2="3"></line>
562
+ </svg>
563
+ Download Image
564
+ </a>
565
+ <button id="copyImageBtn" type="button" class="btn-outline" data-track="click_cta_copy_image">
566
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
567
+ <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
568
+ <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
569
+ </svg>
570
+ Copy to Clipboard
571
+ </button>
572
+ </div>
573
+ </div>
574
+
575
+ <!-- Developer API Integration Drawer -->
576
+ <div class="api-playground-box">
577
+ <div class="playground-header">
578
+ <span class="playground-title">Developer Integration Snippet</span>
579
+ <div class="playground-actions">
580
+ <div class="tab-buttons">
581
+ <button type="button" class="tab-btn active" data-tab="curl">cURL</button>
582
+ <button type="button" class="tab-btn" data-tab="js">JavaScript</button>
583
+ <button type="button" class="tab-btn" data-tab="py">Python</button>
584
+ </div>
585
+ <button id="copySnippetBtn" type="button" class="copy-snippet-btn" data-track="click_cta_copy_snippet"
586
+ title="Copy code snippet">
587
+ <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
588
  <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
589
  <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
590
  </svg>
591
+ <span class="copy-label">Copy</span>
592
  </button>
593
  </div>
594
  </div>
595
 
596
+ <div class="snippet-viewer">
597
+ <pre><code id="codeSnippet" class="code-block">curl -X POST https://qc.mangrusdi.my.id/generate ...</code></pre>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
598
  </div>
 
 
 
 
 
 
 
 
 
 
599
  </div>
600
+ </section>
601
+ </main>
602
+
603
+ <!-- Section: API Reference & Parameter Documentation -->
604
+ <section class="content-section" id="api-docs" aria-labelledby="apiDocsHeading">
605
+ <div class="section-header">
606
+ <h2 id="apiDocsHeading" class="section-heading">REST API Reference & Endpoints</h2>
607
+ <p class="section-desc">
608
+ Directly integrate Telegram quote generation into your Telegram bots, web apps, or backend services using our
609
+ public endpoints.
610
+ </p>
611
+ </div>
612
 
613
+ <div class="table-responsive">
614
+ <table class="api-table">
615
+ <thead>
616
+ <tr>
617
+ <th>Method</th>
618
+ <th>Endpoint</th>
619
+ <th>Description</th>
620
+ <th>Content-Type</th>
621
+ </tr>
622
+ </thead>
623
+ <tbody>
624
+ <tr>
625
+ <td><span class="method-tag post">POST</span></td>
626
+ <td><code class="endpoint-path">https://qc.mangrusdi.my.id/generate</code></td>
627
+ <td>Main quote generator endpoint (returns base64 image and dimensions)</td>
628
+ <td><code>application/json</code></td>
629
+ </tr>
630
+ <tr>
631
+ <td><span class="method-tag post">POST</span></td>
632
+ <td><code class="endpoint-path">https://qc.mangrusdi.my.id/api/generate</code></td>
633
+ <td>Secondary proxy route for flexible integrations</td>
634
+ <td><code>application/json</code></td>
635
+ </tr>
636
+ <tr>
637
+ <td><span class="method-tag get">GET</span></td>
638
+ <td><code class="endpoint-path">https://qc.mangrusdi.my.id/status</code></td>
639
+ <td>Operational health check and service uptime info</td>
640
+ <td><code>application/json</code></td>
641
+ </tr>
642
+ </tbody>
643
+ </table>
644
+ </div>
645
 
646
+ <!-- Request Body Schema Documentation -->
647
+ <div class="section-header" style="margin-top: 2rem;">
648
+ <h3 class="section-heading" style="font-size: 1.15rem;">Request Payload Schema (JSON)</h3>
649
+ <p class="section-desc">
650
+ Payload properties accepted by the <code>POST /generate</code> endpoint.
651
+ </p>
652
+ </div>
653
+
654
+ <div class="table-responsive">
655
+ <table class="api-table">
656
+ <thead>
657
+ <tr>
658
+ <th>Field</th>
659
+ <th>Type</th>
660
+ <th>Requirement</th>
661
+ <th>Description</th>
662
+ </tr>
663
+ </thead>
664
+ <tbody>
665
+ <tr>
666
+ <td><code class="endpoint-path">messages</code></td>
667
+ <td><code>Array&lt;Object&gt;</code></td>
668
+ <td><span class="required">Required</span></td>
669
+ <td>Array of message objects to be stacked into quote bubble canvas.</td>
670
+ </tr>
671
+ <tr>
672
+ <td><code class="endpoint-path">messages[].from.name</code></td>
673
+ <td><code>string</code></td>
674
+ <td><span class="required">Required</span></td>
675
+ <td>Sender display name shown at the top of the chat bubble.</td>
676
+ </tr>
677
+ <tr>
678
+ <td><code class="endpoint-path">messages[].text</code></td>
679
+ <td><code>string</code></td>
680
+ <td><span class="required">Required</span></td>
681
+ <td>The text message content. Supports Markdown &amp; emojis.</td>
682
+ </tr>
683
+ <tr>
684
+ <td><code class="endpoint-path">messages[].from.title</code></td>
685
+ <td><code>string</code></td>
686
+ <td>Optional</td>
687
+ <td>Role badge next to the sender name (e.g. "Admin", "Owner").</td>
688
+ </tr>
689
+ <tr>
690
+ <td><code class="endpoint-path">messages[].from.photo.url</code></td>
691
+ <td><code>string</code></td>
692
+ <td>Optional</td>
693
+ <td>Public image URL or base64 data URI for sender avatar.</td>
694
+ </tr>
695
+ <tr>
696
+ <td><code class="endpoint-path">messages[].replyMessage</code></td>
697
+ <td><code>Object</code></td>
698
+ <td>Optional</td>
699
+ <td>Quoted reply box containing <code>name</code> and <code>text</code>.</td>
700
+ </tr>
701
+ <tr>
702
+ <td><code class="endpoint-path">type</code></td>
703
+ <td><code>string</code></td>
704
+ <td>Optional</td>
705
+ <td><code>"quote"</code> (sticker, 512px max), <code>"stories"</code> (9:16), or <code>"image"</code>
706
+ (canvas).</td>
707
+ </tr>
708
+ <tr>
709
+ <td><code class="endpoint-path">format</code></td>
710
+ <td><code>string</code></td>
711
+ <td>Optional</td>
712
+ <td>Image compression format: <code>"png"</code> (lossless) or <code>"webp"</code>.</td>
713
+ </tr>
714
+ <tr>
715
+ <td><code class="endpoint-path">backgroundColor</code></td>
716
+ <td><code>string</code></td>
717
+ <td>Optional</td>
718
+ <td>Hex color string for chat bubble background (default: <code>"#1b1e23"</code>).</td>
719
+ </tr>
720
+ <tr>
721
+ <td><code class="endpoint-path">watermark</code></td>
722
+ <td><code>string</code></td>
723
+ <td>Optional</td>
724
+ <td>Branding watermark text applied on Stories and Canvas layouts.</td>
725
+ </tr>
726
+ </tbody>
727
+ </table>
728
+ </div>
729
+ </section>
730
+
731
+ <!-- Section: Output Formats & Specs -->
732
+ <section class="content-section" id="specs" aria-labelledby="specsHeading">
733
+ <div class="section-header">
734
+ <h2 id="specsHeading" class="section-heading">Supported Output Layouts</h2>
735
+ <p class="section-desc">
736
+ Choose the layout format suited to your media channel: transparent stickers, vertical stories, or wide canvas
737
+ cards.
738
+ </p>
739
+ </div>
740
+
741
+ <div class="modes-grid">
742
+ <div class="mode-card">
743
+ <h3 class="mode-card-title">Quote Bubble (Sticker)</h3>
744
+ <p class="mode-card-desc">
745
+ Standard Telegram message bubble rendered with transparent background, ideal for creating Telegram sticker
746
+ packs and bot replies.
747
  </p>
748
+ <ul class="mode-specs-list">
749
+ <li>
750
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
751
+ <polyline points="20 6 9 17 4 12"></polyline>
752
+ </svg>
753
+ 512px standard sticker width
754
+ </li>
755
+ <li>
756
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
757
+ <polyline points="20 6 9 17 4 12"></polyline>
758
+ </svg>
759
+ Full alpha channel transparency
760
+ </li>
761
+ <li>
762
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
763
+ <polyline points="20 6 9 17 4 12"></polyline>
764
+ </svg>
765
+ Supports replies and badges
766
+ </li>
767
+ </ul>
768
  </div>
769
 
770
+ <div class="mode-card">
771
+ <h3 class="mode-card-title">Vertical Stories (9:16)</h3>
772
+ <p class="mode-card-desc">
773
+ High-resolution vertical format designed for Telegram Stories, WhatsApp Status, and Instagram Reels with
774
+ custom background themes.
775
+ </p>
776
+ <ul class="mode-specs-list">
777
+ <li>
778
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
779
+ <polyline points="20 6 9 17 4 12"></polyline>
780
+ </svg>
781
+ 1080 x 1920 portrait canvas
782
+ </li>
783
+ <li>
784
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
785
+ <polyline points="20 6 9 17 4 12"></polyline>
786
+ </svg>
787
+ 4x supersampling resolution
788
+ </li>
789
+ <li>
790
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
791
+ <polyline points="20 6 9 17 4 12"></polyline>
792
+ </svg>
793
+ Custom watermark placement
794
+ </li>
795
+ </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
796
  </div>
 
797
 
798
+ <div class="mode-card">
799
+ <h3 class="mode-card-title">Image Card (Canvas)</h3>
800
+ <p class="mode-card-desc">
801
+ Horizontal card presentation featuring elevation shadows, rounded frames, and clean padding for social media
802
+ embeds and articles.
 
803
  </p>
804
+ <ul class="mode-specs-list">
805
+ <li>
806
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
807
+ <polyline points="20 6 9 17 4 12"></polyline>
808
+ </svg>
809
+ 1280 x 720 landscape canvas
810
+ </li>
811
+ <li>
812
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
813
+ <polyline points="20 6 9 17 4 12"></polyline>
814
+ </svg>
815
+ Soft elevation shadow
816
+ </li>
817
+ <li>
818
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
819
+ <polyline points="20 6 9 17 4 12"></polyline>
820
+ </svg>
821
+ Lossless PNG and compact WebP
822
+ </li>
823
+ </ul>
824
  </div>
825
+ </div>
826
+ </section>
827
+
828
+ <!-- Section: Frequently Asked Questions -->
829
+ <section class="content-section" id="faq" aria-labelledby="faqHeading">
830
+ <div class="section-header">
831
+ <h2 id="faqHeading" class="section-heading">Frequently Asked Questions</h2>
832
+ <p class="section-desc">
833
+ Common questions regarding integration, file formats, and server capabilities.
834
+ </p>
835
+ </div>
836
 
837
+ <div class="faq-grid">
838
+ <details class="faq-item" open>
839
+ <summary class="faq-summary">How do I generate quote stickers using the REST API?</summary>
840
+ <div class="faq-answer">
841
+ Send an HTTP POST request to <code>https://qc.mangrusdi.my.id/generate</code> with header
842
+ <code>Content-Type: application/json</code>. Include a <code>messages</code> array containing the sender
843
+ name, avatar URL, and text message. The server processes the canvas in approximately 1 to 2 seconds and
844
+ returns the resulting base64 image.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
845
  </div>
846
+ </details>
847
+
848
+ <details class="faq-item">
849
+ <summary class="faq-summary">Which image formats and transparency settings are supported?</summary>
850
+ <div class="faq-answer">
851
+ The API natively supports PNG and WebP. For standard sticker bubbles, PNG preserves complete alpha
852
+ transparency, making it ready to upload directly as a Telegram sticker. WebP provides smaller payloads for
853
+ web rendering and mobile bandwidth efficiency.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
854
  </div>
855
+ </details>
856
+
857
+ <details class="faq-item">
858
+ <summary class="faq-summary">Can I supply local avatar pictures without public hosting?</summary>
859
+ <div class="faq-answer">
860
+ Yes. The web customizer includes an upload button that reads your local image file and converts it into a
861
+ base64 data URI (<code>data:image/png;base64,...</code>). The backend accepts both HTTP image links and
862
+ base64 data URIs for avatars and attachments.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
863
  </div>
864
+ </details>
 
865
 
866
+ <details class="faq-item">
867
+ <summary class="faq-summary">Is there a health check endpoint to monitor API uptime?</summary>
868
+ <div class="faq-answer">
869
+ Yes. A simple HTTP GET request to <code>https://qc.mangrusdi.my.id/status</code> returns a JSON object
870
+ containing operational status, server availability, and uptime duration.
871
+ </div>
872
+ </details>
873
+ </div>
874
+ </section>
875
+
876
+ <!-- Site Footer -->
877
+ <footer class="site-footer">
878
+ <div class="footer-top">
879
+ <div>
880
+ <div class="footer-brand-text">Quote Studio</div>
881
+ <p class="footer-sub">Open-Source Telegram Quote Generator & REST API Engine</p>
882
  </div>
883
 
884
+ <div class="footer-links">
885
+ <a href="#studio" class="footer-link">Customizer</a>
886
+ <a href="#api-docs" class="footer-link">Documentation</a>
887
+ <a href="#specs" class="footer-link">Layout Formats</a>
888
+ <a href="#faq" class="footer-link">FAQ</a>
889
+ <a href="https://wa.me/6281233649676?text=Halo%20Mang%20Rusdi%2C%20saya%20tertarik%20dengan%20Quote%20Studio%20API"
890
+ target="_blank" rel="noopener noreferrer" class="footer-link" data-track="click_wa">WhatsApp</a>
891
+ <a href="https://github.com/RusdiEneri/quote" target="_blank" rel="noopener noreferrer"
892
+ class="footer-link">GitHub Repo</a>
893
+ <a href="https://huggingface.co/spaces/ilhamdev/quote-api" target="_blank" rel="noopener noreferrer"
894
+ class="footer-link">Hugging Face Space</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
895
  </div>
896
+ </div>
 
 
 
 
 
 
 
 
897
 
898
+ <div class="footer-bottom">
899
+ <p>&copy; 2026 Mang Rusdi. Built with Bun, Hono, Node-Canvas, and Vite.</p>
900
+ <p>Licensed under MIT. Open for personal and bot automation projects.</p>
901
+ </div>
902
+ </footer>
 
 
 
 
 
903
 
904
+ <!-- Global Toast Container -->
905
+ <div id="toast" class="toast hidden" role="alert" aria-live="polite"></div>
906
+ </div>
 
 
907
 
908
+ <script type="module" src="./src/main.js"></script>
909
+ </body>
 
910
 
911
+ </html>
 
 
frontend/public/404.html CHANGED
@@ -1,211 +1,209 @@
1
  <!DOCTYPE html>
2
  <html lang="id">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>404 - Halaman Tidak Ditemukan | Quote Studio</title>
7
- <meta name="robots" content="noindex, follow" />
8
- <link rel="icon" type="image/png" href="/favicon.png" />
9
- <link rel="alternate icon" href="/favicon.ico" />
10
- <link rel="apple-touch-icon" href="/favicon.png" />
11
- <link rel="preconnect" href="https://fonts.googleapis.com" />
12
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
13
- <link
14
- href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@700;800&display=swap"
15
- rel="stylesheet"
16
- />
17
- <style>
18
- :root {
19
- --bg-body: #FFFDF9;
20
- --text-primary: #121316;
21
- --text-muted: #575A65;
22
- --color-primary: #FFE74C;
23
- --color-secondary: #FF5E5B;
24
- --color-accent-blue: #00F0FF;
25
- --color-accent-green: #05FFA1;
26
- --border-color: #121316;
27
- --shadow-color: #121316;
28
- --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
29
- --font-mono: 'JetBrains Mono', monospace;
30
- }
31
-
32
- @media (prefers-color-scheme: dark) {
33
- :root {
34
- --bg-body: #0E0F12;
35
- --text-primary: #F4F5F8;
36
- --text-muted: #A0A4B0;
37
- --border-color: #F4F5F8;
38
- --shadow-color: #F4F5F8;
39
- }
40
- }
41
-
42
- * {
43
- box-sizing: border-box;
44
- margin: 0;
45
- padding: 0;
46
- }
47
-
48
- body {
49
- font-family: var(--font-sans);
50
- background-color: var(--bg-body);
51
- color: var(--text-primary);
52
- min-height: 100vh;
53
- display: flex;
54
- align-items: center;
55
- justify-content: center;
56
- padding: 1.5rem;
57
- }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  .error-card {
60
- max-width: 580px;
61
- width: 100%;
62
- background: #ffffff;
63
- border: 4px solid var(--border-color);
64
- box-shadow: 8px 8px 0px var(--shadow-color);
65
- border-radius: 8px;
66
- padding: 2.5rem 2rem;
67
- text-align: center;
68
- }
69
-
70
- @media (prefers-color-scheme: dark) {
71
- .error-card {
72
- background: #18191E;
73
- }
74
- }
75
-
76
- .badge-404 {
77
- display: inline-block;
78
- font-family: var(--font-mono);
79
- font-weight: 800;
80
- font-size: 0.85rem;
81
- text-transform: uppercase;
82
- letter-spacing: 0.08em;
83
- padding: 0.35rem 0.85rem;
84
- background: var(--color-secondary);
85
- color: #ffffff;
86
- border: 2.5px solid var(--border-color);
87
- box-shadow: 3px 3px 0px var(--shadow-color);
88
- border-radius: 4px;
89
- margin-bottom: 1.25rem;
90
- }
91
-
92
- .glitch-title {
93
- font-family: var(--font-mono);
94
- font-size: clamp(3.5rem, 12vw, 5.5rem);
95
- font-weight: 800;
96
- line-height: 1;
97
- letter-spacing: -0.05em;
98
- margin-bottom: 0.5rem;
99
- color: var(--text-primary);
100
- }
101
-
102
- .error-heading {
103
- font-size: 1.5rem;
104
- font-weight: 800;
105
- margin-bottom: 1rem;
106
- letter-spacing: -0.02em;
107
- }
108
-
109
- .error-desc {
110
- color: var(--text-muted);
111
- font-size: 1rem;
112
- line-height: 1.6;
113
- margin-bottom: 2rem;
114
- }
115
-
116
  .actions-grid {
117
- display: flex;
118
- flex-direction: column;
119
- gap: 0.85rem;
120
- }
121
-
122
- @media (min-width: 480px) {
123
- .actions-grid {
124
- flex-direction: row;
125
- justify-content: center;
126
- }
127
- }
128
-
129
- .btn {
130
- display: inline-flex;
131
- align-items: center;
132
  justify-content: center;
133
- gap: 0.5rem;
134
- padding: 0.85rem 1.35rem;
135
- font-size: 0.95rem;
136
- font-weight: 800;
137
- text-decoration: none;
138
- border: 3px solid var(--border-color);
139
- border-radius: 6px;
140
- box-shadow: 4px 4px 0px var(--shadow-color);
141
- transition: transform 0.1s ease, box-shadow 0.1s ease;
142
- cursor: pointer;
143
- }
144
-
145
- .btn:hover {
146
- transform: translate(-2px, -2px);
147
- box-shadow: 6px 6px 0px var(--shadow-color);
148
- }
149
-
150
- .btn:active {
151
- transform: translate(2px, 2px);
152
- box-shadow: 0px 0px 0px var(--shadow-color);
153
- }
154
-
155
- .btn-primary {
156
- background: var(--color-primary);
157
- color: #000000;
158
- }
159
-
160
- .btn-secondary {
161
- background: var(--color-accent-blue);
162
- color: #000000;
163
- }
164
-
165
- .btn-whatsapp {
166
- background: #25D366;
167
- color: #000000;
168
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
 
170
- .footer-note {
171
- margin-top: 2rem;
172
- font-size: 0.8rem;
173
- font-weight: 600;
174
- color: var(--text-muted);
175
- font-family: var(--font-mono);
176
- }
177
- </style>
178
- </head>
179
- <body>
180
- <div class="error-card">
181
- <div class="badge-404">HTTP ERROR 404</div>
182
- <h1 class="glitch-title">404</h1>
183
- <h2 class="error-heading">Halaman Tidak Ditemukan</h2>
184
- <p class="error-desc">
185
- Tautan yang Anda tuju mungkin sudah dipindahkan, dihapus, atau salah ketik. Silakan kembali ke Studio Customizer atau jelajahi dokumentasi API kami.
186
- </p>
187
-
188
- <div class="actions-grid">
189
- <a href="/" class="btn btn-primary" data-track="404_home">
190
- <span>&larr; Ke Studio</span>
191
- </a>
192
- <a href="/#api-docs" class="btn btn-secondary" data-track="404_docs">
193
- <span>Dokumentasi API</span>
194
- </a>
195
- <a
196
- href="https://wa.me/6281234567890?text=Halo%20Mang%20Rusdi%2C%20saya%20menemukan%20halaman%20404%20di%20Quote%20Studio"
197
- target="_blank"
198
- rel="noopener noreferrer"
199
- class="btn btn-whatsapp"
200
- data-track="404_wa"
201
- >
202
- <span>Chat WhatsApp</span>
203
- </a>
204
- </div>
205
-
206
- <div class="footer-note">
207
- Quote Studio &bull; qc.mangrusdi.my.id
208
- </div>
209
  </div>
210
- </body>
211
- </html>
 
 
 
1
  <!DOCTYPE html>
2
  <html lang="id">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>404 - Halaman Tidak Ditemukan | Quote Studio</title>
8
+ <meta name="robots" content="noindex, follow" />
9
+ <link rel="icon" type="image/png" href="/favicon.png" />
10
+ <link rel="alternate icon" href="/favicon.ico" />
11
+ <link rel="apple-touch-icon" href="/favicon.png" />
12
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
13
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14
+ <link
15
+ href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=JetBrains+Mono:wght@700;800&display=swap"
16
+ rel="stylesheet" />
17
+ <style>
18
+ :root {
19
+ --bg-body: #FFFDF9;
20
+ --text-primary: #121316;
21
+ --text-muted: #575A65;
22
+ --color-primary: #FFE74C;
23
+ --color-secondary: #FF5E5B;
24
+ --color-accent-blue: #00F0FF;
25
+ --color-accent-green: #05FFA1;
26
+ --border-color: #121316;
27
+ --shadow-color: #121316;
28
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
29
+ --font-mono: 'JetBrains Mono', monospace;
30
+ }
31
+
32
+ @media (prefers-color-scheme: dark) {
33
+ :root {
34
+ --bg-body: #0E0F12;
35
+ --text-primary: #F4F5F8;
36
+ --text-muted: #A0A4B0;
37
+ --border-color: #F4F5F8;
38
+ --shadow-color: #F4F5F8;
39
+ }
40
+ }
41
+
42
+ * {
43
+ box-sizing: border-box;
44
+ margin: 0;
45
+ padding: 0;
46
+ }
47
+
48
+ body {
49
+ font-family: var(--font-sans);
50
+ background-color: var(--bg-body);
51
+ color: var(--text-primary);
52
+ min-height: 100vh;
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ padding: 1.5rem;
57
+ }
58
+
59
+ .error-card {
60
+ max-width: 580px;
61
+ width: 100%;
62
+ background: #ffffff;
63
+ border: 4px solid var(--border-color);
64
+ box-shadow: 8px 8px 0px var(--shadow-color);
65
+ border-radius: 8px;
66
+ padding: 2.5rem 2rem;
67
+ text-align: center;
68
+ }
69
+
70
+ @media (prefers-color-scheme: dark) {
71
  .error-card {
72
+ background: #18191E;
73
+ }
74
+ }
75
+
76
+ .badge-404 {
77
+ display: inline-block;
78
+ font-family: var(--font-mono);
79
+ font-weight: 800;
80
+ font-size: 0.85rem;
81
+ text-transform: uppercase;
82
+ letter-spacing: 0.08em;
83
+ padding: 0.35rem 0.85rem;
84
+ background: var(--color-secondary);
85
+ color: #ffffff;
86
+ border: 2.5px solid var(--border-color);
87
+ box-shadow: 3px 3px 0px var(--shadow-color);
88
+ border-radius: 4px;
89
+ margin-bottom: 1.25rem;
90
+ }
91
+
92
+ .glitch-title {
93
+ font-family: var(--font-mono);
94
+ font-size: clamp(3.5rem, 12vw, 5.5rem);
95
+ font-weight: 800;
96
+ line-height: 1;
97
+ letter-spacing: -0.05em;
98
+ margin-bottom: 0.5rem;
99
+ color: var(--text-primary);
100
+ }
101
+
102
+ .error-heading {
103
+ font-size: 1.5rem;
104
+ font-weight: 800;
105
+ margin-bottom: 1rem;
106
+ letter-spacing: -0.02em;
107
+ }
108
+
109
+ .error-desc {
110
+ color: var(--text-muted);
111
+ font-size: 1rem;
112
+ line-height: 1.6;
113
+ margin-bottom: 2rem;
114
+ }
115
+
116
+ .actions-grid {
117
+ display: flex;
118
+ flex-direction: column;
119
+ gap: 0.85rem;
120
+ }
121
+
122
+ @media (min-width: 480px) {
 
 
 
 
 
123
  .actions-grid {
124
+ flex-direction: row;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  justify-content: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  }
127
+ }
128
+
129
+ .btn {
130
+ display: inline-flex;
131
+ align-items: center;
132
+ justify-content: center;
133
+ gap: 0.5rem;
134
+ padding: 0.85rem 1.35rem;
135
+ font-size: 0.95rem;
136
+ font-weight: 800;
137
+ text-decoration: none;
138
+ border: 3px solid var(--border-color);
139
+ border-radius: 6px;
140
+ box-shadow: 4px 4px 0px var(--shadow-color);
141
+ transition: transform 0.1s ease, box-shadow 0.1s ease;
142
+ cursor: pointer;
143
+ }
144
+
145
+ .btn:hover {
146
+ transform: translate(-2px, -2px);
147
+ box-shadow: 6px 6px 0px var(--shadow-color);
148
+ }
149
+
150
+ .btn:active {
151
+ transform: translate(2px, 2px);
152
+ box-shadow: 0px 0px 0px var(--shadow-color);
153
+ }
154
+
155
+ .btn-primary {
156
+ background: var(--color-primary);
157
+ color: #000000;
158
+ }
159
+
160
+ .btn-secondary {
161
+ background: var(--color-accent-blue);
162
+ color: #000000;
163
+ }
164
+
165
+ .btn-whatsapp {
166
+ background: #25D366;
167
+ color: #000000;
168
+ }
169
+
170
+ .footer-note {
171
+ margin-top: 2rem;
172
+ font-size: 0.8rem;
173
+ font-weight: 600;
174
+ color: var(--text-muted);
175
+ font-family: var(--font-mono);
176
+ }
177
+ </style>
178
+ </head>
179
+
180
+ <body>
181
+ <div class="error-card">
182
+ <div class="badge-404">HTTP ERROR 404</div>
183
+ <h1 class="glitch-title">404</h1>
184
+ <h2 class="error-heading">Halaman Tidak Ditemukan</h2>
185
+ <p class="error-desc">
186
+ Tautan yang Anda tuju mungkin sudah dipindahkan, dihapus, atau salah ketik. Silakan kembali ke Studio Customizer
187
+ atau jelajahi dokumentasi API kami.
188
+ </p>
189
+
190
+ <div class="actions-grid">
191
+ <a href="/" class="btn btn-primary" data-track="404_home">
192
+ <span>&larr; Ke Studio</span>
193
+ </a>
194
+ <a href="/#api-docs" class="btn btn-secondary" data-track="404_docs">
195
+ <span>Dokumentasi API</span>
196
+ </a>
197
+ <a href="https://wa.me/6281233649676?text=Halo%20Mang%20Rusdi%2C%20saya%20menemukan%20halaman%20404%20di%20Quote%20Studio"
198
+ target="_blank" rel="noopener noreferrer" class="btn btn-whatsapp" data-track="404_wa">
199
+ <span>Chat WhatsApp</span>
200
+ </a>
201
+ </div>
202
 
203
+ <div class="footer-note">
204
+ Quote Studio &bull; qc.mangrusdi.my.id
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  </div>
206
+ </div>
207
+ </body>
208
+
209
+ </html>