From 018459eb6f6cf7943217d00f5c25d808de47a325 Mon Sep 17 00:00:00 2001 From: Your Name <119736744+aborayan2022@users.noreply.github.com> Date: Sun, 22 Mar 2026 23:35:43 +0200 Subject: [PATCH] feat: enhance loading state in SocialProofStrip and remove deferred-section visibility --- .../components/shared/SocialProofStrip.tsx | 40 ++++++++++++++++++- frontend/src/pages/HomePage.tsx | 6 +-- frontend/src/styles/global.css | 3 +- 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/shared/SocialProofStrip.tsx b/frontend/src/components/shared/SocialProofStrip.tsx index 32ab80d..331fc99 100644 --- a/frontend/src/components/shared/SocialProofStrip.tsx +++ b/frontend/src/components/shared/SocialProofStrip.tsx @@ -34,7 +34,43 @@ export default function SocialProofStrip({ className = '' }: SocialProofStripPro }, []); if (!stats) { - return null; + return ( + + ); } const hasReliableUsageStats = stats.total_files_processed >= 25; @@ -61,7 +97,7 @@ export default function SocialProofStrip({ className = '' }: SocialProofStripPro ].filter((card): card is { label: string; value: string } => Boolean(card)); return ( -
+

diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 6441cdc..e850299 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -157,7 +157,7 @@ export default function HomePage() { -

+

@@ -191,7 +191,7 @@ export default function HomePage() {

-
+

@@ -222,7 +222,7 @@ export default function HomePage() {

{/* Tools Grid */} -
+

{t('home.pdfTools')}

diff --git a/frontend/src/styles/global.css b/frontend/src/styles/global.css index 79cf62d..79c4cb3 100644 --- a/frontend/src/styles/global.css +++ b/frontend/src/styles/global.css @@ -157,6 +157,5 @@ } .deferred-section { - content-visibility: auto; - contain-intrinsic-size: 1px 720px; + content-visibility: visible; }