Skip to content

Feature/animated background#8

Merged
RandithaK merged 2 commits intodevfrom
feature/animated_background
Oct 31, 2025
Merged

Feature/animated background#8
RandithaK merged 2 commits intodevfrom
feature/animated_background

Conversation

@RandithaK
Copy link
Copy Markdown
Member

No description provided.

@RandithaK RandithaK requested a review from Copilot October 31, 2025 12:13
@vercel
Copy link
Copy Markdown

vercel bot commented Oct 31, 2025

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

Project Deployment Preview Comments Updated (UTC)
cso2 Ready Ready Preview Comment Oct 31, 2025 0:13am

@RandithaK RandithaK merged commit 9ac5eeb into dev Oct 31, 2025
2 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Three.js libraries to enable 3D rendering capabilities and enhances the HeroSection component with improved visual effects including text shadows, glassmorphism effects, and hover animations.

  • Added Three.js ecosystem packages (@react-three/fiber, @react-three/drei, three) for 3D rendering capabilities
  • Enhanced HeroSection visual styling with text shadows and glassmorphism effects
  • Added hover animations and backdrop blur effects to statistics cards

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
package.json Added Three.js dependencies: @react-three/drei, @react-three/fiber, and three
package-lock.json Lock file updates for Three.js dependencies and their transitive dependencies
app/components/home/HeroSection.tsx Enhanced visual styling with text shadows, glassmorphism effects, and hover animations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +76 to +78
style={{
textShadow: '0 4px 20px rgba(0,0,0,0.3), 0 0 40px rgba(255,115,0,0.2)',
}}
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

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

Inline styles with magic values make the styling harder to maintain and update consistently. Consider extracting these text shadow values into CSS custom properties or Tailwind CSS configuration for reusability across similar UI elements.

Copilot uses AI. Check for mistakes.
Build Your Dream.
<br />
<span className="text-wso2-orange">Forge Your Power.</span>
<span className="text-wso2-orange" style={{ textShadow: '0 0 40px rgba(255,115,0,0.5)' }}>
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

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

Inline style with hardcoded color value (rgba(255,115,0,0.5)) duplicates the wso2-orange color definition. If the wso2-orange color changes, this shadow value would become mismatched. Consider using CSS custom properties that reference the same base color value.

Copilot uses AI. Check for mistakes.
className="text-center backdrop-blur-md bg-white/10 dark:bg-black/20 border border-white/20 dark:border-white/10 rounded-2xl p-4 sm:p-6 shadow-2xl"
>
<div className="text-2xl sm:text-3xl md:text-4xl font-bold text-wso2-orange mb-1 sm:mb-2">
<div className="text-2xl sm:text-3xl md:text-4xl font-bold text-wso2-orange mb-1 sm:mb-2" style={{ textShadow: '0 0 20px rgba(255,115,0,0.4)' }}>
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

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

Another instance of hardcoded wso2-orange color (rgba(255,115,0,0.4)) in inline styles. This creates a maintenance burden as the color is repeated in three different places with different alpha values. Consider centralizing these color definitions.

Copilot uses AI. Check for mistakes.
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.

2 participants