Skip to content

feat: implement Jack 3D Creator portfolio landing page - #25

Open
SayanthRock wants to merge 1 commit into
mainfrom
feat/jack-3d-creator-portfolio-14708749254582490870
Open

feat: implement Jack 3D Creator portfolio landing page#25
SayanthRock wants to merge 1 commit into
mainfrom
feat/jack-3d-creator-portfolio-14708749254582490870

Conversation

@SayanthRock

@SayanthRock SayanthRock commented Aug 6, 2026

Copy link
Copy Markdown
Owner

User description

Built a new responsive portfolio landing page for "Jack" based on the provided design specifications.

  • Updated global styles (font Kanit, #0C0C0C background) and index.html title.
  • Created reusable components: ContactButton, LiveProjectButton, FadeIn, Magnet, and AnimatedText.
  • Implemented 5 sections: HeroSection, MarqueeSection, AboutSection, ServicesSection, and ProjectsSection.
  • Added scroll-driven animations with Framer Motion (useScroll, useTransform) for sticky cards, character-by-character text reveals, and marquee sections.
  • Verified all styles, images, text, and fluid typography. Tests pass and UI is visually verified.

PR created automatically by Jules for task 14708749254582490870 started by @SayanthRock


CodeAnt-AI Description

Launch Jack’s 3D creator portfolio landing page

What Changed

  • Replaced the developer portfolio with a focused 3D creator experience for Jack
  • Added a full-screen hero with navigation, portrait imagery, animated entrance effects, magnetic cursor interaction, and contact buttons
  • Added scrolling galleries, animated about text, and decorative 3D artwork
  • Updated services to highlight 3D modeling, rendering, motion design, branding, and web design
  • Added three stacked project showcases with client labels, image layouts, and live project buttons
  • Updated typography, colors, page title, and responsive layouts to match the new visual direction

Impact

✅ Clearer 3D creator positioning
✅ Interactive portfolio presentation
✅ Responsive project showcases

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • New Features
    • Added a projects portfolio with animated cards, responsive image grids, project details, and live-project links.
    • Added a scrolling showcase marquee with preview images.
    • Added interactive cursor-responsive elements and scroll-based text animations.
    • Added reusable contact and animation components.
  • Enhancements
    • Redesigned the hero and about sections with new navigation, imagery, typography, and contact actions.
    • Updated services to highlight 3D modeling, rendering, motion design, branding, and web design.
    • Refreshed the site title, font styling, and gradient heading visuals.

Co-authored-by: SayanthRock <202829406+SayanthRock@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sayanth-rock-github-io Ready Ready Preview Aug 6, 2026 10:28pm

Copilot AI lite review requested due to automatic review settings August 6, 2026 22:28
@devloai

devloai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Unable to trigger custom agent "Code Reviewer". You have run out of credits 😔
Please upgrade your plan or buy additional credits from the subscription page.

@performance-testing-bot

Copy link
Copy Markdown

Unable to locate .performanceTestingBot config file

@ai-coding-guardrails

Copy link
Copy Markdown

You've hit your review limit for the week, but don't worry you'll get some more next week!

Contact us at hello@zenable.io if you want this rate limit to go away

@codeant-ai

codeant-ai Bot commented Aug 6, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 8c26775 Aug 06, 2026 · 22:28 22:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codeant-ai

codeant-ai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The portfolio was redesigned for a 3D creator identity. The page now includes interactive hero and about sections, scrolling previews, animated project cards, revised services, shared animation components, and updated typography.

Changes

Portfolio redesign

Layer / File(s) Summary
Shared interactive components
src/components/AnimatedText.tsx, src/components/ContactButton.tsx, src/components/FadeIn.tsx, src/components/LiveProjectButton.tsx, src/components/Magnet.tsx, src/index.css
Added character-based text animation, polymorphic buttons, viewport fade-ins, cursor magnetism, and gradient heading styles.
Hero and about composition
src/sections/HeroSection.tsx, src/sections/AboutSection.tsx, index.html
Replaced the previous hero and about layouts with creator content, navigation links, interactive imagery, animated text, decorative images, and contact actions. Updated the document title.
Marquee and projects sections
src/sections/MarqueeSection.tsx, src/sections/ProjectsSection.tsx, src/App.tsx
Added scrolling GIF previews and animated project cards. Updated App to render the new page composition and remove the former sections.
Services and visual styling
src/sections/ServicesSection.tsx
Replaced software services with 3D creator services and revised colors, typography, spacing, and row styling.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Visitor
  participant App
  participant HeroSection
  participant Magnet
  participant MarqueeSection
  participant ProjectsSection
  Visitor->>App: Load portfolio page
  App->>HeroSection: Render creator hero
  HeroSection->>Magnet: Track portrait interaction
  Magnet->>HeroSection: Apply cursor-relative translation
  App->>MarqueeSection: Render scrolling previews
  App->>ProjectsSection: Render animated project cards
  ProjectsSection->>Visitor: Display project metadata and images
Loading

Possibly related PRs

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: implementing Jack's 3D Creator portfolio landing page.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/jack-3d-creator-portfolio-14708749254582490870

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:XL This PR changes 500-999 lines, ignoring generated files label Aug 6, 2026
</h3>
</div>
</div>
<LiveProjectButton as="button" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The “Live Project” control is rendered as a button without an onClick, href, or any project URL, so clicking it has no effect for every project card. Provide a destination for each project and render this as an anchor, or attach the intended action. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ All three project cards expose non-functional “Live Project” controls.
- ⚠️ Visitors cannot open the showcased project destinations.
- ⚠️ The portfolio's primary project call-to-action provides no action.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/sections/ProjectsSection.tsx
**Line:** 74:74
**Comment:**
	*Incomplete Implementation: The “Live Project” control is rendered as a button without an `onClick`, `href`, or any project URL, so clicking it has no effect for every project card. Provide a destination for each project and render this as an anchor, or attach the intended action.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎


{/* Contact Button */}
<FadeIn delay={0.2} y={20}>
<ContactButton />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: This adds another Contact Me control with no action, so the About section's primary call to action is also inert. Reuse a link or provide an explicit click handler that navigates to the contact destination. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ About contact CTA performs no action.
- ⚠️ Visitors cannot reach the available ContactSection.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/sections/AboutSection.tsx
**Line:** 88:88
**Comment:**
	*Incomplete Implementation: This adds another Contact Me control with no action, so the About section's primary call to action is also inert. Reuse a link or provide an explicit click handler that navigates to the contact destination.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Comment on lines +10 to +13
{['About', 'Price', 'Projects', 'Contact'].map((link) => (
<a
key={link}
href={`#${link.toLowerCase()}`}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The generated navigation contains links to #price and #contact, but the mounted page has no element with either ID, so those two navigation items do not scroll anywhere. Add the corresponding sections/IDs or remove the links. [api mismatch]

Severity Level: Major ⚠️
- ❌ Price navigation cannot reach a page section.
- ❌ Contact navigation cannot reach a page section.
- ⚠️ Hero navbar presents broken destinations.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/sections/HeroSection.tsx
**Line:** 10:13
**Comment:**
	*Api Mismatch: The generated navigation contains links to `#price` and `#contact`, but the mounted page has no element with either ID, so those two navigation items do not scroll anywhere. Add the corresponding sections/IDs or remove the links.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

</motion.div>
</motion.div>
<FadeIn delay={0.5} y={20}>
<ContactButton />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: This adds a visible Contact Me control without supplying an onClick, type, or link destination, while ContactButton itself only renders a plain button. Clicking the hero contact button therefore has no effect; wire it to the contact section or a contact action. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ Hero Contact Me CTA performs no action.
- ⚠️ Visitors cannot initiate contact from the hero.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/sections/HeroSection.tsx
**Line:** 59:59
**Comment:**
	*Incomplete Implementation: This adds a visible Contact Me control without supplying an `onClick`, `type`, or link destination, while `ContactButton` itself only renders a plain button. Clicking the hero contact button therefore has no effect; wire it to the contact section or a contact action.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Comment on lines +31 to +32
const row1Tripled = [...row1, ...row1, ...row1];
const row2Tripled = [...row2, ...row2, ...row2];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The component creates 63 <img> instances for 21 remote animated GIFs by rendering each row three times. loading="lazy" only defers loading and does not prevent all three visible row copies from remaining animated and consuming decoded-frame memory once loaded, causing unnecessary CPU and memory usage during scrolling. Render only the minimum copies needed for the visible window or use static/optimized assets with explicit lifecycle control. [performance]

Severity Level: Major ⚠️
- ⚠️ Marquee scrolling performs unnecessary GIF animation work.
- ⚠️ Mobile devices may experience higher memory usage.
- ⚠️ Remote asset loading increases during marquee use.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/sections/MarqueeSection.tsx
**Line:** 31:32
**Comment:**
	*Performance: The component creates 63 `<img>` instances for 21 remote animated GIFs by rendering each row three times. `loading="lazy"` only defers loading and does not prevent all three visible row copies from remaining animated and consuming decoded-frame memory once loaded, causing unnecessary CPU and memory usage during scrolling. Render only the minimum copies needed for the visible window or use static/optimized assets with explicit lifecycle control.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Comment thread src/App.tsx
Comment on lines 35 to +39
<HeroSection />
<MarqueeSection />
<AboutSection />
<SkillsSection />
<ServicesSection />
<FeaturedProjectsSection />
<GithubSection />
<PhotographySection />
<TimelineSection />
<TestimonialsSection />
<ContactSection />
<ProjectsSection />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The new composition removes the existing contact, footer, skills, GitHub, and pricing-related sections. As a result, the hero navigation links to #price and #contact have no matching targets, and the site's existing contact/footer functionality is no longer reachable. Restore the required sections or update the navigation and CTAs to target sections that are actually rendered. [api mismatch]

Severity Level: Major ⚠️
- ❌ Hero `Price` navigation has no destination.
- ❌ Hero `Contact` navigation cannot reach the contact form.
- ⚠️ Existing footer and portfolio sections are no longer rendered.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/App.tsx
**Line:** 35:39
**Comment:**
	*Api Mismatch: The new composition removes the existing contact, footer, skills, GitHub, and pricing-related sections. As a result, the hero navigation links to `#price` and `#contact` have no matching targets, and the site's existing contact/footer functionality is no longer reachable. Restore the required sections or update the navigation and CTAs to target sections that are actually rendered.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Comment on lines +8 to +10
export function ContactButton({ className, children = "Contact Me", ref, ...props }: ContactButtonProps) {
return (
<button

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: Both current callers render this component without href, onClick, or any other action, so the visible “Contact Me” controls are inert submit-less buttons. Provide a default link/action to the contact section or require callers to supply one. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ Hero contact CTA performs no action.
- ❌ About contact CTA performs no action.
- ⚠️ Contact form remains unreachable through these controls.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/components/ContactButton.tsx
**Line:** 8:10
**Comment:**
	*Incomplete Implementation: Both current callers render this component without `href`, `onClick`, or any other action, so the visible “Contact Me” controls are inert submit-less buttons. Provide a default link/action to the contact section or require callers to supply one.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Comment on lines +10 to +16
export function LiveProjectButton({ className, children = "Live Project", as = 'button', href, ref, ...props }: LiveProjectButtonProps) {
const Comp = as as any;

return (
<a
href={href || "#"}
target="_blank"
rel="noopener noreferrer"
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
className="group relative flex items-center gap-3 overflow-hidden rounded-full border border-white/20 bg-white/5 px-6 py-3 backdrop-blur-md transition-all hover:bg-white hover:text-dark"
<Comp
ref={ref}
href={href}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggestion: The project cards currently use this component as a plain button without an href or click handler, so every “Live Project” CTA is inert. The component should receive a real project URL/action from its callers, or the implementation should not render a live-project control until one is available. [incomplete implementation]

Severity Level: Major ⚠️
- ❌ All three project CTAs are nonfunctional.
- ⚠️ Visitors cannot open the showcased projects.
- ⚠️ Project cards provide no alternative project links.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/components/LiveProjectButton.tsx
**Line:** 10:16
**Comment:**
	*Incomplete Implementation: The project cards currently use this component as a plain button without an `href` or click handler, so every “Live Project” CTA is inert. The component should receive a real project URL/action from its callers, or the implementation should not render a live-project control until one is available.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 8

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/AnimatedText.tsx`:
- Around line 30-43: Refactor AnimatedText so the characters.map callback only
renders a child character component, passing char, start, end, and
scrollYProgress as props. Move the useTransform call to the top level of that
child component, preserving the existing character layout and animation ranges
while ensuring hook usage is independent of characters.length.

In `@src/components/FadeIn.tsx`:
- Line 26: Move the motion.create(Component) call out of the FadeIn render path
so the MotionComponent identity remains stable across renders. Use a memoized
cache keyed by Component, and update FadeIn to reuse the cached motion component
without changing its existing animation behavior.

In `@src/index.css`:
- Around line 17-20: Update the global style rule containing the `@apply`
declaration by adding an empty line before background-color and changing the
font-family value from quoted Kanit to unquoted Kanit to satisfy Stylelint.

In `@src/sections/HeroSection.tsx`:
- Around line 58-60: Connect the ContactButton in src/sections/HeroSection.tsx
lines 58-60 to the selected contact action, and apply the same action to the
ContactButton in src/sections/AboutSection.tsx lines 86-89. Ensure both native
buttons receive the required handler so the visible contact controls trigger the
same contact flow.
- Around line 10-14: Restore valid Hero navigation destinations: update
src/sections/HeroSection.tsx lines 10-14 to use only mounted destination IDs, or
provide matching targets for the existing labels; update src/App.tsx lines 34-40
to mount pricing and contact sections or assign the required IDs to the intended
existing sections. Ensure every generated href from the Hero navigation resolves
to an element in the application.

In `@src/sections/ProjectsSection.tsx`:
- Line 74: Update the project records and the rendering logic around
LiveProjectButton so each control uses a verified project URL and renders as an
anchor linking to that destination. Remove or disable the control when its
project has no URL, rather than rendering a button without navigation behavior.
- Around line 82-91: Update all project images in
src/sections/ProjectsSection.tsx lines 82-91 and all decorative images in
src/sections/AboutSection.tsx lines 17-66 to include lazy loading and
asynchronous decoding. Apply both attributes consistently to every affected img
element.

In `@src/sections/ServicesSection.tsx`:
- Around line 43-44: Move the border styling, including last:border-0, from the
inner service-row div to the FadeIn wrapper via its className prop so last-child
evaluation occurs across service wrappers; keep the row layout and spacing
classes unchanged.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5b7621eb-3cf9-40c0-b2e4-bc8d1da883ae

📥 Commits

Reviewing files that changed from the base of the PR and between 82d1158 and 8c26775.

📒 Files selected for processing (14)
  • index.html
  • src/App.tsx
  • src/components/AnimatedText.tsx
  • src/components/ContactButton.tsx
  • src/components/FadeIn.tsx
  • src/components/LiveProjectButton.tsx
  • src/components/Magnet.tsx
  • src/index.css
  • src/sections/AboutSection.tsx
  • src/sections/FeaturedProjectsSection.tsx
  • src/sections/HeroSection.tsx
  • src/sections/MarqueeSection.tsx
  • src/sections/ProjectsSection.tsx
  • src/sections/ServicesSection.tsx
💤 Files with no reviewable changes (1)
  • src/sections/FeaturedProjectsSection.tsx

Comment on lines +30 to +43
{characters.map((char, i) => {
const start = i / characters.length;
const end = start + (1 / characters.length);

return (
<span key={i} className="relative inline-block">
{/* Invisible placeholder to maintain layout */}
<span className="invisible">{char === ' ' ? '\u00A0' : char}</span>
{/* Absolute animated character */}
<motion.span
className="absolute left-0 top-0"
style={{
opacity: useTransform(scrollYProgress, [start, end], [0.2, 1])
}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 4 'useTransform\s*\(' src/components/AnimatedText.tsx
rg -n -C 3 '<AnimatedText|AnimatedText\s*\(' src

Repository: SayanthRock/SayanthRock.github.io

Length of output: 1719


🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '1,120p' src/components/AnimatedText.tsx
printf '\n--- package deps ---\n'
if [ -f package.json ]; then
  node -e "const p=require('./package.json'); console.log(JSON.stringify({dependencies:p.dependencies,devDependencies:p.devDependencies}, null, 2))"
fi

Repository: SayanthRock/SayanthRock.github.io

Length of output: 2533


Move useTransform out of characters.map().

AnimatedText calls useTransform inside a map callback, so the Hook count changes when text.length changes. This violates React’s top-level Hook rule and can break rendering.

Create a child component for each character, pass char, start, end, and scrollYProgress, and call useTransform at that component’s top level.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/AnimatedText.tsx` around lines 30 - 43, Refactor AnimatedText
so the characters.map callback only renders a child character component, passing
char, start, end, and scrollYProgress as props. Move the useTransform call to
the top level of that child component, preserving the existing character layout
and animation ranges while ensuring hook usage is independent of
characters.length.

Comment thread src/components/FadeIn.tsx
}: FadeInProps) {
const ref = useRef<HTMLDivElement>(null);
const isInView = useInView(ref, { once, margin: '-10% 0px' });
const MotionComponent = motion.create(Component);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 4 'motion\.create\s*\(' src/components/FadeIn.tsx
rg -n -C 3 '<FadeIn|FadeIn\s*\(' src

Repository: SayanthRock/SayanthRock.github.io

Length of output: 15312


🌐 Web query:

Framer motion motion.create new component factory memoization unstable component behavior

💡 Result:

When using motion.create in Framer Motion, it is critical to avoid calling the function within a React render cycle [1]. Doing so creates a new component definition on every render, which discards the internal state of the previous component and results in broken animations and performance degradation [1]. To properly use motion.create: 1. Component Definition: Always define the motion component outside of your functional component's render body (e.g., at the module level) [1]. This ensures the component factory is executed only once, creating a stable reference that React can optimize [2]. 2. Memoization: While Framer Motion performs internal caching for its own motion.div, motion.span, etc., using a proxy mechanism to ensure components are not re-created [2], you should treat user-defined components created via motion.create as standard React components. If you are concerned about unnecessary re-renders of the wrapped component due to prop changes, you can wrap the source component in React.memo before passing it to motion.create. 3. Ref Forwarding: For motion.create to function correctly with custom components, the underlying component must properly forward refs [1]. In React 18 and earlier, this typically requires wrapping your component in React.forwardRef [1]. If you observe unstable behavior such as "laggy" animations or components re-mounting unexpectedly, verify that your component declaration is not inside your render function and that you are not re-creating the component object on every state update [1][3]. If performance issues persist, they may be related to how props are being passed or the internal lifecycle of the component, rather than the memoization of the factory itself [3][4].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '--- src/components/FadeIn.tsx ---\n'
cat -n src/components/FadeIn.tsx

printf '\n--- dependency/framer-motion references ---\n'
for f in package.json pnpm-lock.yaml package-lock.json yarn.lock bun.lockb; do
  if [ -f "$f" ]; then
    echo "FILE: $f"
    rg -n 'framer-motion|react' "$f" || true
  fi
done

printf '\n--- memoized motion.create occurrences ---\n'
rg -n -C 3 'motion\.create\s*\(|useMemo\s*\(\s*\(\)\s*=>\s*motion\.create' src package.json 2>/dev/null || true

Repository: SayanthRock/SayanthRock.github.io

Length of output: 262


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- src/components/FadeIn.tsx ---'
cat -n src/components/FadeIn.tsx

printf '%s\n' ''
printf '%s\n' '--- dependency/framer-motion references ---'
for f in package.json pnpm-lock.yaml package-lock.json yarn.lock bun.lockb; do
  if [ -f "$f" ]; then
    echo "FILE: $f"
    rg -n 'framer-motion|react' "$f" || true
  fi
done

printf '%s\n' ''
printf '%s\n' '--- memoized motion.create occurrences ---'
rg -n -C 3 'motion\.create\s*\(|useMemo\s*\(\s*\(\)\s*=>\s*motion\.create' src package.json 2>/dev/null || true

Repository: SayanthRock/SayanthRock.github.io

Length of output: 4396


🌐 Web query:

site:motion.dev Framer Motion motion.create avoid calling from render cycle internal caching memoization

💡 Result:

You must not call motion.create within a React or Vue render function [1][2]. Doing so creates a new component on every render cycle, which causes the animation state to reset, breaks internal caching, and destroys the component's ability to maintain continuity [1][2]. To correctly use motion.create, you should define the new motion component outside of your component's render function (e.g., at the module level or outside the component's scope) [1][2]. Example of correct usage: // Correct: Defined outside the render cycle const MotionButton = motion.create(Button); function MyComponent { return <MotionButton animate={{ opacity: 1 }} />; } If you call it inside the function, the component is treated as a completely new type on every re-render, forcing React (or Vue) to unmount and remount the element instead of updating the existing animation [1][2]. This invalidates any internal memoization or state that Framer Motion relies on to track animations between frames [1][2].

Citations:


Keep the motion component type stable.

motion.create(Component) creates a new component type on every FadeIn render, so React can remount this subtree and reset its animation. Define the created motion component outside the render cycle, such as from a memoized cache keyed by Component.

🧰 Tools
🪛 React Doctor (0.9.3)

[error] 26-26: motion.create() builds a new component type during this render, which resets identity and can break animation continuity. Hoist it or memoize the factory.

Create Motion components at module scope, or memoize a genuinely dynamic component factory so its identity remains stable.

(motion-create-in-render)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/FadeIn.tsx` at line 26, Move the motion.create(Component) call
out of the FadeIn render path so the MotionComponent identity remains stable
across renders. Use a memoized cache keyed by Component, and update FadeIn to
reuse the cached motion component without changing its existing animation
behavior.

Source: Linters/SAST tools

Comment thread src/index.css
Comment on lines +17 to +20
@apply bg-[var(--bg-dark)] text-[var(--text-primary)] antialiased selection:bg-[var(--accent)] selection:text-white;
background-color: var(--bg-dark);
color: var(--text-primary);
font-family: 'Kanit', sans-serif;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the reported Stylelint violations.

Add the required empty line before background-color. Remove the quotes from Kanit.

Proposed fix
     `@apply` bg-[var(--bg-dark)] text-[var(--text-primary)] antialiased selection:bg-[var(--accent)] selection:text-white;
+
     background-color: var(--bg-dark);
     color: var(--text-primary);
-    font-family: 'Kanit', sans-serif;
+    font-family: Kanit, sans-serif;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
@apply bg-[var(--bg-dark)] text-[var(--text-primary)] antialiased selection:bg-[var(--accent)] selection:text-white;
background-color: var(--bg-dark);
color: var(--text-primary);
font-family: 'Kanit', sans-serif;
`@apply` bg-[var(--bg-dark)] text-[var(--text-primary)] antialiased selection:bg-[var(--accent)] selection:text-white;
background-color: var(--bg-dark);
color: var(--text-primary);
font-family: Kanit, sans-serif;
🧰 Tools
🪛 Stylelint (17.14.0)

[error] 18-18: Expected empty line before declaration (declaration-empty-line-before)

(declaration-empty-line-before)


[error] 20-20: Expected no quotes around "Kanit" (font-family-name-quotes)

(font-family-name-quotes)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/index.css` around lines 17 - 20, Update the global style rule containing
the `@apply` declaration by adding an empty line before background-color and
changing the font-family value from quoted Kanit to unquoted Kanit to satisfy
Stylelint.

Source: Linters/SAST tools

Comment on lines +10 to +14
{['About', 'Price', 'Projects', 'Contact'].map((link) => (
<a
key={link}
href={`#${link.toLowerCase()}`}
className="text-[#D7E2EA] font-medium uppercase tracking-wider text-sm md:text-lg lg:text-[1.4rem] hover:opacity-70 transition-opacity duration-200"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Restore destinations for the Hero navigation.

The Hero creates #price and #contact links, but the application does not mount elements with those IDs.

  • src/sections/HeroSection.tsx#L10-L14: use only destination IDs that exist, or retain the labels and provide matching sections.
  • src/App.tsx#L34-L40: mount pricing and contact sections, or assign the required IDs to the intended existing sections.
📍 Affects 2 files
  • src/sections/HeroSection.tsx#L10-L14 (this comment)
  • src/App.tsx#L34-L40
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/sections/HeroSection.tsx` around lines 10 - 14, Restore valid Hero
navigation destinations: update src/sections/HeroSection.tsx lines 10-14 to use
only mounted destination IDs, or provide matching targets for the existing
labels; update src/App.tsx lines 34-40 to mount pricing and contact sections or
assign the required IDs to the intended existing sections. Ensure every
generated href from the Hero navigation resolves to an element in the
application.

Comment on lines +58 to +60
<FadeIn delay={0.5} y={20}>
<ContactButton />
</FadeIn>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Wire both contact controls to a real contact action.

ContactButton renders a native button. Neither call supplies an action, so both visible contact controls are inert.

  • src/sections/HeroSection.tsx#L58-L60: connect the control to the selected contact flow.
  • src/sections/AboutSection.tsx#L86-L89: connect the control to the same contact flow.
📍 Affects 2 files
  • src/sections/HeroSection.tsx#L58-L60 (this comment)
  • src/sections/AboutSection.tsx#L86-L89
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/sections/HeroSection.tsx` around lines 58 - 60, Connect the ContactButton
in src/sections/HeroSection.tsx lines 58-60 to the selected contact action, and
apply the same action to the ContactButton in src/sections/AboutSection.tsx
lines 86-89. Ensure both native buttons receive the required handler so the
visible contact controls trigger the same contact flow.

</h3>
</div>
</div>
<LiveProjectButton as="button" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Make the “Live Project” control open a project.

This renders a button without onClick. Add a verified project URL to each project record and render LiveProjectButton as an anchor with that URL. If no destination exists, remove or disable the control.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/sections/ProjectsSection.tsx` at line 74, Update the project records and
the rendering logic around LiveProjectButton so each control uses a verified
project URL and renders as an anchor linking to that destination. Remove or
disable the control when its project has no URL, rather than rendering a button
without navigation behavior.

Comment on lines +82 to +91
<img src={project.images.leftTop} alt={`${project.title} top`} className="w-full h-full object-cover" />
</div>
<div className="w-full flex-1 rounded-[40px] sm:rounded-[50px] md:rounded-[60px] overflow-hidden min-h-[160px]" style={{ height: 'clamp(160px, 22vw, 340px)' }}>
<img src={project.images.leftBottom} alt={`${project.title} bottom`} className="w-full h-full object-cover" />
</div>
</div>

{/* Right Column */}
<div className="w-full sm:w-[60%] flex-1 rounded-[40px] sm:rounded-[50px] md:rounded-[60px] overflow-hidden h-[300px] sm:h-auto">
<img src={project.images.right} alt={`${project.title} main`} className="w-full h-full object-cover" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚀 Performance & Scalability | 🟠 Major | ⚡ Quick win

Lazy-load remote images outside the initial viewport.

Both sections mount below the Hero content, but their remote images use the browser default eager-loading behavior. The 13 image requests compete with initial-page resources.

  • src/sections/ProjectsSection.tsx#L82-L91: add loading="lazy" and decoding="async" to all project images.
  • src/sections/AboutSection.tsx#L17-L66: add loading="lazy" and decoding="async" to all decorative images.
📍 Affects 2 files
  • src/sections/ProjectsSection.tsx#L82-L91 (this comment)
  • src/sections/AboutSection.tsx#L17-L66
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/sections/ProjectsSection.tsx` around lines 82 - 91, Update all project
images in src/sections/ProjectsSection.tsx lines 82-91 and all decorative images
in src/sections/AboutSection.tsx lines 17-66 to include lazy loading and
asynchronous decoding. Apply both attributes consistently to every affected img
element.

Comment on lines 43 to +44
<FadeIn key={service.num} delay={i * 0.1}>
<div className="flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-10 py-8 sm:py-10 md:py-12 border-b border-dark/15 last:border-0 group cursor-default">
<span className="font-black text-[clamp(3rem,8vw,100px)] leading-none text-dark/20 group-hover:text-accent transition-colors duration-500 md:w-[20%]">
<div className="flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-10 py-8 sm:py-10 md:py-12 border-b border-[#0C0C0C]/15 last:border-0 group cursor-default">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Move last:border-0 to the FadeIn wrapper.

FadeIn renders a div by default. Each service row is therefore the only child of its own wrapper. The inner row matches last:border-0 for every service, so all separators are removed. Apply the border classes through FadeIn’s className so the selector evaluates across the service wrappers.

Proposed fix
-            <FadeIn key={service.num} delay={i * 0.1}>
-              <div className="flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-10 py-8 sm:py-10 md:py-12 border-b border-[`#0C0C0C`]/15 last:border-0 group cursor-default">
+            <FadeIn
+              key={service.num}
+              delay={i * 0.1}
+              className="border-b border-[`#0C0C0C`]/15 last:border-0"
+            >
+              <div className="flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-10 py-8 sm:py-10 md:py-12 group cursor-default">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<FadeIn key={service.num} delay={i * 0.1}>
<div className="flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-10 py-8 sm:py-10 md:py-12 border-b border-dark/15 last:border-0 group cursor-default">
<span className="font-black text-[clamp(3rem,8vw,100px)] leading-none text-dark/20 group-hover:text-accent transition-colors duration-500 md:w-[20%]">
<div className="flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-10 py-8 sm:py-10 md:py-12 border-b border-[#0C0C0C]/15 last:border-0 group cursor-default">
<FadeIn
key={service.num}
delay={i * 0.1}
className="border-b border-[`#0C0C0C`]/15 last:border-0"
>
<div className="flex flex-col md:flex-row items-start md:items-center gap-6 md:gap-10 py-8 sm:py-10 md:py-12 group cursor-default">
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/sections/ServicesSection.tsx` around lines 43 - 44, Move the border
styling, including last:border-0, from the inner service-row div to the FadeIn
wrapper via its className prop so last-child evaluation occurs across service
wrappers; keep the row layout and spacing classes unchanged.

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

Labels

size:XL This PR changes 500-999 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants