Skip to content

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

style: adjust to dark mode

Marc Seitz93a14f6db9a3
diff --git a/components/billing/upgrade-plan-modal.tsx b/components/billing/upgrade-plan-modal.tsx
index 2a8aa2e2..4090dc2c 100644
--- a/components/billing/upgrade-plan-modal.tsx
+++ b/components/billing/upgrade-plan-modal.tsx
@@ -152,7 +152,7 @@ export function UpgradePlanModal({
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>{buttonChild}</DialogTrigger>
<DialogContent
- className="max-h-[90vh] overflow-y-auto bg-gray-50 text-foreground"
+ className="max-h-[90vh] overflow-y-auto bg-gray-50 text-foreground dark:bg-gray-900"
style={{
width: isOnlyDataRooms ? "550px" : "90vw", // Adjust width based on plans shown
maxWidth: isOnlyDataRooms ? "550px" : "900px", // Adjust maxWidth based on plans shown
@@ -186,7 +186,7 @@ export function UpgradePlanModal({
}`}
>
<div className="mb-4 border-b border-gray-200 pb-2">
- <h3 className="text-balance text-xl font-medium text-foreground text-gray-900">
+ <h3 className="text-balance text-xl font-medium text-gray-900">
Papermark {planOption}
</h3>
{planOption === "Business" && (
@@ -198,8 +198,8 @@ export function UpgradePlanModal({
{/* Add pricing information here */}
<div className="mb-2">
- <span className="text-balance text-4xl font-medium text-gray-900">
- $
+ <span className="text-balance text-4xl font-medium tabular-nums text-gray-900">
+ €
{
PLANS.find((p) => p.name === planOption)?.price[period]
.amount
@@ -255,7 +255,6 @@ export function UpgradePlanModal({
setClicked(false);
});
} else {
-
fetch(
`/api/teams/${
teamInfo?.currentTeam?.id
diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsx
index 56f871f5..23e84c2e 100644
--- a/pages/settings/billing.tsx
+++ b/pages/settings/billing.tsx
@@ -235,7 +235,7 @@ export default function Billing() {
</p>
<Link
href="/settings/upgrade"
- className="text-sm text-gray-700 underline-offset-4 hover:text-foreground hover:underline"
+ className="text-sm text-foreground underline-offset-4 hover:underline"
>
See all plans
</Link>
diff --git a/pages/settings/upgrade.tsx b/pages/settings/upgrade.tsx
index 25d53131..bcbcab9d 100644
--- a/pages/settings/upgrade.tsx
+++ b/pages/settings/upgrade.tsx
@@ -83,7 +83,7 @@ export default function UpgradePage() {
// Remove the useEffect hook that was causing the error
return (
- <div className="min-h-screen bg-gray-50 p-8">
+ <div className="min-h-screen bg-gray-50 p-8 dark:bg-gray-900">
<h1 className="mb-8 text-center text-3xl font-bold">
Select best plan for your business
</h1>
@@ -120,7 +120,7 @@ export default function UpgradePage() {
)}
</div>
- <div className="mb-2 text-balance text-4xl font-medium text-foreground">
+ <div className="mb-2 text-balance text-4xl font-medium tabular-nums text-foreground">
€{PLANS.find((p) => p.name === planOption)!.price[period].amount}
<span className="text-base font-normal">/month</span>
</div>
@@ -143,10 +143,10 @@ export default function UpgradePage() {
</ul>
<div className="mt-auto">
<Button
- variant={planOption === "Business" ? "default" : "outline"}
+ variant={planOption === "Business" ? "default" : "default"}
className={`w-full py-2 text-sm ${
planOption === "Business"
- ? "bg-[#fb7a00] hover:bg-[#fb7a00]"
+ ? "bg-[#fb7a00] hover:bg-[#fb7a00]/80"
: "bg-gray-800 text-white hover:bg-gray-900"
}`}
onClick={() => {