fix: reset store + animate intro on mount, and fix wrong opacity/positions

This commit is contained in:
2025-11-17 01:22:13 +01:00
parent e5ed33f5ce
commit 8d186df4cb
9 changed files with 34 additions and 16 deletions

View File

@@ -56,12 +56,16 @@ useRender((ctx) => {
ctx.globalAlpha = store.isIntro
? store.intro.stage1Opacity
: store.outro.stage1Opacity;
: store.isOutro
? store.outro.stage1Opacity
: 1;
ctx.drawImage(clockImage.value, 13, 45);
ctx.globalAlpha = store.isIntro
? store.intro.stage1Opacity
: store.outro.stage2Opacity;
: store.isOutro
? store.outro.stage2Opacity
: 1;
const now = new Date();
const renderHand = (