chore: add a sales and docs cta to marketing, remove soon for profile/ add text

This commit is contained in:
Timur Ercan
2024-07-26 17:42:41 +02:00
parent 8af257e319
commit 24afaffd33
7 changed files with 135 additions and 44 deletions

View File

@ -8,6 +8,7 @@ import { cn } from '@documenso/ui/lib/utils';
import { Callout } from '~/components/(marketing)/callout';
import { FasterSmarterBeautifulBento } from '~/components/(marketing)/faster-smarter-beautiful-bento';
import { Hero } from '~/components/(marketing)/hero';
import { LearnMoreCallout } from '~/components/(marketing)/learn-more-callout';
import { OpenBuildTemplateBento } from '~/components/(marketing)/open-build-template-bento';
import { ShareConnectPaidWidgetBento } from '~/components/(marketing)/share-connect-paid-widget-bento';
@ -40,11 +41,10 @@ export default async function IndexPage() {
return (
<div className={cn('mt-12', fontCaveat.variable)}>
<Hero starCount={starCount} />
<LearnMoreCallout className="my-48"></LearnMoreCallout>
<FasterSmarterBeautifulBento className="my-48" />
<ShareConnectPaidWidgetBento className="my-48" />
<OpenBuildTemplateBento className="my-48" />
<Callout starCount={starCount} />
</div>
);

View File

@ -0,0 +1,49 @@
'use client';
import Link from 'next/link';
import { Trans } from '@lingui/macro';
import { usePlausible } from 'next-plausible';
import { LuBookOpen } from 'react-icons/lu';
import { cn } from '@documenso/ui/lib/utils';
import { Button } from '@documenso/ui/primitives/button';
export type CalloutProps = {
className?: string;
[key: string]: unknown;
};
export const LearnMoreCallout = ({ className }: CalloutProps) => {
const event = usePlausible();
return (
<div
className={cn('mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-4', className)}
>
<Link href="https://documen.so/sales">
<Button
type="button"
variant="outline"
className="rounded-full bg-transparent backdrop-blur-sm"
>
<Trans>Questions?</Trans>
<span className="bg-primary dark:text-background -mr-2.5 ml-2.5 rounded-full px-2 py-1.5 text-xs font-medium">
<Trans>Book a Sales Call</Trans>
</span>
</Button>
</Link>
<Link
target="_blank"
href="https://docs.documenso.com/users/get-started/account-creation?utm_source=learn-more-callout"
onClick={() => event('view-github')}
>
<Button variant="outline" className="rounded-full bg-transparent backdrop-blur-sm">
<LuBookOpen className="mr-2 inline h-5 w-5" />
<Trans>Learn More</Trans>
</Button>
</Link>
</div>
);
};

View File

@ -39,9 +39,11 @@ export const ShareConnectPaidWidgetBento = ({
<CardContent className="grid grid-cols-1 gap-8 p-6">
<p className="text-foreground/80 leading-relaxed">
<strong className="block">
<Trans>Easy Sharing (Soon).</Trans>
<Trans>Easy Sharing.</Trans>
</strong>
<Trans>Receive your personal link to share with everyone you care about.</Trans>
<Trans>
Receive your personal profile link to share with everyone you care about.
</Trans>
</p>
<div className="flex items-center justify-center p-8">