Ruloaooa commited on
Commit
257d7ee
·
verified ·
1 Parent(s): 24d8fa5

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +5 -5
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("Status saya", 180, 80);
85
 
86
  ctx.fillStyle = "#CCCCCC";
87
  ctx.font = "30px 'Roboto Sans', Arial"; // Gunakan Roboto Sans
88
- ctx.fillText("1 menit yang lalu", 180, 130);
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} Tayangan`, 170, 1780);
112
 
113
  // "Promosikan"
114
  ctx.drawImage(promoteIcon, 460, 1660, 70, 70); // Ikon promosikan
115
- ctx.fillText("Promosikan", 550, 1780);
116
 
117
  // "Bagikan"
118
  ctx.drawImage(shareIcon, 840, 1660, 70, 70); // Ikon bagikan
119
- ctx.fillText("Bagikan", 920, 1780);
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
  }