mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 04:31:39 +10:00
chore: add a sales and docs cta to marketing, remove soon for profile/ add text
This commit is contained in:
@ -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>
|
||||
);
|
||||
|
||||
@ -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>
|
||||
);
|
||||
};
|
||||
@ -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">
|
||||
|
||||
Reference in New Issue
Block a user