Skip to content

[Feature] Enhanced Privacy Policy Page with Sticky TOC, Progress Bar & Improved UX#341

Open
ArshiBansal wants to merge 6 commits into
vishnukothakapu:mainfrom
ArshiBansal:privacy_policy
Open

[Feature] Enhanced Privacy Policy Page with Sticky TOC, Progress Bar & Improved UX#341
ArshiBansal wants to merge 6 commits into
vishnukothakapu:mainfrom
ArshiBansal:privacy_policy

Conversation

@ArshiBansal

Copy link
Copy Markdown
Contributor

📝 Description

Enhanced the Privacy Policy page (/privacy) with modern navigation, better readability, and improved user experience for long-form legal content.

✨ Key Improvements Implemented:

  • Sticky Table of Contents (Desktop sidebar with active section highlighting)
  • Reading Progress Bar at the top of the page
  • Scroll Spy functionality with smooth section navigation
  • Floating "Back to Top" button (visible on scroll)
  • Security Callout Box to highlight important data protection info
  • Improved Typography & Spacing for better readability
  • Enhanced Bullet Lists and content structure
  • Estimated Reading Time display
  • Better Accessibility (proper ARIA labels, keyboard navigation, semantic structure)
  • Mobile Responsive design maintained

🛠️ Changes Made

  • Updated app/privacy/page.tsx
  • Added React hooks (useState, useEffect) for scroll behavior
  • Implemented Intersection Observer for active section tracking
  • Added modern UI elements while maintaining existing design aesthetic
  • Improved content organization and visual hierarchy

🎯 Problem Solved

Users previously had to scroll through the entire policy without quick navigation. This update makes it much easier to scan, find specific sections, and read privacy-related information.

📸 Preview

(Attach screenshots here:

  • Desktop view with TOC
  • Progress bar in action
  • Mobile floating button
  • Security callout box)*

✅ Checklist

  • Followed the project's coding standards
  • Tested on both light and dark modes
  • Fully responsive (Desktop, Tablet, Mobile)
  • Smooth scrolling and navigation working correctly
  • No console errors
  • Accessibility improvements implemented

🔗 Related Issue

Closes #334


@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

@ArshiBansal is attempting to deploy a commit to the vishnukothakapu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
linkid Error Error Jun 17, 2026 5:00pm

@vishnukothakapu

Copy link
Copy Markdown
Owner

Hi @ArshiBansal ,

The build is failing because app/privacy/page.tsx uses React hooks (useEffect, useState) while also exporting metadata.

In the App Router, pages that export metadata must remain Server Components. Please either:

  • Remove the unused hooks if they're not needed, or
  • Move the client-side logic into a separate component and keep page.tsx as a Server Component.

Please fix the build issue and push the changes. Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Improve Privacy Policy Page Navigation, Readability, and User Experience

2 participants