From 6603fa9124542f2e23db7baaa1377980b81cfd67 Mon Sep 17 00:00:00 2001 From: Nitansh Shankar <167768158+BIJJUDAMA@users.noreply.github.com> Date: Fri, 15 May 2026 22:33:23 +0530 Subject: [PATCH] fix: implement dynamic scaling of hero section text --- src/components/landing/Header.tsx | 6 +-- src/components/shared/GlitchText.tsx | 78 ++++++++++------------------ 2 files changed, 30 insertions(+), 54 deletions(-) diff --git a/src/components/landing/Header.tsx b/src/components/landing/Header.tsx index 02f6740..98f2946 100644 --- a/src/components/landing/Header.tsx +++ b/src/components/landing/Header.tsx @@ -319,8 +319,8 @@ const LandingHeader = () => {
{/* Content Box with Border */} - -

+ +

{

-
+
+ - {/* Invisible spacer to reserve layout space */} - - - {/* Overlay for the actual effect */} - - {!typingComplete ? ( - - {displayText} - | - - ) : ( - - {text} - - )} - + {!typingComplete ? ( + + {displayText} + | + + ) : ( + + {text} + + )} {/* Strikethrough Lines */} {strikethrough && (