Skip to content

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

Pricing updates

Iuliia Shnaif24623484bd5
diff --git a/components/settings/pricing.tsx b/components/settings/pricing.tsx
new file mode 100644
index 00000000..a7a3e102
--- /dev/null
+++ b/components/settings/pricing.tsx
@@ -0,0 +1,122 @@
+import React from "react";
+import Link from "next/link";
+
+interface Tier {
+ id: number;
+ title: string;
+ priceMonthly: string;
+ description: string;
+ features: string[];
+}
+
+const tiers: Tier[] = [
+ {
+ id: 1,
+ title: "Free",
+ priceMonthly: "$0/mo",
+ description: "Enjoy free access",
+ features: [
+ "PDF up to 30 mb",
+ "Unlimited links",
+ "Analytics for each page",
+ "Feedback on each page",
+ "Email Notifications on views",
+ ],
+ },
+ {
+ id: 2,
+ title: "Pro",
+ priceMonthly: "$29/mo",
+ description: "Use all freemium features+ ",
+ features: [
+ "Team members",
+ "Custom domains",
+ "Unlimited documents",
+ "Large file uploads",
+ "Full customization",
+ ],
+ },
+ {
+ id: 3,
+ title: "Contact us",
+ priceMonthly: "Custom",
+ description: "Get more perfect plan for you",
+ features: [
+ "Priority Support",
+ "Full customization",
+ "Separate Hosting",
+ "Custom features request",
+ "Personal Onboarding",
+ ],
+ },
+];
+
+export default function PricingComponent() {
+ return (
+ <div className="min-h-screen bg-white dark:bg-gray-900 text-black dark:text-white py-20">
+ <div className="container mx-auto px-4">
+ <div className="mx-auto max-w-2xl text-center lg:max-w-4xl"></div>
+
+ <div className="mx-auto mt-6 grid max-w-5xl grid-cols-1 gap-6 items-center sm:grid-cols-3 sm:gap-4">
+ {tiers.map((tier) => (
+ <div
+ key={tier.id}
+ className="rounded-3xl p-8 ring-1 ring-gray-900/10 dark:ring-gray-200/10 sm:p-10 bg-white dark:bg-gray-800"
+ >
+ <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 dark:text-gray-400 mb-6">
+ {tier.description}
+ </div>
+ {tier.features.map((feature) => (
+ <div key={feature} className="flex items-center mb-2">
+ <svg
+ className="h-5 w-5 text-green-500 dark:text-green-300 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 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 dark:text-black dark:bg-white"
+ >
+ Start for free
+ </Link>
+ )}
+ {tier.id === 2 && (
+ <Link
+ href="/login"
+ 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 dark:text-black dark:bg-white "
+ >
+ Start for free
+ </Link>
+ )}
+ {tier.id === 3 && (
+ <Link
+ href="/login"
+ 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 dark:text-black dark:bg-white"
+ >
+ Contact us
+ </Link>
+ )}
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/components/web/footer.tsx b/components/web/footer.tsx
index 9e5183f9..5dc041c4 100644
--- a/components/web/footer.tsx
+++ b/components/web/footer.tsx
@@ -53,6 +53,7 @@
const navigation = {
product: [
+ { name: "Pricing", href: "/pricing" },
{ name: "Github", href: "https://github.com/mfts/papermark" },
{ name: "Twitter", href: "https://twitter.com/papermarkio" },
],
diff --git a/middleware.ts b/middleware.ts
index 767b045d..0da3cd8f 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -19,10 +19,10 @@ export const config = {
export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
const path = req.nextUrl.pathname;
- const host = req.headers.get('host');
+ const host = req.headers.get("host");
if (
- process.env.NODE_ENV !== "development" &&
+ process.env.NODE_ENV !== "development" &&
!(host?.includes("papermark.io") || host?.endsWith(".vercel.app"))
) {
return DomainMiddleware(req);
@@ -32,6 +32,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
path !== "/" &&
path !== "/privacy" &&
path !== "/oss-friends" &&
+ path !== "/pricing" &&
path !== "/open-source-investors" &&
!path.startsWith("/alternatives/") &&
!path.startsWith("/blog/") &&
diff --git a/pages/pricing.tsx b/pages/pricing.tsx
new file mode 100644
index 00000000..e6fb4b7b
--- /dev/null
+++ b/pages/pricing.tsx
@@ -0,0 +1,165 @@
+// pages/pricing.js
+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: "Enjoy free access",
+ features: [
+ "PDF up to 30 mb",
+ "Unlimited links",
+ "Analytics for each page",
+ "Feedback on each page",
+ "Email Notifications on views",
+ ],
+ },
+ {
+ id: 2,
+ title: "Pro",
+ priceMonthly: "$29/mo",
+ description: "Use all freemium features+ ",
+ features: [
+ "Team members",
+ "Custom domains",
+ "Unlimited documents",
+ "Large file uploads",
+ "Full customization",
+ ],
+ },
+ {
+ id: 3,
+ title: "Contact us",
+ priceMonthly: "Custom",
+ description: "Get more perfect plan for you",
+ features: [
+ "Priority Support",
+ "Full customization",
+ "Separate Hosting",
+ "Custom features request",
+ "Personal Onboarding",
+ ],
+ },
+ ];
+
+ return (
+ <>
+ <Head>
+ <title>
+ Papermark | How to launch Open Source project on Product Hunt?
+ </title>
+ <meta
+ name="description"
+ content="How to launch Open Source project on Product Hunt? Best tips to launch on Product Hunt and get first place"
+ />
+ <meta
+ property="og:title"
+ content="How to launch Open Source project on Product Hunt?"
+ />
+ <meta
+ property="og:description"
+ content="How to launch Open Source project on Product Hunt? Best tips to launch on Product Hunt and get first place"
+ />
+ <meta
+ property="og:image"
+ content="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fejivoe3vst4rsdzjblo.png"
+ />
+ <meta property="og:url" content="https://www.papermark.io" />
+ <meta name="twitter:card" content="summary_large_image" />
+ </Head>
+ <Navbar />
+
+ <div className="min-h-screen bg-white dark:bg-gray-900 text-black dark:text-white py-20">
+ <Head>
+ <title>Pricing Page</title>
+ </Head>
+
+ <div className="container mx-auto px-4">
+ <div className="mx-auto max-w-2xl text-center lg:max-w-4xl">
+ {/* <h2 className="text-base font-semibold leading-7 text-black dark:text-white">
+ Feature comparison
+ </h2> */}
+ <p className="mt-16 text-4xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-5xl">
+ Pricing Page
+ </p>
+ </div>
+
+ <p className="mx-auto mt-6 max-w-2xl text-center text-lg leading-8 text-gray-500 dark:text-gray-400">
+ Share your Pitch Deck, Sales Deck and oher documents and monitor
+ results on any suitable for you plan. You always can start open
+ source
+ </p>
+
+ <div className="mx-auto mt-16 grid max-w-5xl grid-cols-1 gap-6 items-center sm:grid-cols-3 sm:gap-4">
+ {tiers.map((tier) => (
+ <div
+ key={tier.id}
+ className="rounded-3xl p-8 ring-1 ring-gray-900/10 dark:ring-gray-200/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 dark:text-gray-400 mb-6">
+ {tier.description}
+ </div>
+ {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 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"
+ 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="/login"
+ 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 />
+ </>
+ );
+}
diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsx
index 80bcce01..5fe54c10 100644
--- a/pages/settings/billing.tsx
+++ b/pages/settings/billing.tsx
@@ -8,10 +8,11 @@ import { formattedDate, getFirstAndLastDay } from "@/lib/utils";
import { useRouter } from "next/router";
import { useEffect, useMemo, useState } from "react";
import { toast } from "sonner";
+import Pricing from "@/components/settings/pricing";
export default function Billing() {
const router = useRouter();
- const { plan, startsAt, endsAt } = useBilling()
+ const { plan, startsAt, endsAt } = useBilling();
const [clicked, setClicked] = useState<boolean>(false);
useEffect(() => {
@@ -26,10 +27,11 @@ export default function Billing() {
// }, 1000);
}
}, [router.query.success]);
-
+
return (
<AppLayout>
<Navbar current="Billing" />
+
<div className="p-4 sm:p-4 sm:m-4">
<div className="flex items-center justify-between mb-4 md:mb-8 lg:mb-12">
<div className="space-y-1">
@@ -41,6 +43,7 @@ export default function Billing() {
</p>
</div>
</div>
+ <Pricing />
<div>
<div className="rounded-lg border border-border bg-secondary">
@@ -141,6 +144,7 @@ export default function Billing() {
</div>
</div> */}
</div>
+
<div className="border-b border-gray-200 dark:border-gray-700" />
<div className="flex flex-col items-center justify-between space-y-3 px-10 py-4 text-center sm:flex-row sm:space-y-0 sm:text-left">
{plan ? (
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index bf56b0c5..2d61ebaf 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -3,7 +3,7 @@ datasource db {
url = env("POSTGRES_PRISMA_URL") // uses connection pooling
// url = env("POSTGRES_PRISMA_URL_NON_POOLING") // uses a direct connection
directUrl = env("POSTGRES_PRISMA_URL_NON_POOLING") // uses a direct connection
- shadowDatabaseUrl = env("POSTGRES_PRISMA_URL_NON_POOLING") // used for migrations
+ shadowDatabaseUrl = env("POSTGRES_PRISMA_SHADOW_URL") // used for migrations
}
generator client {