Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -81,11 +81,11 @@ async function createCustomSWGenerator({ profileImage, mainImage, caption = "Cus
|
|
| 81 |
// Teks header
|
| 82 |
ctx.fillStyle = "#FFFFFF";
|
| 83 |
ctx.font = "50px 'Roboto Sans', Arial"; // Gunakan Roboto Sans jika tersedia
|
| 84 |
-
ctx.fillText("
|
| 85 |
|
| 86 |
ctx.fillStyle = "#CCCCCC";
|
| 87 |
ctx.font = "30px 'Roboto Sans', Arial"; // Gunakan Roboto Sans
|
| 88 |
-
ctx.fillText("
|
| 89 |
|
| 90 |
// Caption teks
|
| 91 |
ctx.fillStyle = "#FFFFFF";
|
|
@@ -108,15 +108,15 @@ async function createCustomSWGenerator({ profileImage, mainImage, caption = "Cus
|
|
| 108 |
ctx.fillStyle = "#FFFFFF";
|
| 109 |
ctx.font = "30px 'Roboto Sans', Arial";
|
| 110 |
ctx.textAlign = "center";
|
| 111 |
-
ctx.fillText(`${views}
|
| 112 |
|
| 113 |
// "Promosikan"
|
| 114 |
ctx.drawImage(promoteIcon, 460, 1660, 70, 70); // Ikon promosikan
|
| 115 |
-
ctx.fillText("
|
| 116 |
|
| 117 |
// "Bagikan"
|
| 118 |
ctx.drawImage(shareIcon, 840, 1660, 70, 70); // Ikon bagikan
|
| 119 |
-
ctx.fillText("
|
| 120 |
} catch (error) {
|
| 121 |
console.error("Gagal memuat ikon:", error.message);
|
| 122 |
}
|
|
|
|
| 81 |
// Teks header
|
| 82 |
ctx.fillStyle = "#FFFFFF";
|
| 83 |
ctx.font = "50px 'Roboto Sans', Arial"; // Gunakan Roboto Sans jika tersedia
|
| 84 |
+
ctx.fillText("My status", 180, 80);
|
| 85 |
|
| 86 |
ctx.fillStyle = "#CCCCCC";
|
| 87 |
ctx.font = "30px 'Roboto Sans', Arial"; // Gunakan Roboto Sans
|
| 88 |
+
ctx.fillText("Now", 180, 130);
|
| 89 |
|
| 90 |
// Caption teks
|
| 91 |
ctx.fillStyle = "#FFFFFF";
|
|
|
|
| 108 |
ctx.fillStyle = "#FFFFFF";
|
| 109 |
ctx.font = "30px 'Roboto Sans', Arial";
|
| 110 |
ctx.textAlign = "center";
|
| 111 |
+
ctx.fillText(`${views} Views`, 170, 1780);
|
| 112 |
|
| 113 |
// "Promosikan"
|
| 114 |
ctx.drawImage(promoteIcon, 460, 1660, 70, 70); // Ikon promosikan
|
| 115 |
+
ctx.fillText("Promote", 550, 1780);
|
| 116 |
|
| 117 |
// "Bagikan"
|
| 118 |
ctx.drawImage(shareIcon, 840, 1660, 70, 70); // Ikon bagikan
|
| 119 |
+
ctx.fillText("Share", 920, 1780);
|
| 120 |
} catch (error) {
|
| 121 |
console.error("Gagal memuat ikon:", error.message);
|
| 122 |
}
|