Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions apps/web/src/components/landing-sections/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ const Hero = () => {
</div>
</Link>
</motion.div>
<motion.h1
<motion.div
initial="hidden"
animate="visible"
variants={itemVariants}
className="text-5xl text-[2.8rem] lg:text-7xl lg:text-[6rem] font-medium tracking-tighter [will-change:transform,opacity] motion-reduce:transition-none motion-reduce:transform-none"
>
Only platform you need to get into Open Source
</motion.h1>
<h1 className="text-5xl lg:text-7xl font-medium tracking-tighter">
Only platform you need to get into Open Source
</h1>
</motion.div>
Comment on lines +74 to +82
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Get full content of Hero.tsx to verify patterns
cat -n apps/web/src/components/landing-sections/Hero.tsx

Repository: apsinghdev/opensox

Length of output: 5130


Remove redundant animation props and add will-change for consistency; fix hardcoded colors.

The h1 wrapper can follow the pattern at line 57 by using only variants={itemVariants} without explicit initial and animate props—the parent container already orchestrates the animation states. Add [will-change:transform,opacity] to match other animated elements (lines 57, 106).

Additionally, lines 67-69 use hardcoded hex colors (#FF6154, #FF8C00). Replace with semantic color tokens from the design system per the guidelines for apps/web/src/components/.

🤖 Prompt for AI Agents
In apps/web/src/components/landing-sections/Hero.tsx around lines 74 to 82,
remove the redundant initial="hidden" and animate="visible" props on the
motion.div (the parent already controls animation like the element at line 57),
add the same will-change utility ([will-change:transform,opacity]) to its
className to match other animated elements, and replace the hardcoded hex color
usages on lines ~67-69 with the appropriate semantic design-system color tokens
used elsewhere in the component (use the same token names/pattern as other
elements in this file).

<motion.p
initial={{ opacity: 0, y: 30, filter: "blur(10px)" }}
animate={{ opacity: 1, y: 0, filter: "blur(0px)" }}
Expand Down