Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
updates with colors and pricing banner
Iuliia Shnai9bc720bd0b29
diff --git a/components/billing/pro-banner.tsx b/components/billing/pro-banner.tsxindex ac99c3dd..b358344f 100644--- a/components/billing/pro-banner.tsx+++ b/components/billing/pro-banner.tsx@@ -37,14 +37,13 @@ export default function ProBanner({<span className="sr-only">Close</span></button><div className="flex space-x-2">- <span className="text-sm font-bold">✨ Papermark Pro ✨</span>+ <span className="text-sm font-bold">✨ Papermark Business ✨</span></div><p className="my-4 text-sm">- Join the Papermark Pro plan to unlock custom domains, team members, and- more.+ Join to unlock custom branding, domains, team members, and data rooms.</p><div className="flex">- <UpgradePlanModal clickedPlan={"Pro"} trigger={"pro_banner"}>+ <UpgradePlanModal clickedPlan={"Business"} trigger={"pro_banner"}><Buttontype="button"className="grow"diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsxindex f31d7b09..354bdc74 100644--- a/components/billing/upgrade-plan-modal.tsx+++ b/components/billing/upgrade-plan-modal.tsx@@ -34,7 +34,7 @@ export function UpgradePlanModal({const [plan, setPlan] = useState<"Pro" | "Business" | "Data Rooms">(clickedPlan,);- const [period, setPeriod] = useState<"monthly" | "yearly">("monthly");+ const [period, setPeriod] = useState<"yearly" | "monthly">("yearly");const [clicked, setClicked] = useState<boolean>(false);const teamInfo = useTeam();const analytics = useAnalytics();@@ -55,7 +55,9 @@ export function UpgradePlanModal({"3 users","1 dataroom","Multi-file sharing",- "Custom domain for documents",+ <span key="custom-domain">+ Custom domain <b>for documents</b>+ </span>,"Unlimited documents","Unlimited subfolder levels","Large file uploads",@@ -66,7 +68,9 @@ export function UpgradePlanModal({return ["5 users included","Unlimited data rooms",- "Custom domain for data rooms",+ <span key="custom-dataroom">+ Custom domain <b>for data rooms</b>+ </span>,"Unlimited documents","Unlimited folders and subfolders","User groups permissions",diff --git a/pages/pricing.tsx b/pages/pricing.tsxindex a6d4e7f4..b70e7340 100644--- a/pages/pricing.tsx+++ b/pages/pricing.tsx@@ -69,7 +69,7 @@ const tiers: {featureIntro: "Everything in Free, plus:",features: ["2 users included",- "Custom slug",+"Custom branding","1-year analytics retention","Advanced access controls",diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsxindex f9b380ea..ee77bdfc 100644--- a/pages/settings/billing.tsx+++ b/pages/settings/billing.tsx@@ -114,7 +114,7 @@ export default function Billing() {bgColor: "bg-gray-200",borderColor: "#bg-gray-800",- textColor: "#bg-gray-800",+ textColor: "text-foreground ",buttonText: "Start for free",mostPopular: false,},@@ -128,7 +128,6 @@ export default function Billing() {featureIntro: "Everything in Free, plus:",features: ["2 users",- "Custom slug","Custom branding","1-year analytics retention","Advanced access controls",@@ -136,7 +135,7 @@ export default function Billing() {],bgColor: "bg-gray-200",borderColor: "#bg-gray-800",- textColor: "#bg-gray-800",+ textColor: "#bg-gray-500",buttonText: "Upgrade to Pro",mostPopular: false,},@@ -153,15 +152,15 @@ export default function Billing() {"3 users","1 dataroom","Multi-file sharing",- "Custom domain",+ "Custom domain for documents","Unlimited documents","Unlimited subfolder levels","Large file uploads","48h priority support",],- bgColor: "#fb7a00",+ bgColor: "#bg-gray-500",borderColor: "#fb7a00",- textColor: "#black",+ textColor: "#bg-gray-500",buttonText: "Upgrade to Business",mostPopular: true,},@@ -231,7 +230,7 @@ export default function Billing() {className="flex flex-col justify-between border-r-0 border-black dark:border-muted-foreground md:border-r md:last:!border-r-0"><div>- <div className="border-b border-black bg-gray-100 p-6 dark:border-muted-foreground dark:bg-gray-800">+ <div className="border-b border-black bg-gray-100 p-6 dark:border-muted-foreground dark:bg-gray-500"><h3id={tier.id}className="flex items-center gap-x-2 text-balance text-xl leading-8 text-foreground"@@ -266,7 +265,7 @@ export default function Billing() {className={cn(toggleProYear? "text-gray-400"- : "text-black",+ : "text-foreground ",)}>Monthly@@ -275,7 +274,7 @@ export default function Billing() {<spanclassName={cn(toggleProYear- ? "text-black"+ ? "text-foreground ": "text-gray-400",)}>@@ -284,7 +283,7 @@ export default function Billing() {</div><divclassName={cn(- "relative w-fit rounded-3xl border border-gray-900 px-1.5 py-0.5 text-xs uppercase text-gray-900",+ "relative w-fit rounded-3xl border border-[#fb7a00] px-1.5 py-0.5 text-xs uppercase text-[#fb7a00]",!toggleProYear &&"border-gray-400 text-gray-400 opacity-40",)}@@ -314,7 +313,7 @@ export default function Billing() {className={cn(toggleBusinessYear? "text-gray-400"- : "text-black",+ : "text-foreground ",)}>Monthly@@ -323,7 +322,7 @@ export default function Billing() {<spanclassName={cn(toggleBusinessYear- ? "text-black"+ ? "text-foreground ": "text-gray-400",)}>@@ -362,7 +361,7 @@ export default function Billing() {className={cn(toggleDataroomsYear? "text-gray-400"- : "text-black",+ : "text-foreground",)}>Monthly@@ -371,7 +370,7 @@ export default function Billing() {<spanclassName={cn(toggleDataroomsYear- ? "text-black"+ ? "text-foreground": "text-gray-400",)}>@@ -407,7 +406,7 @@ export default function Billing() {</div><p className="mt-6 flex items-baseline gap-x-1"><span- className="text-balance text-4xl font-medium text-gray-900"+ className="text-balance text-4xl font-medium text-foreground "style={{ fontVariantNumeric: "tabular-nums" }}>{tier.id === "tier-pro"