Skip to content

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

fix: add pricing page

Marc Seitz5b8b944790de
diff --git a/pages/pricing.tsx b/pages/pricing.tsx
index 570103bd..ec87f087 100644
--- a/pages/pricing.tsx
+++ b/pages/pricing.tsx
@@ -4,6 +4,9 @@ import { CheckIcon } from "lucide-react";
import Navbar from "@/components/web/navbar";
import Footer from "@/components/web/footer";
import Link from "next/link";
+import GitHubIcon from "@/components/shared/icons/github";
+import { usePlausible } from "next-plausible";
+
const frequencies = [
{ value: "monthly", label: "Monthly", priceSuffix: "/month" },
{ value: "annually", label: "Annually", priceSuffix: "/year" },
@@ -13,8 +16,8 @@ const tiers = [
name: "Free",
id: "tier-free",
href: "/login",
- price: { monthly: "€0", annually: "$144" },
- description: "The essentials to start sharing documents securely",
+ price: { monthly: "€0", annually: "$0" },
+ description: "The essentials to start sharing documents securely.",
features: [
"1 user",
"Unlimited links",
@@ -32,32 +35,32 @@ const tiers = [
name: "Pro",
id: "tier-freelancer",
href: "/login",
- price: { monthly: "€29", annually: "$288" },
+ price: { monthly: "€29", annually: "$290" },
description:
- "The essentials to build data room and advanced document management.",
+ "The essentials to provide a branded experience for your documents.",
features: [
"Everything in Free, plus:",
- "Up to 3 active user",
- "Data Room",
+ "Up to 3 active users",
"Custom domain",
+ "Advanced access controls",
"Papermark AI",
],
bgColor: "bg-gray-200",
borderColor: "#bg-gray-800",
textColor: "#bg-gray-800",
- buttonText: "Start for free",
+ buttonText: "Choose Pro",
mostPopular: false,
},
{
name: "Business",
id: "tier-startup",
href: "/login",
- price: { monthly: "€79", annually: "$576" },
+ price: { monthly: "€79", annually: "$790" },
description: "A plan that scales with your rapidly growing business.",
features: [
- "Everything in Team, plus:",
+ "Everything in Pro, plus:",
"Up to 10 active users",
- "Advanced Data Room controls",
+ "Data room",
"Large file uploads",
"Custom Branding",
"24h Priority Support",
@@ -65,14 +68,14 @@ const tiers = [
bgColor: "#fb7a00",
borderColor: "#fb7a00",
textColor: "#black",
- buttonText: "Start for free",
+ buttonText: "Choose Business",
mostPopular: true,
},
{
name: "Enterprise",
id: "tier-enterprise",
href: "https://cal.com/marcseitz/papermark",
- price: { monthly: "Custom", annually: "$864" },
+ price: { monthly: "Custom", annually: "$" },
description: "Self-hosted and advanced infrastructure for your company.",
features: [
"Self-Hosted version",
@@ -90,14 +93,19 @@ const tiers = [
mostPopular: false,
},
];
+
export default function PricingPage() {
+ const plausible = usePlausible();
const frequency = frequencies[0];
+
+ plausible;
+
return (
<>
<div className="flex flex-1 flex-col bg-white text-black">
<Navbar />
<div className="max-w-7xl w-full mx-auto px-4 md:px-8">
- <div className="pt-32 pb-2">
+ <div className="pt-24 pb-2">
<h1 className="text-4xl md:text-6xl text-balance">
Find the plan that
<br />
@@ -178,43 +186,62 @@ export default function PricingPage() {
</ul>
</div>
</div>
- <a
- href={tier.href}
- aria-describedby={tier.id}
- className="p-6"
- >
- <Button
- className="rounded-3xl hover:bg-gray-100"
- style={{
- backgroundColor: tier.bgColor,
- borderColor: tier.borderColor,
- color: tier.textColor,
- borderWidth: "1px", // Adjust as needed
+ <div className="p-6">
+ <Link
+ href={tier.href}
+ onClick={() => {
+ plausible("clickedPricing", {
+ props: { tier: tier.name },
+ });
}}
>
- {tier.buttonText} {/* Use custom button text */}
- </Button>
- </a>
+ <Button
+ className="rounded-3xl hover:bg-gray-100"
+ style={{
+ backgroundColor: tier.bgColor,
+ borderColor: tier.borderColor,
+ color: tier.textColor,
+ borderWidth: "1px",
+ }}
+ >
+ {tier.buttonText}
+ </Button>
+ </Link>
+ </div>
</div>
))}
</div>
</div>
</div>
- <div className="bg-[#fb7a00] rounded-3xl xl:mx-20 md:mx-8 ">
- <div className="w-full mx-auto max-w-7xl py-12 px-4 md:px-8">
- <h2 className="text-4xl text-balance ">
- Looking to self host your data room?
- </h2>
- <div className="pt-8 space-x-2">
- <Link
- href="https://cal.com/marcseitz/papermark"
- target="_blank"
- rel="noopener noreferrer"
- >
- <Button className="text-gray-200 bg-black rounded-3xl hover:bg-gray-900">
- Book a demo
- </Button>
- </Link>
+
+ <div className="w-full max-w-7xl px-4 md:px-8 mx-auto ">
+ <div className="py-12 bg-[#fb7a00] rounded-3xl mx-auto px-6">
+ <div className="flex lg:flex-row flex-col item-center justify-between space-y-10 lg:space-y-0">
+ <h2 className="text-3xl text-nowrap">Looking to self-host?</h2>
+ <div className="space-x-2 flex items-center">
+ <Link
+ href="https://cal.com/marcseitz/papermark"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <Button
+ variant="outline"
+ className="text-base rounded-3xl bg-transparent border-black hover:bg-gray-200 hover:text-black"
+ >
+ <GitHubIcon className="mr-2 h-6 w-6" />
+ View Github
+ </Button>
+ </Link>
+ <Link
+ href="https://cal.com/marcseitz/papermark"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <Button className="text-base rounded-3xl text-gray-200 bg-black hover:bg-gray-900">
+ Book a demo
+ </Button>
+ </Link>
+ </div>
</div>
</div>
</div>
@@ -223,167 +250,3 @@ export default function PricingPage() {
</>
);
}
-
-// import Footer from "@/components/web/footer";
-// import Navbar from "@/components/web/navbar";
-// import Link from "next/link";
-// import Head from "next/head";
-
-// export default function Pricing() {
-// const tiers = [
-// {
-// id: 1,
-// title: "Free",
-// priceMonthly: "€0/mo",
-// description: "What's included:",
-// features: [
-// "Unlimited links",
-// "30 MB document size limit",
-// "Notion documents",
-// "1 user",
-// "Basic support",
-// "Email notifications",
-// "Basic Papermark AI",
-// "100 credits, 3/day",
-// ],
-// },
-// {
-// id: 2,
-// title: "Pro",
-// priceMonthly: "€29/mo",
-// description: "Everything in Free, plus:",
-// features: [
-// "Unlimited documents",
-// "Large file uploads",
-// "Team members",
-// "Priority support",
-// "Custom domains",
-// "Custom branding",
-// "Advanced Papermark AI",
-// "1500 credits",
-// ],
-// },
-// {
-// id: 3,
-// title: "Enterprise",
-// priceMonthly: "Get in touch",
-// description: "Custom tailored plans, incl.:",
-// features: [
-// "Up to 5TB file uploads",
-// "Dedicated support",
-// "Custom Papermark AI / BYO",
-// "Unlimited credits",
-// ],
-// },
-// ];
-
-// return (
-// <>
-// <Head>
-// <title>Papermark | Pricing</title>
-// </Head>
-// <Navbar />
-
-// <div className="min-h-screen bg-white text-black py-20">
-// <div className="container mx-auto px-4">
-// <div className="mx-auto max-w-2xl text-center lg:max-w-4xl">
-// <p className="mt-16 text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl">
-// Pricing
-// </p>
-// </div>
-
-// <p className="mx-auto mt-6 max-w-2xl text-center text-lg leading-8 text-gray-500 ">
-// Share your Pitch Deck, Sales Deck and other documents and monitor
-// results on any suitable for you plan. You always can start
-// <Link
-// href="https://github.com/mfts/papermark"
-// target="_blank"
-// rel="noopener noreferrer"
-// className="text-black hover:underline"
-// >
-// {" "}
-// open source{" "}
-// </Link>
-// or
-// <Link
-// href="https://cal.com/marcseitz/papermark"
-// target="_blank"
-// rel="noopener noreferrer"
-// className="text-black hover:underline"
-// >
-// {" "}
-// contact us{" "}
-// </Link>
-// for custom requests, like self hosting, customization and AI
-// document comparison.
-// </p>
-
-// <div className="mx-auto mt-16 grid max-w-5xl grid-cols-1 gap-6 items-stretch sm:grid-cols-3 sm:gap-4">
-// {tiers.map((tier) => (
-// <div
-// key={tier.id}
-// className="flex flex-col rounded-3xl p-8 ring-1 ring-gray-900/10 sm:p-10"
-// >
-// <h2 className="text-xl font-bold mb-4">{tier.title}</h2>
-// <div className="text-3xl font-bold mb-4">
-// {tier.priceMonthly}
-// </div>
-// <div className="text-gray-900 mb-6">{tier.description}</div>
-// <div className="flex-grow">
-// {tier.features.map((feature) => (
-// <div key={feature} className="flex items-center mb-2">
-// <svg
-// className="h-5 w-5 text-green-500 mr-2"
-// fill="none"
-// stroke="currentColor"
-// viewBox="0 0 24 24"
-// xmlns="http://www.w3.org/2000/svg"
-// >
-// <path
-// strokeLinecap="round"
-// strokeLinejoin="round"
-// strokeWidth="2"
-// d="M5 13l4 4L19 7"
-// ></path>
-// </svg>
-// {feature}
-// </div>
-// ))}
-// </div>
-// <div className="mt-6 flex items-center justify-center gap-x-6">
-// {tier.id === 1 && (
-// <Link
-// href="/login"
-// className="rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-black shadow-sm border-2 border-gray-700 hover:bg-gray-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
-// >
-// Start for free
-// </Link>
-// )}
-// {tier.id === 2 && (
-// <Link
-// href="/login?next=/settings/billing"
-// className="rounded-md bg-black px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
-// >
-// Start for free
-// </Link>
-// )}
-// {tier.id === 3 && (
-// <Link
-// href="https://cal.com/marcseitz/papermark"
-// target="_blank"
-// className="rounded-md bg-black px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
-// >
-// Contact us
-// </Link>
-// )}
-// </div>
-// </div>
-// ))}
-// </div>
-// </div>
-// </div>
-
-// <Footer />
-// </>
-// );
-// }