Skip to content

The Open Source DocuSign Alternative.

feat: add typefully card

Adithya Krishna0c8a89a2eaf6
diff --git a/apps/marketing/src/app/(marketing)/open/cap-table.tsx b/apps/marketing/src/app/(marketing)/open/cap-table.tsx
index ca63bd7bf..ba6a12dc4 100644
--- a/apps/marketing/src/app/(marketing)/open/cap-table.tsx
+++ b/apps/marketing/src/app/(marketing)/open/cap-table.tsx
@@ -1,6 +1,7 @@
'use client';
-import { HTMLAttributes, useEffect, useState } from 'react';
+import type { HTMLAttributes } from 'react';
+import { useEffect, useState } from 'react';
import { Cell, Legend, Pie, PieChart, Tooltip } from 'recharts';
diff --git a/apps/marketing/src/app/(marketing)/open/page.tsx b/apps/marketing/src/app/(marketing)/open/page.tsx
index 76de85fcf..8fef81134 100644
--- a/apps/marketing/src/app/(marketing)/open/page.tsx
+++ b/apps/marketing/src/app/(marketing)/open/page.tsx
@@ -15,6 +15,7 @@ import { MonthlyNewUsersChart } from './monthly-new-users-chart';
import { MonthlyTotalUsersChart } from './monthly-total-users-chart';
import { TeamMembers } from './team-members';
import { OpenPageTooltip } from './tooltip';
+import { Typefully } from './typefully';
export const metadata: Metadata = {
title: 'Open Startup',
@@ -237,6 +238,8 @@ export default async function OpenPage() {
<MonthlyTotalUsersChart data={MONTHLY_USERS} className="col-span-12 lg:col-span-6" />
<MonthlyNewUsersChart data={MONTHLY_USERS} className="col-span-12 lg:col-span-6" />
+ <Typefully className="col-span-12 lg:col-span-6" />
+
<div className="col-span-12 mt-12 flex flex-col items-center justify-center">
<h2 className="text-2xl font-bold">Where's the rest?</h2>
diff --git a/apps/marketing/src/app/(marketing)/open/typefully.tsx b/apps/marketing/src/app/(marketing)/open/typefully.tsx
new file mode 100644
index 000000000..1a927d4d6
--- /dev/null
+++ b/apps/marketing/src/app/(marketing)/open/typefully.tsx
@@ -0,0 +1,47 @@
+'use client';
+
+import type { HTMLAttributes } from 'react';
+import { useEffect, useState } from 'react';
+
+import Image from 'next/image';
+import Link from 'next/link';
+
+import Twitter from '@documenso/assets/twitter-icon.png';
+import { cn } from '@documenso/ui/lib/utils';
+import { Button } from '@documenso/ui/primitives/button';
+
+export type TypefullyProps = HTMLAttributes<HTMLDivElement>;
+
+export const Typefully = ({ className, ...props }: TypefullyProps) => {
+ const [isSSR, setIsSSR] = useState(true);
+
+ useEffect(() => {
+ setIsSSR(false);
+ }, []);
+ return (
+ <div className={cn('flex flex-col', className)} {...props}>
+ <h3 className="px-4 text-lg font-semibold">Twitter Stats</h3>
+
+ <div className="border-border mt-2.5 flex flex-1 items-center justify-center rounded-2xl border shadow-sm hover:shadow">
+ {!isSSR && (
+ <div className="flex flex-col gap-y-4 text-center">
+ <Image className="opacity-75" src={Twitter} alt="Twitter Logo" width={120} />
+ <Link href="https://typefully.com/documenso/stats" target="_blank">
+ <h1>Documenso on X</h1>
+ </Link>
+ <Button className="rounded-full" size="sm" asChild>
+ <Link href="https://typefully.com/documenso/stats" target="_blank">
+ View all stats
+ </Link>
+ </Button>
+ <Button className="rounded-full bg-white" size="sm" asChild>
+ <Link href="https://twitter.com/documenso" target="_blank">
+ Follow us on X
+ </Link>
+ </Button>
+ </div>
+ )}
+ </div>
+ </div>
+ );
+};
diff --git a/packages/assets/twitter-icon.png b/packages/assets/twitter-icon.png
new file mode 100644
index 000000000..f1da461c2
Binary files /dev/null and b/packages/assets/twitter-icon.png differ