From e95b0cb277aa64dbb76894a76f4a76560dd5a38e Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 16 Oct 2024 02:11:05 +0200 Subject: [PATCH] add webinar link to auth page (#29907) add callout to auth page --- apps/www/components/Sections/ProductHeader.tsx | 4 +++- apps/www/pages/auth.tsx | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/www/components/Sections/ProductHeader.tsx b/apps/www/components/Sections/ProductHeader.tsx index 77f32e0c328..f307cf2aec7 100644 --- a/apps/www/components/Sections/ProductHeader.tsx +++ b/apps/www/components/Sections/ProductHeader.tsx @@ -12,12 +12,14 @@ interface Types { image?: React.ReactNode footer?: React.ReactNode documentation_url?: string + callout?: React.ReactNode } const ProductHeader = (props: Types) => ( -
+
+ {props.callout && props.callout}
{props.icon || props.title ? (
diff --git a/apps/www/pages/auth.tsx b/apps/www/pages/auth.tsx index f9885168f5f..34b7da5090e 100644 --- a/apps/www/pages/auth.tsx +++ b/apps/www/pages/auth.tsx @@ -7,11 +7,13 @@ import NextImage from 'next/image' import Link from 'next/link' import { useRouter } from 'next/router' import { Button, Image } from 'ui' +import { useBreakpoint } from 'common' import DefaultLayout from '~/components/Layouts/Default' import SectionContainer from '~/components/Layouts/SectionContainer' import ProductsNav from '~/components/Products/ProductsNav' import ProductHeader from '~/components/Sections/ProductHeader' +import EventCallout from '~/components/EventCallout' import Solutions from 'data/Solutions' import { PRODUCT_NAMES } from 'shared-data/products' @@ -26,7 +28,7 @@ const APISection = dynamic(() => import('~/components/Sections/APISection')) const GithubExamples = dynamic(() => import('~/components/Sections/GithubExamples')) function AuthPage() { - // base path for images + const isMobile = useBreakpoint(768) const { basePath } = useRouter() const meta_title = 'Auth | Built-in user management' @@ -52,6 +54,12 @@ function AuthPage() { + } icon={Solutions['authentication'].icon} title={Solutions['authentication'].name} h1={[