From 0bb6128f49baf03f96ffde669cd2d6ef4ee2bb25 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 2 Sep 2025 18:18:44 +0300 Subject: [PATCH] feat(pro-page): enhance subscription messaging and add benefits section - Updated subscription status messaging for clarity and conciseness. - Improved button styling based on trial availability. - Added a new benefits section for non-active subscribers, highlighting key features of the Pro subscription. --- apps/web/app/(main)/pro/page.tsx | 50 ++++++++++++++++--- .../subscription/try-free-button.tsx | 2 +- 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/apps/web/app/(main)/pro/page.tsx b/apps/web/app/(main)/pro/page.tsx index 9ae2cd9..e6edf4f 100644 --- a/apps/web/app/(main)/pro/page.tsx +++ b/apps/web/app/(main)/pro/page.tsx @@ -3,7 +3,7 @@ import { getSessionUser } from '@/actions/session'; import { TryFreeButton } from '@/components/subscription'; import { env } from '@/config/env'; import { Button } from '@repo/ui/components/ui/button'; -import { ArrowRight, Crown } from 'lucide-react'; +import { ArrowRight, Crown, Infinity as InfinityIcon, Star, Users } from 'lucide-react'; import Link from 'next/link'; export default async function ProPage() { @@ -45,9 +45,7 @@ export default async function ProPage() {

- {isActive - ? 'Ваша подписка Pro активна! Доступно неограниченное количество записей' - : 'Разблокируйте неограниченное количество записей в месяц'} + {isActive ? 'Ваша подписка Pro активна!' : 'Разблокируйте больше возможностей'}

{!isActive && ( @@ -56,9 +54,13 @@ export default async function ProPage() { )} + + {!isActive && ( +
+

+ Преимущества +

+
+
+
+ +
+

+ Доступно неограниченное количество записей в месяц +

+
+ +
+
+ +
+

+ Ваш профиль доступен всем пользователям +

+
+ +
+
+ +
+

+ Профиль и аватар выделяются специальным цветом +

+
+
+
+ )} diff --git a/apps/web/components/subscription/try-free-button.tsx b/apps/web/components/subscription/try-free-button.tsx index e89f6ba..011c627 100644 --- a/apps/web/components/subscription/try-free-button.tsx +++ b/apps/web/components/subscription/try-free-button.tsx @@ -14,7 +14,7 @@ export function TryFreeButton({ className = '', size = 'lg' }: TryFreeButtonProp return (