Skip to content

The Open Source DocuSign Alternative.

feat: marketing cta (#1335)

Catalin Pitad135b72d833
diff --git a/apps/documentation/pages/developers/self-hosting/how-to.mdx b/apps/documentation/pages/developers/self-hosting/how-to.mdx
index 2acbf9abb..a316b02b1 100644
--- a/apps/documentation/pages/developers/self-hosting/how-to.mdx
+++ b/apps/documentation/pages/developers/self-hosting/how-to.mdx
@@ -5,6 +5,8 @@ description: Learn how to self-host Documenso on your server or cloud infrastruc
import { Callout, Steps } from 'nextra/components';
+import { CallToAction } from '@documenso/ui/components/call-to-action';
+
# Self Hosting
We support various deployment methods and are actively working on adding more. Please let us know if you have a specific deployment method in mind!
@@ -273,3 +275,5 @@ We offer several alternative deployment methods for Documenso if you need more o
## Koyeb
[![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=git&repository=github.com/documenso/documenso&branch=main&name=documenso-app&builder=dockerfile&dockerfile=/docker/Dockerfile)
+
+<CallToAction className="mt-12" utmSource="self-hosting" />
diff --git a/apps/documentation/pages/developers/self-hosting/index.mdx b/apps/documentation/pages/developers/self-hosting/index.mdx
index 84cbed30b..b4aefb848 100644
--- a/apps/documentation/pages/developers/self-hosting/index.mdx
+++ b/apps/documentation/pages/developers/self-hosting/index.mdx
@@ -3,6 +3,10 @@ title: Getting Started with Self-Hosting
description: A step-by-step guide to setting up and hosting your own Documenso instance.
---
+import { CallToAction } from '@documenso/ui/components/call-to-action';
+
# Getting Started with Self-Hosting
This is a step-by-step guide to setting up and hosting your own Documenso instance. Before getting started, [select the right license for you](/users/licenses).
+
+<CallToAction className="mt-12" utmSource="self-hosting" />
diff --git a/packages/ui/components/call-to-action.tsx b/packages/ui/components/call-to-action.tsx
new file mode 100644
index 000000000..1e741e37e
--- /dev/null
+++ b/packages/ui/components/call-to-action.tsx
@@ -0,0 +1,35 @@
+import Link from 'next/link';
+
+import { Button } from '../primitives/button';
+import { Card, CardContent } from '../primitives/card';
+
+type CallToActionProps = {
+ className?: string;
+ utmSource?: string;
+};
+
+export const CallToAction = ({ className, utmSource = 'generic-cta' }: CallToActionProps) => {
+ return (
+ <Card spotlight className={className}>
+ <CardContent className="flex flex-col items-center justify-center p-12">
+ <h2 className="text-center text-2xl font-bold">Looking for the managed solution?</h2>
+
+ <p className="text-muted-foreground mt-4 max-w-[55ch] text-center leading-normal">
+ You can get started with Documenso in minutes. We handle the infrastructure, so you can
+ focus on signing documents.
+ </p>
+
+ <Button
+ className="focus-visible:ring-ring ring-offset-background bg-primary text-primary-foreground hover:bg-primary/90text-sm mt-8 inline-flex items-center justify-center rounded-full border font-medium no-underline transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
+ variant="default"
+ size="lg"
+ asChild
+ >
+ <Link href={`https://app.documenso.com/signup?utm_source=${utmSource}`} target="_blank">
+ Get started
+ </Link>
+ </Button>
+ </CardContent>
+ </Card>
+ );
+};