Skip to content

Just a Normal Fix#1

Open
dhanushlnaik wants to merge 5 commits intoKhel-fun:mainfrom
dhanushlnaik:main
Open

Just a Normal Fix#1
dhanushlnaik wants to merge 5 commits intoKhel-fun:mainfrom
dhanushlnaik:main

Conversation

@dhanushlnaik
Copy link
Copy Markdown

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.md to reflect Next.js usage, adding a new next.config.ts, and removing Vite-specific files such as index.html and legacy src/App.jsx. [1] [2] [3] [4]

  • Updated package.json to use Next.js dependencies and scripts, removed Vite and related dependencies, and added new dev dependencies for Next.js, ESLint, and TypeScript.

Configuration Updates:

  • Replaced the old JavaScript-based ESLint and PostCSS configurations (eslint.config.js, postcss.config.js) with modern .mjs module-based configurations compatible with Next.js and Tailwind CSS. [1] [2] [3] [4]

New Landing Page Components:

  • Added a new animated About section (About.tsx) featuring a GSAP-powered cube grid animation with scroll-triggered effects and ambient visuals.

  • Introduced reusable UI components: AnimatedTitle.tsx for animated headings, Button.tsx for interactive buttons with hover effects, and BottomBar.tsx for a styled bottom navigation bar. [1] [2] [3]

Migrating to new Layout
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 25, 2025

@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
dhanushlnaik and others added 4 commits October 30, 2025 23:44
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant