Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add content alternative

Marc Seitz8ce2dd943ffa
diff --git a/app/(static)/alternatives-new/[slug]/page.tsx b/app/(static)/alternatives-new/[slug]/page.tsx
new file mode 100644
index 00000000..3d46f5fc
--- /dev/null
+++ b/app/(static)/alternatives-new/[slug]/page.tsx
@@ -0,0 +1,269 @@
+import { type Metadata } from "next";
+
+import Testimonials from "@/components/web/testimonials";
+import Features from "@/components/web/alternatives/features";
+import FAQ from "@/components/web/faq";
+import { Button } from "@/components/ui/button";
+import { CheckIcon, XIcon } from "lucide-react";
+
+import Link from "next/link";
+
+import { getAlternative, getAlternatives } from "@/lib/content/alternative";
+import { notFound } from "next/navigation";
+import { constructMetadata } from "@/lib/utils";
+
+export async function generateStaticParams() {
+ const alternatives = await getAlternatives();
+ return alternatives.map((alternative) => ({ slug: alternative.slug }));
+}
+
+export const generateMetadata = async ({
+ params,
+}: {
+ params: {
+ slug: string;
+ };
+}): Promise<Metadata> => {
+ const alternative = (await getAlternatives()).find(
+ (alternative) => alternative.slug === params.slug,
+ );
+ const { metatitle, metadescription } = alternative || {};
+
+ return constructMetadata({
+ title: metatitle ? `${metatitle} - Papermark` : undefined,
+ description: metadescription ?? undefined,
+ });
+};
+
+export default async function AlternativePage({
+ params,
+}: {
+ params: { slug: string };
+}) {
+ const alternative = await getAlternative(params.slug);
+ if (!alternative) return notFound();
+
+ return (
+ <div className="flex flex-1 flex-col bg-white text-black justify-center">
+ <div className="max-w-5xl w-full mx-auto px-4 md:px-8 text-center">
+ <div className="pt-32">
+ {/* <div className=" pb-4">
+ <img
+ src={alternative.imageUrl}
+ alt="App screenshot"
+ className="mx-auto"
+ width={150}
+ height={50}
+ />
+ </div> */}
+ {/* <div className="relative rounded-full px-3 py-1 text-sm leading-6 text-black ring-black/10 hover:ring-white/20">
+ Free DocSend alternative
+ </div> */}
+ <h1 className="text-6xl text-balance">{alternative.title}</h1>
+ <p className="text-xl mt-8 text-balance max-w-3xl mx-auto md:text-2xl">
+ {alternative.description}
+ </p>
+ <div className="pt-8 space-x-2">
+ <Link href="/login">
+ <Button className="text-white bg-blue-800 rounded-3xl hover:bg-gray-500 justify-center">
+ Create Linkedin Post
+ </Button>
+ </Link>
+ </div>
+ </div>
+ <div className="mt-24 mx-auto w-full">
+ <video
+ width="100%"
+ id="video1"
+ style={{ borderRadius: "6px" }}
+ aria-hidden="true"
+ playsInline
+ autoPlay
+ muted
+ loop
+ controls
+ >
+ <source
+ src="https://dknlay9ljaq1f.cloudfront.net/short-video.mp4"
+ type="video/mp4"
+ />
+ </video>
+ </div>
+ </div>
+ {/* Comparison section */}
+ <div className="max-w-5xl w-full mx-auto px-4 md:px-8">
+ <div className="pt-32 pb-2">
+ <h2 className="text-5xl text-balance">
+ {alternative.subtitlecompare}
+ </h2>
+ <p className="text-xl mt-8 text-balance max-w-3xl">
+ {alternative.descriptioncompare}
+ </p>
+ </div>
+ <div className="bg-white py-16">
+ <div className="mx-auto max-w-5xl ">
+ <div className="grid grid-cols-1 md:grid-cols-2 border border-black rounded-xl overflow-hidden">
+ {/* Column 1 - Papermark */}
+ <div className="flex flex-col justify-between border-black border-r-0 md:odd:border-r xl:even:border-r xl:last:!border-r-0">
+ <div>
+ <div className="border-b border-black p-6 bg-gray-100">
+ <h3 className="text-xl leading-8 text-gray-800">
+ Papermark
+ </h3>
+ </div>
+ <div className="p-6">
+ <p className="mt-4 text-sm leading-6 text-gray-500">
+ Papermark plans start from freemium
+ </p>
+ <ul className="mt-8 space-y-3 text-sm leading-6 text-gray-500">
+ <li className="flex items-center gap-x-3">
+ <CheckIcon
+ className="h-6 w-6 text-green-500"
+ aria-hidden="true"
+ />
+ Open Source
+ </li>
+ {/* Add additional features here */}
+ </ul>
+ </div>
+ </div>
+ <Link
+ href="https://cal.com/marcseitz/papermark"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <Button
+ variant="outline"
+ className="text-balance rounded-3xl bg-transparent border-black"
+ >
+ Start for free
+ </Button>
+ </Link>
+ </div>
+
+ {/* Column 2 - Docsend */}
+ <div className="flex flex-col justify-between">
+ <div>
+ <div className="border-b border-black p-6 bg-gray-100">
+ <h3 className="text-xl leading-8 text-gray-800">
+ {alternative.name}
+ </h3>
+ </div>
+ <div className="p-6">
+ <p className="mt-4 text-sm leading-6 text-gray-500">
+ {alternative.title}
+ </p>
+ <p className="mt-4 text-xl font-bold leading-6 text-gray-500">
+ {alternative.price}
+ </p>
+ <ul className="mt-8 space-y-3 text-sm leading-6 text-gray-500">
+ <li className="flex items-center gap-x-3">
+ <XIcon
+ className="h-6 w-6 text-red-500"
+ aria-hidden="true"
+ />
+ {alternative.feature1}
+ </li>
+ <li className="flex items-center gap-x-3">
+ <XIcon
+ className="h-6 w-6 text-red-500"
+ aria-hidden="true"
+ />
+ {alternative.feature2}
+ </li>
+ <li className="flex items-center gap-x-3">
+ <XIcon
+ className="h-6 w-6 text-red-500"
+ aria-hidden="true"
+ />
+ {alternative.feature3}
+ </li>
+ <li className="flex items-center gap-x-3">
+ <XIcon
+ className="h-6 w-6 text-red-500"
+ aria-hidden="true"
+ />
+ {alternative.feature4}
+ </li>
+ <li className="flex items-center gap-x-3">
+ <XIcon
+ className="h-6 w-6 text-red-500"
+ aria-hidden="true"
+ />
+ {alternative.feature5}
+ </li>
+ <li className="flex items-center gap-x-3">
+ <XIcon
+ className="h-6 w-6 text-red-500"
+ aria-hidden="true"
+ />
+ {alternative.feature6}
+ </li>
+ {/* Add additional features here */}
+ </ul>
+ </div>
+ </div>
+
+ <Link
+ href="https://cal.com/marcseitz/papermark"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <Button
+ variant="outline"
+ className="text-balance rounded-3xl bg-transparent border-black"
+ >
+ {`Start with ${alternative.name}`}
+ </Button>
+ </Link>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Features*/}
+ <div
+ className="w-full mx-auto max-w-5xl px-4 md:px-8 py-20"
+ id="features"
+ >
+ <h2 className="text-4xl text-balance pt-12 pb-20 max-w-3xl">
+ {alternative.subtitlefeatures}
+ <span className="text-gray-500">
+ {alternative.descriptionfeatures}
+ </span>
+ </h2>
+ <Features />
+ </div>
+ {/* Testimonial section */}
+ <Testimonials />
+
+ {/* FAQ section */}
+ <div
+ className="w-full mx-auto max-w-5xl px-4 md:px-8 py-32"
+ id="features"
+ >
+ <h2 className="text-4xl text-balance pt-6 max-w-3xl">
+ FAQ{" "}
+ <span className="text-gray-500">{alternative.descriptionfaq}</span>
+ </h2>
+ <FAQ />
+ </div>
+
+ {/* CTA */}
+ <div className="bg-[#fb7a00]">
+ <div className="w-full mx-auto max-w-5xl py-32 px-4 md:px-8">
+ <h2 className="text-4xl text-balance">{alternative.subtitlecta}</h2>
+
+ <div className="pt-8 space-x-2">
+ <Link href="/login">
+ <Button className="text-balance rounded-3xl">
+ Start for free
+ </Button>
+ </Link>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/components/web/alternatives/features.tsx b/components/web/alternatives/features.tsx
new file mode 100644
index 00000000..a0f655f0
--- /dev/null
+++ b/components/web/alternatives/features.tsx
@@ -0,0 +1,68 @@
+import {
+ RefreshCw as ArrowPathIcon,
+ GitPullRequestArrow as CloudArrowUpIcon,
+ Settings as Cog6ToothIcon,
+ Fingerprint as FingerPrintIcon,
+ Lock as LockClosedIcon,
+ HardDrive as ServerIcon,
+} from "lucide-react";
+
+const features = [
+ {
+ name: "Open Source",
+ description:
+ "This gives you the freedom to adapt and customize the tool to your specific needs.",
+ icon: CloudArrowUpIcon,
+ },
+ {
+ name: "Secure Document Sharing",
+ description:
+ "Papermark provides a secure platform to share your documents. ",
+ icon: LockClosedIcon,
+ },
+ {
+ name: "Real-Time Analytics",
+ description:
+ "Track all activity on each slide and get textual feedback on your deck",
+ icon: ArrowPathIcon,
+ },
+ {
+ name: "Custom Link Sharing",
+ description: "Make your link memorable for all investors.",
+ icon: FingerPrintIcon,
+ },
+ {
+ name: "AI-powered",
+ description:
+ "Papermark leverages artificial intelligence to enhance its document sharing and tracking.",
+ icon: Cog6ToothIcon,
+ },
+ {
+ name: "Community Support",
+ description:
+ "Being an open-source project, Papermark is backed by a community of developers ",
+ icon: ServerIcon,
+ },
+];
+
+export default function Features() {
+ return (
+ <div className="">
+ <dl className="mx-auto grid max-w-2xl grid-cols-1 gap-x-6 gap-y-10 leading-7 sm:grid-cols-2 lg:mx-0 lg:max-w-none lg:grid-cols-3 lg:gap-x-8 lg:gap-y-16">
+ {features.map((feature) => (
+ <div
+ key={feature.name}
+ className="flex flex-col justify-start space-y-2"
+ >
+ <feature.icon
+ className="h-10 w-10 text-gray-800"
+ aria-hidden="true"
+ />
+ <dt className="inline text-gray-500 text-xl">{feature.name}</dt>{" "}
+ <dd className="inline text-balance">{feature.description}</dd>
+ </div>
+ ))}
+ </dl>
+ </div>
+ );
+}
diff --git a/components/web/faq.tsx b/components/web/faq.tsx
new file mode 100644
index 00000000..c2b05778
--- /dev/null
+++ b/components/web/faq.tsx
@@ -0,0 +1,79 @@
+import { Plus as PlusSmallIcon, Minus as MinusSmallIcon } from "lucide-react";
+import { Disclosure } from "@headlessui/react";
+
+const faqs = [
+ {
+ question: "What is Papermark?",
+ answer:
+ "Papermark is a dynamic, open-source alternative to DocSend. It enables secure document sharing, tracking, and storage, providing users with real-time analytics. Like your Pitchdeck.",
+ },
+ {
+ question: "How can I use Papermark?",
+ answer:
+ "You can subscribe to one of our plans or use it for free and host it yourself. Simply visit our GitHub page, clone the repository, follow the setup instructions and start using Papermark. You can customize it according to your specific needs as it is open-source. https://github.com/mfts/papermark",
+ },
+ {
+ question: "Is Papermark free?",
+ answer:
+ "Yes, Papermark is completely open-source. This means you are free to use, modify, and distribute it as you see fit according to the terms of our license.",
+ },
+ {
+ question: "Can I add my custom domain to look professional?",
+ answer:
+ "Yes, with Papermark you can connect your custom domain and send your Pitchdeck or document via it. While continue tracking the analytics",
+ },
+ {
+ question: "How I can reach more investors with Papermark?",
+ answer:
+ "Papermark has recommendations for more similar investors for your specific startup build in.",
+ },
+ {
+ question: "How I can use Papermark as a VC?",
+ answer:
+ "You can use it to summarise and analyse data for different Pitchdecks",
+ },
+ {
+ question: "Can I contribute to the Papermark project?",
+ answer:
+ "Yes, contributions are welcome! Please visit our GitHub repository to learn about how you can contribute. Whether it&apos;s by improving the code, adding new features, or even reporting bugs, all contributions are appreciated. https://github.com/mfts/papermark",
+ },
+];
+
+export default function Faq() {
+ return (
+ <div className="">
+ <dl className="mt-10 space-y-6 divide-y divide-gray-800/10 ">
+ {faqs.map((faq) => (
+ <Disclosure as="div" key={faq.question} className="pt-6">
+ {({ open }) => (
+ <>
+ <dt>
+ <Disclosure.Button className="flex w-full items-start justify-between text-left text-gray-800">
+ <span className="text-balance font-medium leading-7">
+ {faq.question}
+ </span>
+ <span className="ml-6 flex h-7 items-center">
+ {open ? (
+ <MinusSmallIcon
+ className="h-6 w-6"
+ aria-hidden="true"
+ />
+ ) : (
+ <PlusSmallIcon className="h-6 w-6" aria-hidden="true" />
+ )}
+ </span>
+ </Disclosure.Button>
+ </dt>
+ <Disclosure.Panel as="dd" className="mt-2 pr-12">
+ <p className="text-balance leading-7 text-gray-500">
+ {faq.answer}
+ </p>
+ </Disclosure.Panel>
+ </>
+ )}
+ </Disclosure>
+ ))}
+ </dl>
+ </div>
+ );
+}
diff --git a/lib/content/alternative.ts b/lib/content/alternative.ts
new file mode 100644
index 00000000..7f8e964d
--- /dev/null
+++ b/lib/content/alternative.ts
@@ -0,0 +1,51 @@
+import { cache } from "react";
+
+type Alternative = {
+ id: number;
+ slug: string;
+ metadescription: string | null;
+ metatitle: string | null;
+ title: string | null;
+ description: string | null;
+ subtitlecompare: string | null;
+ descriptioncompare: string | null;
+ subtitlefeatures: string | null;
+ descriptionfeatures: string | null;
+ descriptionfaq: string | null;
+ subtitlecta: string | null;
+ imageUrl: string | null;
+ name: string | null;
+ price: string | null;
+ feature1: string | null;
+ feature2: string | null;
+ feature3: string | null;
+ feature4: string | null;
+ feature5: string | null;
+ feature6: string | null;
+};
+
+// `cache` is a React 18 feature that allows you to cache a function for the lifetime of a request.
+// this means getPosts() will only be called once per page build, even though we may call it multiple times
+// when rendering the page.
+export const getAlternatives = cache(async () => {
+ const response = await fetch(
+ `${process.env.CONTENT_BASE_URL}/api/alternatives`,
+ {
+ method: "GET",
+ headers: {
+ "Content-Type": "application/json",
+ Authorization: `Bearer ${process.env.INVESTORS_API_KEY}`,
+ },
+ },
+ );
+ if (!response.ok) {
+ throw new Error("Network response was not ok " + response.statusText);
+ }
+ const data = (await response.json()) as Alternative[];
+ return data;
+});
+
+export const getAlternative = async (slug: string) => {
+ const alternatives = await getAlternatives();
+ return alternatives.find((alternative) => alternative.slug === slug);
+};