From c2c0d4d259ba464f5148b851bcc2a1059b92f49a Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Thu, 23 May 2024 14:22:28 +0200 Subject: [PATCH] chore: update callout CTAs --- .../src/components/(marketing)/callout.tsx | 23 ++++++----- .../src/components/(marketing)/hero.tsx | 41 ++++++------------- 2 files changed, 24 insertions(+), 40 deletions(-) diff --git a/apps/marketing/src/components/(marketing)/callout.tsx b/apps/marketing/src/components/(marketing)/callout.tsx index dfd358c71..5e786abb4 100644 --- a/apps/marketing/src/components/(marketing)/callout.tsx +++ b/apps/marketing/src/components/(marketing)/callout.tsx @@ -34,17 +34,18 @@ export const Callout = ({ starCount }: CalloutProps) => { return (
- + + + { const heroMarketingCTA = getFlag('marketing_landing_hero_cta'); - const onSignUpClick = () => { - const el = document.getElementById('email'); - - if (el) { - const { top } = el.getBoundingClientRect(); - - window.scrollTo({ - top: top - 120, - behavior: 'smooth', - }); - - requestAnimationFrame(() => { - el.focus(); - }); - } - }; - return (
@@ -123,18 +106,18 @@ export const Hero = ({ className, ...props }: HeroProps) => { animate="animate" className="mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-4" > - - + + + event('view-github')}>