From 7fb168f5306a9c4dffca4f4982b54ab026a7e9f2 Mon Sep 17 00:00:00 2001 From: tapframe Date: Fri, 20 Jun 2025 01:00:49 +0530 Subject: [PATCH] Refactor HeroSection progress display for improved readability and UI consistency This update refines the WatchProgressDisplay component within the HeroSection by enhancing the layout and styling of the progress bar and related elements. Key changes include adjustments to the structure of the JSX for better readability, improved inline Trakt sync button placement, and consistent application of styles. These modifications aim to enhance user interaction and visual clarity in the progress display. --- src/components/metadata/HeroSection.tsx | 66 ++++++++++++------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/components/metadata/HeroSection.tsx b/src/components/metadata/HeroSection.tsx index a4822d0..2139561 100644 --- a/src/components/metadata/HeroSection.tsx +++ b/src/components/metadata/HeroSection.tsx @@ -440,30 +440,30 @@ const WatchProgressDisplay = React.memo(({ {/* Enhanced progress bar with glow effects */} - + {/* Background glow for completed content */} {isCompleted && ( )} + } + ]} + /> {/* Shimmer effect for active progress */} {!isCompleted && progressData.progressPercent > 0 && ( @@ -489,9 +489,9 @@ const WatchProgressDisplay = React.memo(({ {Math.round(progressData.progressPercent)}% - - )} + )} + - {progressData.syncStatus} - - + {progressData.syncStatus} + + {/* Enhanced manual Trakt sync button - moved inline */} - {isTraktAuthenticated && forceSyncTraktProgress && ( - - + + /> - + )} - )} - + )} + ); @@ -637,15 +637,15 @@ const HeroSection: React.FC = ({ const logoScale = hasProgress ? 0.85 : 1; return { - opacity: logoOpacity.value, + opacity: logoOpacity.value, transform: [ { - translateY: interpolate( - scrollY.value, - [0, 100], - [0, -20], - Extrapolate.CLAMP - ) + translateY: interpolate( + scrollY.value, + [0, 100], + [0, -20], + Extrapolate.CLAMP + ) }, { scale: withTiming(logoScale, { duration: 300 }) } ]