fix Portfolio light theme shows actual color
This commit is contained in:
parent
245fbf7697
commit
abd73a4864
1 changed files with 6 additions and 8 deletions
14
src/App.jsx
14
src/App.jsx
|
|
@ -49,15 +49,13 @@ function TetrisPiece({ piece, isDark }) {
|
||||||
// For desktop non-static: start gray, show hover color when hovering
|
// For desktop non-static: start gray, show hover color when hovering
|
||||||
// For mobile dark: use colorDark for less gray
|
// For mobile dark: use colorDark for less gray
|
||||||
// For mobile light: use actual color
|
// For mobile light: use actual color
|
||||||
const bgColor = piece.label === 'cv'
|
const bgColor = (piece.label === 'cv' || isStatic)
|
||||||
? piece.color
|
? piece.color
|
||||||
: (isStatic)
|
: (isMobile && isDark)
|
||||||
? piece.color // Static pieces show color immediately
|
? (color || piece.colorDark || piece.color)
|
||||||
: (isMobile && isDark)
|
: (isMobile)
|
||||||
? (color || piece.colorDark || piece.color)
|
? (color || piece.color)
|
||||||
: (isMobile)
|
: '#cccccc'; // Start gray for desktop only
|
||||||
? (color || piece.color)
|
|
||||||
: '#cccccc'; // Start gray for desktop only
|
|
||||||
const rowDelay = (piece.startY * 10) + (piece.startX * 2); // Stagger based on both X and Y position
|
const rowDelay = (piece.startY * 10) + (piece.startX * 2); // Stagger based on both X and Y position
|
||||||
const textColor = '#ffffff';
|
const textColor = '#ffffff';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue