From 8ce9fe275be109f7db65ad56455f095170966431 Mon Sep 17 00:00:00 2001 From: Niklas Haiden Date: Wed, 22 Apr 2026 20:26:33 +0200 Subject: [PATCH] Unify footer links and layout --- components/footer/Footer.tsx | 168 +++++++++++++++++++++++++---------- 1 file changed, 120 insertions(+), 48 deletions(-) diff --git a/components/footer/Footer.tsx b/components/footer/Footer.tsx index 980bb1a..1df5c94 100644 --- a/components/footer/Footer.tsx +++ b/components/footer/Footer.tsx @@ -1,10 +1,29 @@ -import { RefObject } from "react"; -import { CircleArrowUp, GitMerge, GlobeIcon } from "lucide-react"; +import { type RefObject } from "react"; +import { + ArrowUpRightIcon, + BookOpen, + CircleArrowUp, + GitMerge, + GlobeIcon, + Heart, + MessageCircleMore, +} from "lucide-react"; +import Image from "next/image"; import { useTranslations } from "next-intl"; import GithubIcon from "../GithubIcon"; -export default function Footer({ introRef }: { introRef?: RefObject }) { +type FooterProps = { + introRef?: RefObject; +}; + +const externalLinkProps = { + target: "_blank", + rel: "noreferrer", +} as const; + +export default function Footer({ introRef }: FooterProps) { const t = useTranslations("Footer"); + const tDocs = useTranslations("Docs-Community"); const handleScrollUp = () => { if (introRef?.current) { @@ -12,79 +31,132 @@ export default function Footer({ introRef }: { introRef?: RefObject }) { behavior: "smooth", block: "start", }); - } else { - window.scrollTo({ top: 0, behavior: "smooth" }); + return; } + + window.scrollTo({ top: 0, behavior: "smooth" }); }; return ( - <> - ); }