feat(home): update projects button text and image
This commit is contained in:
@@ -82,6 +82,40 @@ onRender((ctx) => {
|
||||
87,
|
||||
);
|
||||
|
||||
// game
|
||||
ctx.font = "10px NDS10";
|
||||
ctx.fillStyle = "#282828";
|
||||
const projectsText = $t("home.projectsAndExperiences");
|
||||
const lines = projectsText.split("\n");
|
||||
|
||||
ctx.textBaseline = "top";
|
||||
|
||||
if (lines.length == 1) {
|
||||
fillTextHCentered(
|
||||
ctx,
|
||||
projectsText,
|
||||
79,
|
||||
42 + getButtonOffset("projects"),
|
||||
140,
|
||||
);
|
||||
} else {
|
||||
fillTextHCentered(
|
||||
ctx,
|
||||
lines[0]!,
|
||||
82,
|
||||
36 + getButtonOffset("projects"),
|
||||
140,
|
||||
);
|
||||
fillTextHCentered(
|
||||
ctx,
|
||||
lines[1]!,
|
||||
82,
|
||||
36 + getButtonOffset("projects") + 13,
|
||||
140,
|
||||
);
|
||||
}
|
||||
ctx.textBaseline = "alphabetic";
|
||||
|
||||
// gba thing
|
||||
ctx.font = "10px NDS10";
|
||||
ctx.fillStyle = "#a2a2a2";
|
||||
|
||||
Reference in New Issue
Block a user