From 59553ebfbc8b53825c281e80c924430d86320e07 Mon Sep 17 00:00:00 2001 From: vndangkhoa Date: Wed, 29 Apr 2026 16:31:00 +0700 Subject: [PATCH] stagger blink timing for one-by-one effect --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 8a3688e..e2c76e5 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -49,9 +49,9 @@ function TetrisPiece({ piece, isDark }) { const bgColor = piece.label === 'cv' ? piece.color : (isDark || isMobile) - ? (color || piece.color) + ? (color !== null && color !== undefined ? color : piece.color) : '#cccccc'; // Start gray for desktop - const rowDelay = piece.startY * 8; + const rowDelay = (piece.startY * 10) + (piece.startX * 2); // Stagger based on both X and Y position const textColor = '#ffffff'; const isStatic = piece.label === 'cv' || piece.featured;