From ca1546146666143ac4f443f5d5e7cbb9df64474e Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Sun, 9 Jun 2024 10:10:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Improved=20pay-wall=20copy=20(#1137?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/public/locales/en/app.json | 10 +- .../poll/[urlId]/pay-wall-dialog-content.tsx | 124 ++++++++++++++---- packages/ui/src/badge.tsx | 4 +- 3 files changed, 111 insertions(+), 27 deletions(-) diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json index d90e3a21e..b157113da 100644 --- a/apps/web/public/locales/en/app.json +++ b/apps/web/public/locales/en/app.json @@ -252,5 +252,13 @@ "deleteAccountInstruction": "Please confirm your email address to delete your account", "emailMismatch": "Email does not match the account email", "dangerZone": "Danger Zone", - "dangerZoneAccount": "Delete your account permanently. This action cannot be undone." + "dangerZoneAccount": "Delete your account permanently. This action cannot be undone.", + "upgradePromptTitle": "Upgrade to Pro", + "upgradeOverlaySubtitle3": "Unlock these feature by upgrading to a Pro plan.", + "finalizeFeatureDescription": "Select a final date for your event and notify participants.", + "duplicateTitle": "Duplicate", + "duplicateFeatureDescription": "Reuse dates and settings of a poll to create a new one.", + "advancedSettingsTitle": "Advanced Settings", + "advancedSettingsDescription": "Hide participants, hide scores, require participant email address.", + "keepPollsIndefinitely": "Keep Polls Indefinitely" } diff --git a/apps/web/src/app/[locale]/poll/[urlId]/pay-wall-dialog-content.tsx b/apps/web/src/app/[locale]/poll/[urlId]/pay-wall-dialog-content.tsx index 7bf94b6b4..cfae8f76c 100644 --- a/apps/web/src/app/[locale]/poll/[urlId]/pay-wall-dialog-content.tsx +++ b/apps/web/src/app/[locale]/poll/[urlId]/pay-wall-dialog-content.tsx @@ -2,6 +2,12 @@ import { Badge } from "@rallly/ui/badge"; import { Button } from "@rallly/ui/button"; import { DialogClose, DialogContent } from "@rallly/ui/dialog"; import { m } from "framer-motion"; +import { + CalendarCheck2Icon, + ClockIcon, + CopyIcon, + Settings2Icon, +} from "lucide-react"; import Link from "next/link"; import { Trans } from "@/components/trans"; @@ -30,34 +36,104 @@ export function PayWallDialogContent({ className="text-center" aria-hidden="true" > - + -
-
-

- -

-

- -

-
-
-
+
+
+

+ +

+

+ +

+
+
    +
  • +
    + +
    +
    +

    + +

    +

    + +

    +
    +
  • +
  • + +
    +

    + +

    +

    + +

    +
    +
  • +
  • +
    + +
    +
    +

    + +

    +

    + +

    +
    +
  • +
  • +
    + +
    +
    +

    + +

    +

    + +

    +
    +
  • +
+
+ + + - - - -
+
diff --git a/packages/ui/src/badge.tsx b/packages/ui/src/badge.tsx index 97e7f2db3..8293fbb2b 100644 --- a/packages/ui/src/badge.tsx +++ b/packages/ui/src/badge.tsx @@ -4,7 +4,7 @@ import * as React from "react"; import { cn } from "./lib/utils"; const badgeVariants = cva( - "inline-flex group whitespace-nowrap items-center rounded-full border justify-center text-sm font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", + "inline-flex group whitespace-nowrap items-center rounded-full border justify-center font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", { variants: { variant: { @@ -17,7 +17,7 @@ const badgeVariants = cva( }, size: { md: "h-5 min-w-5 text-xs px-1.5", - lg: "h-7 min-w-7 px-2.5", + lg: "h-7 text-sm min-w-7 px-2.5", }, }, defaultVariants: {