diff --git a/news-app/src/main.js b/news-app/src/main.js index 53be35a..d59a815 100644 --- a/news-app/src/main.js +++ b/news-app/src/main.js @@ -217,8 +217,18 @@ function renderEmpty() { function renderCarModeCard(group, index, total) { const fadeClass = state.isTransitioning ? 'fading-out' : '' + // Determine glow color based on position from end + // Last 2 cards: red glow + // 3 cards before the last 2 (3rd, 4th, 5th from end): orange glow + // Others: yellow glow (default) + let glowClass = 'glow-yellow' + if (index >= total - 2) { + glowClass = 'glow-red' + } else if (index >= total - 5) { + glowClass = 'glow-orange' + } return ` -