fix: minor updates

This commit is contained in:
Lucas Smith
2024-03-12 01:52:16 +00:00
parent 9ac346443d
commit f6c2b6c1c5
3 changed files with 15 additions and 8 deletions

View File

@ -7,7 +7,7 @@ import { ChevronLeft } from 'lucide-react';
import type { MDXComponents } from 'mdx/types'; import type { MDXComponents } from 'mdx/types';
import { useMDXComponent } from 'next-contentlayer/hooks'; import { useMDXComponent } from 'next-contentlayer/hooks';
import CTA from '~/components/(marketing)/CTA'; import { CallToAction } from '~/components/(marketing)/call-to-action';
export const dynamic = 'force-dynamic'; export const dynamic = 'force-dynamic';
@ -93,7 +93,8 @@ export default function BlogPostPage({ params }: { params: { post: string } }) {
Back to all posts Back to all posts
</Link> </Link>
</article> </article>
{post.cta && <CTA />}
{post.cta && <CallToAction className="mt-8" utmSource={`blog__${params.post}`} />}
</div> </div>
); );
} }

View File

@ -7,7 +7,7 @@ import { getUserMonthlyGrowth } from '@documenso/lib/server-only/user/get-user-m
import { FUNDING_RAISED } from '~/app/(marketing)/open/data'; import { FUNDING_RAISED } from '~/app/(marketing)/open/data';
import { MetricCard } from '~/app/(marketing)/open/metric-card'; import { MetricCard } from '~/app/(marketing)/open/metric-card';
import { SalaryBands } from '~/app/(marketing)/open/salary-bands'; import { SalaryBands } from '~/app/(marketing)/open/salary-bands';
import CTA from '~/components/(marketing)/CTA'; import { CallToAction } from '~/components/(marketing)/call-to-action';
import { BarMetric } from './bar-metrics'; import { BarMetric } from './bar-metrics';
import { CapTable } from './cap-table'; import { CapTable } from './cap-table';
@ -252,7 +252,8 @@ export default async function OpenPage() {
</div> </div>
</div> </div>
</div> </div>
<CTA />
<CallToAction className="mt-12" utmSource="open-page" />
</div> </div>
); );
} }

View File

@ -4,9 +4,14 @@ import { NEXT_PUBLIC_WEBAPP_URL } from '@documenso/lib/constants/app';
import { Button } from '@documenso/ui/primitives/button'; import { Button } from '@documenso/ui/primitives/button';
import { Card, CardContent } from '@documenso/ui/primitives/card'; import { Card, CardContent } from '@documenso/ui/primitives/card';
export default function CTA() { type CallToActionProps = {
className?: string;
utmSource?: string;
};
export const CallToAction = ({ className, utmSource = 'generic-cta' }: CallToActionProps) => {
return ( return (
<Card spotlight className="mt-8"> <Card spotlight className={className}>
<CardContent className="flex flex-col items-center justify-center p-12"> <CardContent className="flex flex-col items-center justify-center p-12">
<h2 className="text-center text-2xl font-bold">Join the Open Signing Movement</h2> <h2 className="text-center text-2xl font-bold">Join the Open Signing Movement</h2>
@ -16,11 +21,11 @@ export default function CTA() {
</p> </p>
<Button className="mt-8 rounded-full no-underline" size="lg" asChild> <Button className="mt-8 rounded-full no-underline" size="lg" asChild>
<Link href={`${NEXT_PUBLIC_WEBAPP_URL()}/signup?utm_source=cta`} target="_blank"> <Link href={`${NEXT_PUBLIC_WEBAPP_URL()}/signup?utm_source=${utmSource}`} target="_blank">
Get started Get started
</Link> </Link>
</Button> </Button>
</CardContent> </CardContent>
</Card> </Card>
); );
} };