From 44b143ea6d512d1f3954862c5591d9ca44308066 Mon Sep 17 00:00:00 2001 From: Che <30403707+Che-Zhu@users.noreply.github.com> Date: Tue, 14 Jul 2026 01:45:33 +0800 Subject: [PATCH 1/6] feat: redesign landing page --- .gitignore | 1 + app/(landing)/_components/landing-client.tsx | 132 +++++++++++++++--- .../_lib/get-github-star-count.test.ts | 42 ++++++ app/(landing)/_lib/get-github-star-count.ts | 41 ++++++ app/(landing)/page.tsx | 13 +- app/layout.tsx | 18 ++- fulling-landing-reference.png | Bin 0 -> 979873 bytes package.json | 1 + pnpm-lock.yaml | 12 ++ 9 files changed, 236 insertions(+), 24 deletions(-) create mode 100644 app/(landing)/_lib/get-github-star-count.test.ts create mode 100644 app/(landing)/_lib/get-github-star-count.ts create mode 100644 fulling-landing-reference.png diff --git a/.gitignore b/.gitignore index 5517136..d80625d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ # testing /coverage +/.artifacts/ /playwright-report/ /test-results/ /e2e/.auth/ diff --git a/app/(landing)/_components/landing-client.tsx b/app/(landing)/_components/landing-client.tsx index 7d5fed3..2628ae2 100644 --- a/app/(landing)/_components/landing-client.tsx +++ b/app/(landing)/_components/landing-client.tsx @@ -1,37 +1,129 @@ -import { ArrowRight } from 'lucide-react' +import { FaLinkedinIn } from 'react-icons/fa6' +import { SiDiscord, SiGithub, SiX, SiYoutube } from 'react-icons/si' +import { ChevronRight, Circle } from 'lucide-react' import Image from 'next/image' import Link from 'next/link' type LandingClientProps = { ctaHref: '/login' | '/workspace' + githubStars: string } -export function LandingClient({ ctaHref }: LandingClientProps) { - const actionLabel = ctaHref === '/workspace' ? 'Open workspace' : 'Sign in' - +export function LandingClient({ ctaHref, githubStars }: LandingClientProps) { return ( -
-
- Fulling - - {actionLabel}