Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
📈 Price increase (#834)
Luke Vella0d8eb58f9609
diff --git a/apps/landing/src/pages/pricing.tsx b/apps/landing/src/pages/pricing.tsxindex 592dd2779..b59cdf3a5 100644--- a/apps/landing/src/pages/pricing.tsx+++ b/apps/landing/src/pages/pricing.tsx@@ -24,8 +24,8 @@ import { linkToApp } from "@/lib/linkToApp";import { NextPageWithLayout } from "@/types";import { getStaticTranslations } from "@/utils/page-translations";-const monthlyPriceUsd = 5;-const annualPriceUsd = 30;+const monthlyPriceUsd = 7;+const annualPriceUsd = 42;const Page: NextPageWithLayout = () => {const { t } = useTranslation();diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.jsonindex 3098cfbb5..be68dd528 100644--- a/apps/web/public/locales/en/app.json+++ b/apps/web/public/locales/en/app.json@@ -231,6 +231,5 @@"accessAllFeatures": "Access all features","earlyAccess": "Get early access to new features","earlyAdopterDescription": "As an early adopter, you'll lock in your subscription rate and won't be affected by future price increases.",- "nextPriceIncrease": "Next price increase is scheduled for <b>{date}</b>.","upgradeNowSaveLater": "Upgrade now, save later"}diff --git a/apps/web/src/components/billing/billing-plans.tsx b/apps/web/src/components/billing/billing-plans.tsxindex a60d8f6d7..4858c81d5 100644--- a/apps/web/src/components/billing/billing-plans.tsx+++ b/apps/web/src/components/billing/billing-plans.tsx@@ -3,14 +3,11 @@ import { cn } from "@rallly/ui";import { BillingPlanPeriod, BillingPlanPrice } from "@rallly/ui/billing-plan";import { Button } from "@rallly/ui/button";import { Tabs, TabsContent, TabsList, TabsTrigger } from "@rallly/ui/tabs";-import dayjs from "dayjs";import React from "react";import { Trans } from "@/components/trans";import { UpgradeButton } from "@/components/upgrade-button";--const monthlyPriceUsd = 5;-const annualPriceUsd = 30;+import { annualPriceUsd, monthlyPriceUsd } from "@/utils/constants";const Perks = ({ children }: React.PropsWithChildren) => {return <ul className="grid gap-1">{children}</ul>;@@ -144,8 +141,8 @@ export const BillingPlans = () => {</div></Tabs><div className="rounded-md border border-cyan-200 bg-cyan-50 px-4 py-3 text-cyan-800">- <div className="flex items-start justify-between">- <TrendingUpIcon className="text-indigo mb-4 mr-2 mt-0.5 h-6 w-6 shrink-0 text-cyan-500" />+ <div className="mb-2 flex items-start justify-between">+ <TrendingUpIcon className="text-indigo mr-2 mt-0.5 h-6 w-6 shrink-0" /></div><div className="mb-2 flex items-center gap-x-2"><h3 className="text-sm">@@ -155,29 +152,12 @@ export const BillingPlans = () => {/></h3></div>- <p className="-200 mb-4 text-sm">+ <p className="text-sm"><Transi18nKey="earlyAdopterDescription"defaults="As an early adopter, you'll lock in your subscription rate and won't be affected by future price increases."/></p>- <p className="text-sm">- <Trans- i18nKey="nextPriceIncrease"- defaults="Next price increase is scheduled for <b>{date}</b>."- components={{- b: (- <a- href="https://rallly.co/blog/july-recap"- className="font-bold hover:underline"- />- ),- }}- values={{- date: dayjs("2023-09-01").format("LL"),- }}- />- </p></div></div>);diff --git a/apps/web/src/components/pay-wall.tsx b/apps/web/src/components/pay-wall.tsxindex 807bfb20d..bee3d091e 100644--- a/apps/web/src/components/pay-wall.tsx+++ b/apps/web/src/components/pay-wall.tsx@@ -21,6 +21,7 @@ import { Trans } from "@/components/trans";import { UpgradeButton } from "@/components/upgrade-button";import { usePlan } from "@/contexts/plan";import { IconComponent } from "@/types";+import { annualPriceUsd, monthlyPriceUsd } from "@/utils/constants";const Feature = ({icon: Icon,@@ -114,7 +115,7 @@ const Teaser = () => {<TabsContent value="monthly"><div><div className="flex items-start justify-center gap-2.5">- <div className=" text-4xl font-bold">$5</div>+ <div className=" text-4xl font-bold">${monthlyPriceUsd}</div><div><div className="text-xs font-semibold leading-5">USD</div></div>@@ -128,8 +129,12 @@ const Teaser = () => {<div className="text-center"><div className="flex items-start justify-center gap-2.5"><div className="flex items-end gap-2">- <div className="font-bold text-gray-500 line-through">$5</div>- <div className=" text-4xl font-bold">$2.50</div>+ <div className="font-bold text-gray-500 line-through">+ ${monthlyPriceUsd}+ </div>+ <div className=" text-4xl font-bold">+ ${(annualPriceUsd / 12).toFixed(2)}+ </div></div><div><div className="mt-1 text-xs font-semibold">USD</div>@@ -143,7 +148,9 @@ const Teaser = () => {<Transi18nKey="savePercent"defaults="Save {percent}%"- values={{ percent: 50 }}+ values={{+ percent: (annualPriceUsd / 12 / monthlyPriceUsd) * 100,+ }}/></span></p>diff --git a/apps/web/src/utils/constants.ts b/apps/web/src/utils/constants.tsindex f32f791a7..bba934c50 100644--- a/apps/web/src/utils/constants.ts+++ b/apps/web/src/utils/constants.ts@@ -6,3 +6,6 @@ export const planIdYearly = process.envexport const isFeedbackEnabled =process.env.NEXT_PUBLIC_FEEDBACK_ENABLED === "true";++export const monthlyPriceUsd = 7;+export const annualPriceUsd = 42;