From 74a316df3b2325a324731ae46e932abb00bc49f5 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sat, 13 Sep 2025 02:47:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`feat/ap?= =?UTF-8?q?p/page.tsx`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @codeunia-dev. * https://github.com/codeunia-dev/codeunia/pull/237#issuecomment-3287400500 The following files were modified: * `app/page.tsx` * `components/home/SponsorsSection.tsx` --- app/page.tsx | 9 +++++++++ components/home/SponsorsSection.tsx | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/app/page.tsx b/app/page.tsx index b9c69ca4..373492c4 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -86,6 +86,15 @@ const Footer = dynamic(() => import("@/components/footer"), { ssr: true }); +/** + * Client-side Home page component that composes the header, multiple lazily loaded home sections, and footer. + * + * Renders a vertical layout with a Header, a content container that loads HeroSection2, FeaturesSection, + * CommunitySpotlight, SponsorsSection, and LatestContentPreview via Suspense fallbacks, and a Footer. + * Each section uses a tailored skeleton fallback while the dynamically imported component loads. + * + * @returns The Home page JSX element. + */ export default function Home() { return ( <> diff --git a/components/home/SponsorsSection.tsx b/components/home/SponsorsSection.tsx index 48678961..ba3f8263 100644 --- a/components/home/SponsorsSection.tsx +++ b/components/home/SponsorsSection.tsx @@ -55,6 +55,17 @@ const sponsors = [ }, ]; +/** + * Renders a horizontally scrolling sponsors showcase section with header and animated sponsor tiles. + * + * Displays a decorative header ("Our Sponsors" pill, title, and subtitle) and a continuously scrolling + * marquee of sponsor cards (duplicated sequence to create a seamless scroll). Each card shows the + * sponsor logo, name, and title; when a sponsor has a link, its card is wrapped in an external anchor. + * + * Logos are rendered with Next/Image and certain sponsor names receive custom sizing classes. + * + * @returns The SponsorsSection React element. + */ export function SponsorsSection() { return (