From ad135b72d833b43a7ec14f93fafca358344fb23f Mon Sep 17 00:00:00 2001
From: Catalin Pit <25515812+catalinpit@users.noreply.github.com>
Date: Tue, 10 Sep 2024 05:42:12 +0300
Subject: [PATCH] feat: marketing cta (#1335)
---
name: Pull Request
about: Submit changes to the project for review and inclusion
---
## Description
## Related Issue
## Changes Made
- Change 1
- Change 2
- ...
## Testing Performed
- Tested feature X in scenario Y.
- Ran unit tests for component Z.
- Tested on browsers A, B, and C.
- ...
## Checklist
- [ ] I have tested these changes locally and they work as expected.
- [ ] I have added/updated tests that prove the effectiveness of these
changes.
- [ ] I have updated the documentation to reflect these changes, if
applicable.
- [ ] I have followed the project's coding style guidelines.
- [ ] I have addressed the code review feedback from the previous
submission, if applicable.
## Additional Notes
## Summary by CodeRabbit
- **New Features**
- Introduced a new `CallToAction` component to enhance user engagement
in the self-hosting documentation.
- Added interactive call-to-action elements in the self-hosting
documentation pages to guide users towards specific actions.
- **Documentation**
- Updated self-hosting documentation to include the new call-to-action
feature, improving usability and interactivity.
---
.../pages/developers/self-hosting/how-to.mdx | 4 +++
.../pages/developers/self-hosting/index.mdx | 4 +++
packages/ui/components/call-to-action.tsx | 35 +++++++++++++++++++
3 files changed, 43 insertions(+)
create mode 100644 packages/ui/components/call-to-action.tsx
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
[](https://app.koyeb.com/deploy?type=git&repository=github.com/documenso/documenso&branch=main&name=documenso-app&builder=dockerfile&dockerfile=/docker/Dockerfile)
+
+
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).
+
+
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 (
+
+
+
Looking for the managed solution?
+
+
+ You can get started with Documenso in minutes. We handle the infrastructure, so you can
+ focus on signing documents.
+