-
Notifications
You must be signed in to change notification settings - Fork 22
feat: Replace GPU-intensive Aurora background with efficient gradient animation #20
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
Open
aj47
wants to merge
14
commits into
main
Choose a base branch
from
local-supabase
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🎯 Key Features: • Complete mobile-first responsive design overhaul • Fixed critical scrolling issues across all devices • Removed rate limiting for unlimited generations • Enhanced touch targets and mobile navigation 📱 Mobile Responsiveness: • Added proper viewport meta configuration • Responsive typography scaling (text-sm sm:text-base md:text-lg) • Mobile-optimized button sizes and spacing • Responsive grid layouts (1 col mobile → 2 col tablet → 3 col desktop) • Improved touch targets (min 44px height) • Custom breakpoint added (xs: 475px) 🔧 Scrolling Fixes: • Fixed AuroraBackground height constraints (h-[100vh] → min-h-screen) • Removed nested scrolling contexts causing conflicts • Fixed HTML/body height issues preventing scroll • Added smooth scrolling behavior • Eliminated overflow hidden conflicts 🎨 Component Improvements: • BrowserContainer: Responsive padding and sizing • RainbowButton: Mobile-optimized dimensions • HeroGeometric: Better responsive text scaling • Results page: Improved container structure • Example buttons: Hidden labels on mobile for space 🚀 Performance & UX: • Eliminated unnecessary height calculations • Improved rendering performance • Better memory usage with natural content flow • Cross-device compatibility tested • Keyboard navigation support ✅ Tested on: • Mobile (375px) - iPhone SE/X size • Tablet (768px) - iPad size • Desktop (1280px) - Standard desktop • All scrolling methods (touch, keyboard, mouse) This update transforms the app into a truly responsive, mobile-first experience with seamless scrolling and professional polish across all device sizes.
- Fix memory leaks in RateLimiter, VoiceInput, and AnimatedHero components - Add React.memo and useCallback optimizations to prevent unnecessary re-renders - Implement API call throttling to reduce system load - Add lazy loading for Monaco Editor to reduce initial bundle size - Optimize CSS animations with hardware acceleration and reduced motion support - Add performance monitoring utilities and debouncing hooks - Configure webpack bundle splitting for better caching - Add comprehensive documentation of optimizations This should significantly reduce CPU and memory usage during app operation.
# Conflicts: # nextjs-web-app/PERFORMANCE_OPTIMIZATIONS.md # nextjs-web-app/next.config.ts # nextjs-web-app/src/app/api/generate/route.ts # nextjs-web-app/src/app/globals.css # nextjs-web-app/src/app/page.tsx # nextjs-web-app/src/app/results/page.tsx # nextjs-web-app/src/components/AppTile.tsx # nextjs-web-app/src/components/CodePreviewPanel.tsx # nextjs-web-app/src/components/ui/browser-container.tsx # nextjs-web-app/src/components/ui/shape-landing-hero.tsx
- Removed performance monitoring utilities (PerformanceMonitor class, measurePerformance function) - Removed debouncing hooks (useDebounce, useDebouncedCallback) - Removed lazy loading component (LazyLoad) - Removed performance metrics UI component (PerformanceMetrics) - Removed rate limiting logic and RateLimiter service - Removed performance documentation (PERFORMANCE_OPTIMIZATIONS.md) - Simplified next.config.ts by removing webpack optimizations - Removed throttling delays in API generation calls - Removed performance.now() timing measurements - Removed performance-related keyboard shortcuts - Cleaned up performance-related comments and documentation - Removed backup file (original-results.tsx) The application now focuses on core functionality without performance monitoring overhead.
Remove all performance monitoring code and processes
… animation - Replace continuous aurora animation with lightweight gradient background - Remove heavy blur effects (blur-[100px], blur-[120px], blur-[90px]) - Add subtle particle animations with longer durations (15-22s vs 60s) - Reduce GPU usage by eliminating transform3d and will-change properties - Maintain visual appeal while dramatically improving performance - Add comprehensive documentation of optimization benefits Performance improvements: - Reduced GPU layer creation and rendering overhead - Eliminated complex background-position animations - Improved battery life on mobile devices - Maintained accessibility with reduced motion support Files changed: - aurora-background.tsx: New efficient gradient design - globals.css: Replace aurora keyframes with gentle animations - tailwind.config.js: Update animation definitions - BACKGROUND_OPTIMIZATION.md: Detailed performance documentation
- Updated HeroGeometric component to accept numWebsites prop - Changed hardcoded '9 separate websites' to use dynamic value - Now displays correct number based on user selection (1-6)
- Keep efficient background animations over old aurora animation - Maintain performance optimizations while integrating remote updates
…into local-supabase
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Replaced the GPU-intensive Continuous Aurora Background Animation with a more efficient, lightweight background system to improve performance and reduce GPU usage.
Changes Made
🎨 Aurora Background Component (
src/components/ui/aurora-background.tsx)Before:
animate-auroraAfter:
🎭 CSS Animations (
src/app/globals.css)Removed:
@keyframes aurora- Complex background-position animation.animate-aurora- GPU-intensive animation classAdded:
@keyframes gentle-shift- Subtle gradient movement (20s duration)@keyframes float-slow- Gentle particle floating (15s duration)@keyframes float-delayed- Delayed particle animation (18s duration)@keyframes float-gentle- Rotating particle animation (22s duration)⚙️ Tailwind Configuration (
tailwind.config.js)Updated animation definitions:
aurorakeyframe and animation🚀 Performance Benefits
GPU Usage Reduction
Animation Efficiency
Battery Life
🧪 Testing Results
prefers-reduced-motionsettings for accessibility📚 Documentation
Added comprehensive documentation in
BACKGROUND_OPTIMIZATION.mddetailing:🔧 Migration Notes
AuroraBackgroundcomponent usage remains the sameThis change significantly improves the application's performance while maintaining the visual appeal of the background animations.
Pull Request opened by Augment Code with guidance from the PR author