From 28dcee5c50611232f94accfcbc511b8c92ed1ec8 Mon Sep 17 00:00:00 2001 From: KrishCodesw Date: Sun, 21 Dec 2025 17:35:00 +0530 Subject: [PATCH] fix: resolve clipped get started button in hero section --- .../src/components/landing-sections/Hero.tsx | 7 +- apps/web/src/components/ui/custom-button.tsx | 66 +++++++++++-------- 2 files changed, 42 insertions(+), 31 deletions(-) diff --git a/apps/web/src/components/landing-sections/Hero.tsx b/apps/web/src/components/landing-sections/Hero.tsx index 414875cb..65838aca 100644 --- a/apps/web/src/components/landing-sections/Hero.tsx +++ b/apps/web/src/components/landing-sections/Hero.tsx @@ -38,7 +38,7 @@ const Hero = () => { trackButtonClick("Get Started", "hero"); }; return ( -
+
background { }} className="w-full lg:text-2xl tracking-tight font-light sm:max-w-lg mx-auto lg:max-w-4xl lg:text-balance text-text-secondary" > - Find suitabe OSS repos in seconds. learn the basics, - get the mentorship for OSS opportunities, GSoC, etc, and start making progress from today itself. + Find suitabe OSS repos in seconds. learn the basics, get the + mentorship for OSS opportunities, GSoC, etc, and start making progress + from today itself. void }) => { - const transition = { - duration: 0.1, - ease: "easeInOut", - } - return ( - - {children} - - ) -} +const PrimaryButton = ({ + children, + animate = true, + classname, + onClick, +}: { + children: React.ReactNode; + animate?: boolean; + classname?: string; + onClick?: () => void; +}) => { + const transition = { + duration: 0.1, + ease: "easeInOut", + }; + return ( + + {children} + + ); +}; -export default PrimaryButton +export default PrimaryButton;