Skip to content

Add animated landing page flow#76

Open
Nikhi-l wants to merge 2 commits intomainfrom
codex/implement-landing-page-animations-and-navigation-lbhror
Open

Add animated landing page flow#76
Nikhi-l wants to merge 2 commits intomainfrom
codex/implement-landing-page-animations-and-navigation-lbhror

Conversation

@Nikhi-l
Copy link
Owner

@Nikhi-l Nikhi-l commented Sep 9, 2025

Summary

  • transition hero Spline page to detailed landing via framer-motion
  • link landing page buttons to chat and login
  • document landing transition plan

Testing

  • pnpm lint
  • pnpm test (fails: This module cannot be imported from a Client Component module)

https://chatgpt.com/codex/tasks/task_e_68bfb30f2ebc8324bfc207d8f6cbfaa8

@vercel
Copy link

vercel bot commented Sep 9, 2025

@Nikhi-l is attempting to deploy a commit to the Nikhil's projects team on Vercel, but is not a member of this team. To resolve this issue, you can:

  • Make your repository public. Collaboration is free for open source and public repositories.
  • Upgrade to pro and add @Nikhi-l as a member. A Pro subscription is required to access Vercel's collaborative features.
    • If you're the owner of the team, click here to upgrade and add @Nikhi-l as a member.
    • If you're the user who initiated this build request, click here to request access.
    • If you're already a member of the Nikhil's projects team, make sure that your Vercel account is connected to your GitHub account.

To read more about collaboration on Vercel, click here.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines +1 to +15
import { useEffect, useState } from 'react';
import Spline from '@splinetool/react-spline/next';
import { motion, AnimatePresence } from 'framer-motion';
import { Button } from '@/components/ui/button';

export default function Home() {
const [showLanding, setShowLanding] = useState(false);

useEffect(() => {
const onWheel = (e: WheelEvent) => {
if (e.deltaY > 0) setShowLanding(true);
};
window.addEventListener('wheel', onWheel, { once: true });
return () => window.removeEventListener('wheel', onWheel);
}, []);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P0] Mark home page as client component before using hooks

The Home component now calls useState and useEffect and attaches a wheel listener, but the file is still a default Server Component (there is no 'use client' directive). Server Components cannot use React hooks or browser APIs, so this page will fail to compile and the landing transition never renders. Add 'use client'; at the top so the page is treated as a Client Component before using hooks and DOM APIs.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant