From 74609e0529073d568077fa5c5f39974b9472ec32 Mon Sep 17 00:00:00 2001 From: Eric Lammertsma Date: Mon, 23 Feb 2026 10:18:21 -0500 Subject: [PATCH] refactor: enhance hero section text and improve z-index management in UI components --- surfsense_web/components/homepage/hero-section.tsx | 8 ++++---- surfsense_web/components/ui/expanded-gif-overlay.tsx | 6 ++++-- surfsense_web/components/ui/hero-carousel.tsx | 8 ++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/surfsense_web/components/homepage/hero-section.tsx b/surfsense_web/components/homepage/hero-section.tsx index 09d05f9ea..00226517c 100644 --- a/surfsense_web/components/homepage/hero-section.tsx +++ b/surfsense_web/components/homepage/hero-section.tsx @@ -97,17 +97,17 @@ export function HeroSection() { )} {/* // TODO:aCTUAL DESCRITION */} -

+

Connect any AI to your documents, Drive, Notion and more,

-

- then chat with it, invite your team, or generate podcasts and reports. +

+ then chat with it, generate podcasts and reports, or even invite your team.

{/* */}
-
+
diff --git a/surfsense_web/components/ui/expanded-gif-overlay.tsx b/surfsense_web/components/ui/expanded-gif-overlay.tsx index 49b8190ff..1e4f622ba 100644 --- a/surfsense_web/components/ui/expanded-gif-overlay.tsx +++ b/surfsense_web/components/ui/expanded-gif-overlay.tsx @@ -2,6 +2,7 @@ import { AnimatePresence, motion } from "motion/react"; import { useCallback, useEffect, useState } from "react"; +import { createPortal } from "react-dom"; function ExpandedGifOverlay({ src, @@ -20,7 +21,7 @@ function ExpandedGifOverlay({ return () => document.removeEventListener("keydown", handleKey); }, [onClose]); - return ( + return createPortal( - + , + document.body, ); } diff --git a/surfsense_web/components/ui/hero-carousel.tsx b/surfsense_web/components/ui/hero-carousel.tsx index 4a7d800cf..c623aa525 100644 --- a/surfsense_web/components/ui/hero-carousel.tsx +++ b/surfsense_web/components/ui/hero-carousel.tsx @@ -260,7 +260,7 @@ function HeroCarousel() { onTouchEnd={() => setIsPaused(false)} >
{containerWidth > 0 && @@ -279,7 +279,7 @@ function HeroCarousel() { transformOrigin: `${style.originX * 100}% 50%`, cursor: i !== activeIndex ? "pointer" : undefined, }} - onClick={i !== activeIndex ? () => goTo(i) : undefined} + onClick={i !== activeIndex && !isGifExpanded ? () => goTo(i) : undefined} animate={{ x: style.x, rotateY: style.rotateY, @@ -310,12 +310,12 @@ function HeroCarousel() {
-
+
{carouselItems.map((_, i) => (