Commit b4c9ccb
authored
feat: add rainbow shimmer animation (#52)
## Description
Adds a dynamic rainbow shimmer animation effect to the RUNLOOP.ai
banner. The banner now features an animated emerald green gradient that
subtly shifts over time, creating a more engaging visual experience in
the CLI.
**Note:** PR titles should follow [Conventional
Commits](https://www.conventionalcommits.org/) format (e.g.,
`feat(devbox): add support for custom env vars` or `fix(snapshot):
resolve pagination issue`) as they are used for automatic release notes
generation.
## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Test updates
## Related Issues
N/A
## Changes Made
- Replaced static gradient (teen/vice) with custom color arrays for
light and dark modes
- Added animated shimmer effect using React hooks (useState, useEffect)
- Colors rotate every 250ms to create a subtle, continuous animation
- Maintained theme awareness - different color palettes for light and
dark modes
- Used emerald green shades to align with Runloop brand colors (#10B981)
## Testing
- [x] I have tested locally
- [x] I have added/updated tests
- [x] All existing tests pass (192/192 tests passed)
## Checklist
- [x] My code follows the code style of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published
## Screenshots (if applicable)
N/A - Terminal animation effect (CLI banner with shimmer)
## Additional Notes
- The shimmer effect uses a 250ms interval for smooth, subtle animation
- Color arrays contain 32 shades to create smooth transitions
- useEffect cleanup properly clears the interval to prevent memory leaks
- Component remains memoized for performance1 parent 6ab24a5 commit b4c9ccb
1 file changed
Lines changed: 86 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
7 | 78 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
13 | 92 | | |
14 | 93 | | |
15 | 94 | | |
16 | | - | |
| 95 | + | |
17 | 96 | | |
18 | 97 | | |
19 | 98 | | |
| |||
0 commit comments