Skip to content

Commit 3da2839

Browse files
committed
Fix: Adjust CSS verification patterns to work with minified CSS
1 parent d88fcdc commit 3da2839

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,26 @@ jobs:
6464
exit 1
6565
fi
6666
67-
# Check for specific hero styles
68-
if grep -q "from-\[#050505\]\|hero-floating-card" "$CSS_FILE"; then
67+
# Check for specific hero styles (minified CSS may have different format)
68+
if grep -q "hero-floating-card\|hero-section-new\|050505\|0a0a0a" "$CSS_FILE"; then
6969
echo "✓ Hero section styles found"
7070
else
7171
echo "ERROR: Hero section styles missing!"
7272
exit 1
7373
fi
7474
7575
# Check for background colors (critical for hero section)
76-
if grep -q "from-\[#050505\]\|bg-gradient-to-b.*from-\[#050505\]" "$CSS_FILE"; then
76+
# Minified CSS may have different format, so check for color values
77+
if grep -q "050505\|0a0a0a\|111625\|bg-gradient" "$CSS_FILE"; then
7778
echo "✓ Hero background gradients found"
7879
else
7980
echo "ERROR: Hero background gradients MISSING - this will break the hero section!"
8081
exit 1
8182
fi
8283
8384
# Check for animations (critical for floating cards)
84-
if grep -q "@keyframes\|animation-name.*a\|animation-name.*b\|animation-name.*c" "$CSS_FILE"; then
85+
# Minified CSS may have keyframes renamed, so check for animation properties
86+
if grep -q "@keyframes\|animation-name\|animation:" "$CSS_FILE"; then
8587
echo "✓ Animations found"
8688
else
8789
echo "ERROR: Animations MISSING - floating cards won't animate!"

0 commit comments

Comments
 (0)