Skip to content

Conversation

@bhanushaliparthhitesh
Copy link

Related Tickets & Documents
Fixes: #3298

Description
This PR updates the placement, design, and behaviour of the social media share component in blog pages to improve user engagement and UX.

Current Behaviour

  • The share component appears at the top of the blog, next to the reviewer name.
  • It is not sticky and scrolls away with the header.
  • The layout is vertical (in some contexts) or hidden.

Expected Output (Implemented)

  • Relocated: The social share component is moved to the right sticky sidebar.
  • Positioning: It is placed immediately below the Waitlist Banner and above the Ad Banner for better visibility.
  • Sticky Effect: The component follows the user as they scroll, ensuring share options are always accessible.
  • Design: The share buttons (Twitter, LinkedIn, Copy Link) are arranged in a horizontal row with optimized spacing.

Type of Change

  • Chore
  • Bug fix
  • New feature
  • Breaking Change
  • UI improvement
  • Performance improvement
  • Documentation update
  • CI
  • Revert

Testing
Manual Testing Performed

  • Placement : Verified the component appears in the right sidebar, above the Ad banner.
  • Sticky Behaviour : Confirmed the component stays visible while scrolling down long posts.
  • Responsiveness : Verified it is hidden on mobile/tablet (<1024px) and visible on desktop.
  • Functionality : Tested Twitter, LinkedIn, and Copy Link buttons (including "Copied!" state).
  • Layout : Confirmed horizontal alignment of icons and reduced gap between components.

Environment and Dependencies

  • New Dependencies: None
  • Configuration Changes: None

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added corresponding tests
  • I have run the build command to ensure there are no build errors
  • My changes have been tested across relevant browsers/devices
  • For UI changes, I've included visual evidence of my changes

BEFORE :

Screenshot 2025-11-29 145302 Screenshot 2025-11-29 145315

AFTER :

Screenshot 2025-11-29 145917 Screenshot 2025-11-29 145939

VIDEO TESTING :

AFTER.-.Made.with.Clipchamp.mp4

add a sticky share to social media component in blog website
Copilot AI review requested due to automatic review settings November 29, 2025 10:51
@bhanushaliparthhitesh
Copy link
Author

@amaan-bhati Have a look .

Copy link

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 relocates the social media share component from the blog post header to a sticky sidebar position, improving visibility and user engagement. The component is redesigned with horizontal button layout and sticky behavior to keep share options accessible while scrolling.

Key Changes:

  • Moved social share functionality from PostHeaderAuthors to new StickyShare component in sticky sidebar
  • Implemented sticky positioning below Waitlist Banner and above Ad Banner
  • Updated button layout from vertical to horizontal with optimized spacing

Reviewed changes

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

File Description
components/StickyShare.tsx New sticky share component with Twitter, LinkedIn, and copy link functionality
components/post-body.tsx Integrated StickyShare into right sidebar between WaitlistBanner and AdSlot; removed demo JSON data and cleaned up formatting
components/PostHeaderAuthors.tsx Removed social share buttons and related state/imports from header component
package-lock.json Automated dependency metadata updates (peer flags, fsevents addition)

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

@bhanushaliparthhitesh
Copy link
Author

@copilot open a new pull request to apply changes based on the comments in this thread

bhanushaliparthhitesh and others added 10 commits November 29, 2025 16:50
Co-authored-by: Copilot <[email protected]>
Signed-off-by: bhanushali parth hitesh <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: bhanushali parth hitesh <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: bhanushali parth hitesh <[email protected]>
…oy#194)

* feat: add scroll-to-top button with gradient progress indicator

- Add ScrollToTop component with orange-to-yellow gradient
- Implement smooth scroll progress tracking with circular indicator
- Add hover effects with scale animation (duration: 500ms ease-out)
- Include dark mode support with appropriate color schemes
- Integrate component into main Layout for site-wide availability
- Add accessibility features with proper aria-label
- Button appears after scrolling 300px with smooth fade-in/out

Signed-off-by: Soumyabrata Mukherjee <[email protected]>

* perf: optimize ScrollToTop component performance and code clarity

- Add throttling to scroll event listener (16ms delay for ~60fps)
- Extract magic number 15.92 as CIRCLE_RADIUS constant
- Extract scroll threshold 300 as SCROLL_THRESHOLD constant
- Add THROTTLE_DELAY constant for better maintainability
- Implement custom throttle function to prevent excessive scroll calculations
- Update SVG circles to use CIRCLE_RADIUS constant
- Improve code readability and performance on lower-end devices

Signed-off-by: Soumyabrata Mukherjee <[email protected]>

---------

Signed-off-by: Soumyabrata Mukherjee <[email protected]>
Signed-off-by: parth <[email protected]>
* Fix: author slug handling and add resilient author post lookups

Signed-off-by: Kaushik Tak <[email protected]>

* build minor fix

Signed-off-by: Kaushik Tak <[email protected]>

---------

Signed-off-by: Kaushik Tak <[email protected]>
Signed-off-by: parth <[email protected]>
* feat: add search tags functionality in tag page

Signed-off-by: Kaushik Tak <[email protected]>

* feat, ui : adding colors and icons to tags; adding load-more + infinite-scroll, loading tags when needed

* ui: tags ui and added icons, and loading in tags

Signed-off-by: Kaushik Tak <[email protected]>

* build error fix

Signed-off-by: Kaushik Tak <[email protected]>

---------

Signed-off-by: Kaushik Tak <[email protected]>
Co-authored-by: Amaan Bhati <[email protected]>
Signed-off-by: parth <[email protected]>
add a sticky share to social media component in blog website

Signed-off-by: parth <[email protected]>
Co-Authored-By: bhanushali parth hitesh <[email protected]>
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.

3 participants