Just a Normal Fix#1
Open
dhanushlnaik wants to merge 5 commits intoKhel-fun:mainfrom
Open
Conversation
Migrating to new Layout
|
@dhanushlnaik is attempting to deploy a commit to the saurabh's projects Team on Vercel. A member of the Team first needs to authorize it. |
Saurus9290
pushed a commit
that referenced
this pull request
Oct 27, 2025
Major Changes: - Fix React 18 Strict Mode compatibility for all GSAP animations - Replace useGSAP with useLayoutEffect and proper cleanup patterns - Add ScrollTrigger.refresh() to all components for SPA navigation - Fix infinite setState loop in Navbar scroll handler GSAP Fixes: - Convert all .from() animations to .set() + .to() pattern - Add gsap.context() scoping to prevent memory leaks - Implement proper cleanup with ctx.revert() in all components - Add invalidateOnRefresh for accurate scroll calculations UI/UX Improvements: - Split hero text: KHEL top-left, FUN bottom-right with parallax - Increase girl.png character size (95vh) with subtle floating (12px/5s) - Add logo to Navbar with looping audio support - Implement lazy loading for videos and main page component - Add enhanced bento grid with 3D tilt effects (3° smooth) Content Updates: - CharacterSection: The Game - LIFE IS A KHEL with blockchain tagline - PrizeKingdomsSection: Convert to PLAY/WIN/EARN cards with emoji icons - FeaturesSection: Cinematic entrance animations with watermark masking Performance: - Fix memory leaks in CardSection and PrizeKingdomsSection - Add IntersectionObserver for lazy video loading - Optimize cube grid with CSS containment and GPU acceleration - Remove duplicate CSS animations (pulse-slow, float) Technical: - Add gsap@^3.12.5 to dependencies (was missing) - All components now TypeScript compliant with proper types - Smooth scroll behavior added globally - Mobile optimization with reduced motion support Files Modified: 14 components, globals.css, package.json New Assets: logo.ico, game videos (3-patti, poker, portal, ttt) 🎮 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
## React Flight / Next.js RCE Advisory Remediation
### Vulnerability Assessment
This project was assessed for the React Flight / Next.js RCE advisory (CVE details pending).
**Vulnerability Status: AFFECTED AND PATCHED**
### Affected Packages Detected
- ✅ **Next.js 15.5.6** - VULNERABLE (requires upgrade to 15.5.7)
- ❌ React Flight packages (not used in this project)
- ❌ No monorepo structure detected
### Changes Made
#### 1. Patched Next.js Version
- **File Modified**: `package.json`
- **Change**: Upgraded `next` from `15.5.6` to `15.5.7`
- **Rationale**: The 15.5.x minor version required the patch version 15.5.7 per the vulnerability advisory
```diff
"dependencies": {
- "next": "15.5.6",
+ "next": "15.5.7",
```
#### 2. Updated Lockfile
- **File Modified**: `package-lock.json`
- **Action**: Regenerated via `npm install`
- **Verification**: Confirmed lockfile contains `next@15.5.7`
### Dependency Analysis
- **React**: 19.1.0 (not independently vulnerable, automatically patched by Next.js)
- **React-DOM**: 19.1.0 (not independently vulnerable, automatically patched by Next.js)
- **React Server Components**: None detected (no `react-server-dom-*` packages)
### Verification Results
✅ **Build**: `npm run build` completed successfully
✅ **Linter**: `npm run lint` passed (16 pre-existing warnings unrelated to this change)
✅ **Dependencies**: `npm install` completed without vulnerabilities
✅ **Package Resolution**: Lockfile correctly resolves to patched version
### Summary
- **Vulnerability**: React Flight / Next.js RCE Advisory
- **Status**: PATCHED
- **Files Changed**: 2 files (package.json, package-lock.json)
- **Breaking Changes**: None
- **Code Changes**: None (dependency-only upgrade)
- **Build Status**: ✅ Successful
- **Next.js Version**: 15.5.7 (patched)
Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
…-flight-2csxqw Fix React Server Components RCE vulnerability
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
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.
This pull request migrates the project from a Vite + React setup to a Next.js-based architecture, including updates to configuration, dependencies, and project structure. It removes legacy Vite files and introduces new Next.js components, configuration files, and modernizes the ESLint and PostCSS setup. Several new UI components are added using TypeScript and React, leveraging GSAP for animations.
Migration to Next.js and Project Restructuring:
Migrated project from Vite + React to Next.js, updating the
README.mdto reflect Next.js usage, adding a newnext.config.ts, and removing Vite-specific files such asindex.htmland legacysrc/App.jsx. [1] [2] [3] [4]Updated
package.jsonto use Next.js dependencies and scripts, removed Vite and related dependencies, and added new dev dependencies for Next.js, ESLint, and TypeScript.Configuration Updates:
eslint.config.js,postcss.config.js) with modern.mjsmodule-based configurations compatible with Next.js and Tailwind CSS. [1] [2] [3] [4]New Landing Page Components:
Added a new animated
Aboutsection (About.tsx) featuring a GSAP-powered cube grid animation with scroll-triggered effects and ambient visuals.Introduced reusable UI components:
AnimatedTitle.tsxfor animated headings,Button.tsxfor interactive buttons with hover effects, andBottomBar.tsxfor a styled bottom navigation bar. [1] [2] [3]