From fa51ec42c6b68dfdde568096c27c49a29665d051 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Fri, 27 Feb 2026 15:45:48 -0800 Subject: [PATCH] chore: removed announcements from navbar and rewrote tagline --- surfsense_web/app/globals.css | 1 - .../components/homepage/hero-section.tsx | 9 ++---- surfsense_web/components/homepage/navbar.tsx | 32 ------------------- .../components/pricing/pricing-section.tsx | 4 +-- surfsense_web/lib/source.ts | 5 ++- 5 files changed, 7 insertions(+), 44 deletions(-) diff --git a/surfsense_web/app/globals.css b/surfsense_web/app/globals.css index 11d7d7a94..c192a27be 100644 --- a/surfsense_web/app/globals.css +++ b/surfsense_web/app/globals.css @@ -235,4 +235,3 @@ button { @source '../node_modules/streamdown/dist/*.js'; @source '../node_modules/@streamdown/code/dist/*.js'; @source '../node_modules/@streamdown/math/dist/*.js'; - diff --git a/surfsense_web/components/homepage/hero-section.tsx b/surfsense_web/components/homepage/hero-section.tsx index 00226517c..a1aa5ac4a 100644 --- a/surfsense_web/components/homepage/hero-section.tsx +++ b/surfsense_web/components/homepage/hero-section.tsx @@ -96,12 +96,9 @@ export function HeroSection() { )} - {/* // TODO:aCTUAL DESCRITION */} -

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

-

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

+ Connect any LLM to your internal knowledge sources and chat with it in real time alongside + your team.

diff --git a/surfsense_web/components/homepage/navbar.tsx b/surfsense_web/components/homepage/navbar.tsx index 2b0d60546..ddf43e7eb 100644 --- a/surfsense_web/components/homepage/navbar.tsx +++ b/surfsense_web/components/homepage/navbar.tsx @@ -4,7 +4,6 @@ import { IconBrandGithub, IconBrandReddit, IconMenu2, - IconSpeakerphone, IconX, } from "@tabler/icons-react"; import { AnimatePresence, motion } from "motion/react"; @@ -13,7 +12,6 @@ import { useEffect, useState } from "react"; import { SignInButton } from "@/components/auth/sign-in-button"; import { Logo } from "@/components/Logo"; import { ThemeTogglerComponent } from "@/components/theme/theme-toggle"; -import { useAnnouncements } from "@/hooks/use-announcements"; import { useGithubStars } from "@/hooks/use-github-stars"; import { cn } from "@/lib/utils"; @@ -49,11 +47,7 @@ export const Navbar = () => { const DesktopNav = ({ navItems, isScrolled }: any) => { const [hovered, setHovered] = useState(null); - const [mounted, setMounted] = useState(false); const { compactFormat: githubStars, loading: loadingGithubStars } = useGithubStars(); - const { unreadCount } = useAnnouncements(); - - useEffect(() => setMounted(true), []); return ( { @@ -124,17 +118,6 @@ const DesktopNav = ({ navItems, isScrolled }: any) => { )} - - - {mounted && unreadCount > 0 && ( - - {unreadCount > 99 ? "99+" : unreadCount} - - )} -
@@ -144,11 +127,7 @@ const DesktopNav = ({ navItems, isScrolled }: any) => { const MobileNav = ({ navItems, isScrolled }: any) => { const [open, setOpen] = useState(false); - const [mounted, setMounted] = useState(false); const { compactFormat: githubStars, loading: loadingGithubStars } = useGithubStars(); - const { unreadCount } = useAnnouncements(); - - useEffect(() => setMounted(true), []); return ( { )} - - - {mounted && unreadCount > 0 && ( - - {unreadCount > 99 ? "99+" : unreadCount} - - )} - diff --git a/surfsense_web/components/pricing/pricing-section.tsx b/surfsense_web/components/pricing/pricing-section.tsx index 553fa4e7f..ce7b06da6 100644 --- a/surfsense_web/components/pricing/pricing-section.tsx +++ b/surfsense_web/components/pricing/pricing-section.tsx @@ -18,7 +18,7 @@ const demoPlans = [ ], description: "", buttonText: "Get Started", - href: "/", + href: "/login", isPopular: false, }, { @@ -35,7 +35,7 @@ const demoPlans = [ ], description: "", buttonText: "Get Started", - href: "/", + href: "/login", isPopular: true, }, { diff --git a/surfsense_web/lib/source.ts b/surfsense_web/lib/source.ts index 32a52c761..162cca57a 100644 --- a/surfsense_web/lib/source.ts +++ b/surfsense_web/lib/source.ts @@ -1,13 +1,12 @@ import { loader } from "fumadocs-core/source"; -import { docs } from "@/.source/server"; import { icons } from "lucide-react"; import { createElement } from "react"; +import { docs } from "@/.source/server"; export const source = loader({ baseUrl: "/docs", source: docs.toFumadocsSource(), icon(icon) { - if (icon && icon in icons) - return createElement(icons[icon as keyof typeof icons]); + if (icon && icon in icons) return createElement(icons[icon as keyof typeof icons]); }, });