-
Notifications
You must be signed in to change notification settings - Fork 3
added the animation in hero.tsx sectionnin your bussiness deserve a w… #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,57 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| @custom-variant dark (&:is(.dark *)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| /* ── Hero headline shimmer sweep ─────────────────────────────────────────── */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| @keyframes shimmer-sweep { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 0% { background-position: -200% center; } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 100% { background-position: 200% center; } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| .hero-shimmer { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| background: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 90deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #1e1b4b 0%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #4338ca 35%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #e0e7ff 49%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #c4b5fd 51%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #4338ca 65%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #1e1b4b 100% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| background-size: 200% auto; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| color: #4338ca; /* fallback color */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| background-clip: text; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-background-clip: text; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-text-fill-color: transparent; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| animation: shimmer-sweep 6s linear infinite; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| .dark .hero-shimmer { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| background: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 90deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #818cf8 0%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #a5b4fc 35%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #ddd6fe 49%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #c4b5fd 51%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #a5b4fc 65%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #818cf8 100% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| background-size: 200% auto; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| color: #818cf8; /* fallback color */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| background-clip: text; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-background-clip: text; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -webkit-text-fill-color: transparent; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| animation: shimmer-sweep 6s linear infinite; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add The shimmer animation runs infinitely for all users, including those who have indicated a preference for reduced motion. This can cause discomfort for users with vestibular disorders. The Hero component already uses ♿ Proposed fix to respect motion preferences+@media (prefers-reduced-motion: reduce) {
+ .hero-shimmer {
+ animation: none;
+ }
+}
+
.dark .hero-shimmer {🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| /* ── Hero "Converts" glow pulse ──────────────────────────────────────────── */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| @keyframes glow-pulse { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 0%, 100% { filter: drop-shadow(0 0 2px rgba(99,102,241,0.2)) drop-shadow(0 0 1px rgba(167,139,250,0.15)); } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 50% { filter: drop-shadow(0 0 8px rgba(99,102,241,0.5)) drop-shadow(0 0 4px rgba(167,139,250,0.35)); } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| .converts-glow { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| animation: glow-pulse 2.5s ease-in-out infinite; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| display: inline-block; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+43
to
+54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add Like the shimmer animation, the glow pulse runs infinitely without checking user motion preferences. ♿ Proposed fix .converts-glow {
animation: glow-pulse 2.5s ease-in-out infinite;
display: inline-block;
}
+
+@media (prefers-reduced-motion: reduce) {
+ .converts-glow {
+ animation: none;
+ }
+}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
| :root { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --font-size: 16px; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --background: #ffffff; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 353
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 89
🏁 Script executed:
# Check git history to see what Hero component looked like before and if TypingText was used git log --oneline -n 20 src/app/components/Hero.tsxRepository: hrx01-dev/Servio
Length of output: 157
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 88
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 1917
🏁 Script executed:
# Check the git diff to see what was replaced in this commit git diff HEAD~1 HEAD src/app/components/Hero.tsxRepository: hrx01-dev/Servio
Length of output: 249
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 5400
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 1087
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 653
🏁 Script executed:
Repository: hrx01-dev/Servio
Length of output: 1772
PR removes typing animation but issue
#89explicitly requests it.Issue
#89states: "Add Typing Animation in the given ref" for better visual consistency and UX. However, this PR replaces the typing animation with shimmer/glow CSS effects instead. TheTypingTextcomponent is imported but not used in the headline, and issue#89's explicit requirement contradicts the current implementation.Clarify the intended approach:
#89be updated to reflect the shimmer/glow approach?Also remove the unused
TypingTextimport from line 5.🤖 Prompt for AI Agents