fix Portfolio light theme static color
This commit is contained in:
parent
5a63ed7d74
commit
1ae199ea04
1 changed files with 7 additions and 4 deletions
11
src/App.jsx
11
src/App.jsx
|
|
@ -74,14 +74,17 @@ if (piece.label === 'cv' || piece.label === 'portfolio' || piece.featured) {
|
|||
animationFillMode: 'forwards',
|
||||
};
|
||||
|
||||
// For desktop: use hoverColor when hovering, otherwise gray
|
||||
// For static pieces: always show piece.color
|
||||
// For desktop non-static: show hoverColor when hovering, otherwise gray
|
||||
// For mobile: use blinkColor for animation (will start dim via animation)
|
||||
const bgStyle = {
|
||||
position: 'absolute',
|
||||
inset: 0,
|
||||
backgroundColor: isDark || isMobile
|
||||
? (color || bgColor) // Use actual color for blink animation
|
||||
: (isHovered ? (piece.hoverColor || color) : '#cccccc'), // Hover color or gray
|
||||
backgroundColor: isStatic
|
||||
? piece.color // Static pieces always show their color
|
||||
: (isDark || isMobile)
|
||||
? (color || bgColor) // Use actual color for blink animation
|
||||
: (isHovered ? (piece.hoverColor || color) : '#cccccc'), // Hover color or gray
|
||||
transition: 'background-color 0.15s ease',
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue