From 2f43b8f4631808e58e186d5bfacdee4bc7e40ac8 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 10 Nov 2025 10:04:57 +0530 Subject: [PATCH 1/3] feat(premium): Enhance premium page with advanced UI and interactive design - Add horizontal gradient animation to background elements - Improve Elite Membership promotion banner with enhanced visual effects - Update plan selection section with refined styling and hover interactions - Add subtle scale and shadow effects to plan cards for improved interactivity - Enhance typography and color gradients for better visual hierarchy - Refactor section layouts with improved responsiveness and spacing - Add drop shadow effects to headings and key visual elements - Implement animated gradient background for promotional sections --- app/globals.css | 16 +++ app/premium/page.tsx | 291 +++++++++++++++++++++++++++++++++++-------- 2 files changed, 252 insertions(+), 55 deletions(-) diff --git a/app/globals.css b/app/globals.css index 78dd07a7..2eb873b4 100644 --- a/app/globals.css +++ b/app/globals.css @@ -173,6 +173,22 @@ } /* animates a moving gradient background */ + @keyframes gradient-x { + 0%, 100% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + } + /* animates gradient horizontally */ + + .animate-gradient-x { + background-size: 200% 200%; + animation: gradient-x 3s ease infinite; + } + /* Applies horizontal gradient animation */ + @keyframes fadeIn { from { opacity: 0; diff --git a/app/premium/page.tsx b/app/premium/page.tsx index 44803a50..ca103100 100644 --- a/app/premium/page.tsx +++ b/app/premium/page.tsx @@ -9,7 +9,7 @@ import Footer from '@/components/footer'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; -import { Check, Crown, Star, Sparkles, Zap, Shield, ArrowRight, CheckCircle } from 'lucide-react'; +import { Check, Crown, Star, Sparkles, Zap, Shield, ArrowRight, CheckCircle, HelpCircle } from 'lucide-react'; import { apiFetch } from '@/lib/api-fetch'; interface PremiumPlan { @@ -381,31 +381,32 @@ export default function PremiumPage() { {/* Elite Membership Promotion Banner */} -
-
+
+
+
- -

+ +

Elite Membership - Not For Everyone

- +

Join the exclusive circle of leaders, builders, and future innovators

-
- +
+ Elite Member Status
-
- +
+ Invitation-Only Access
-
- +
+ Prestige & Excellence
@@ -431,7 +432,10 @@ export default function PremiumPage() {

- Choose Your Plan + Choose Your{' '} + + Plan +

Exclusive membership for leaders, builders, and future innovators @@ -444,7 +448,7 @@ export default function PremiumPage() {

-
+
{premiumPlans.map((plan) => { const isProcessing = processingPlans.has(plan.id); const isFree = plan.id === 'free'; @@ -452,14 +456,10 @@ export default function PremiumPage() { return (
{/* Background decoration for popular plan */} @@ -468,22 +468,27 @@ export default function PremiumPage() { )} {plan.popular && ( -
- - +
+ + MOST POPULAR
)} - {plan.savings && ( + {plan.savings && !plan.popular && (
-
-
- - {plan.savings} - -
+ + 💰 {plan.savings} + +
+ )} + + {plan.savings && plan.popular && ( +
+ + 💰 {plan.savings} +
)} @@ -557,25 +562,28 @@ export default function PremiumPage() { ) : ( )} @@ -587,27 +595,200 @@ export default function PremiumPage() { })}
- {/* Trust indicators */} -
-

Trusted by thousands of developers

-
-
- - Secure Payments + {/* Enhanced Trust indicators */} +
+

+ Trusted by 2,000+ developers across India +

+ +
+
+
+ +
+ Secure Payments + 256-bit SSL encryption via Razorpay
-
- - Instant Activation + +
+
+ +
+ Instant Activation + Premium features unlock immediately
-
- - Cancel Anytime + +
+
+ +
+ 7-Day Guarantee + Not satisfied? Get a full refund
+ {/* Testimonials Section */} +
+
+
+

+ What Our Premium Members Say +

+

+ Join 500+ developers who upgraded their careers +

+
+ +
+ +
+
+ RS +
+
+
Rahul Sharma
+
Full-Stack Developer
+
+
+ +
+ {[...Array(5)].map((_, i) => ( + + ))} +
+ +

“Premium membership helped me land my dream job! The 4x points and exclusive resources were game-changers.”

+
+ + +
+
+ PP +
+
+
Priya Patel
+
CS Student
+
+
+ +
+ {[...Array(5)].map((_, i) => ( + + ))} +
+ +

“Best investment I made for my coding journey. Priority support is incredible!”

+
+ + +
+
+ AM +
+
+
Arjun Mehta
+
Startup Founder
+
+
+ +
+ {[...Array(5)].map((_, i) => ( + + ))} +
+ +

“The personal mentorship alone is worth 10x the price. Highly recommended!”

+
+
+
+
+ + {/* FAQ Section */} +
+
+

+ Frequently Asked Questions +

+ +
+
+ + + + What happens when my premium expires? + + â–¼ + +
+ You'll continue to have access to all content you've saved, but won't accumulate new points at the premium multiplier rate. +
+
+ +
+ + + + Can I upgrade from monthly to yearly? + + â–¼ + +
+ Yes! Contact support and we'll help you upgrade with credit for remaining time. +
+
+ +
+ + + + Do you offer refunds? + + â–¼ + +
+ Yes, we offer a 7-day money-back guarantee. No questions asked. +
+
+ +
+ + + + What payment methods do you accept? + + â–¼ + +
+ We accept all major credit/debit cards, UPI, net banking, and wallets via Razorpay. +
+
+ +
+ + + + Is my payment information secure? + + â–¼ + +
+ Absolutely. We use Razorpay's PCI-DSS compliant payment gateway. We never store your card details. +
+
+
+ +
+

Still have questions?

+ +
+
+
+
From eed3d65a33c8a0a5a2d064fc343c63e1fd49ecbf Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 10 Nov 2025 10:26:04 +0530 Subject: [PATCH 2/3] refactor(premium): improve plan badge layout and adjust spacing - Simplified conditional rendering of popular and savings badges - Moved Most Popular badge to top-left with smaller font and inline-flex - Combined Savings badge rendering to a single position at top-right - Updated badge styles for consistent padding and font size - Increased top padding of CardHeader when badges are present - Adjusted margin and padding of trust indicators section for better spacing --- app/premium/page.tsx | 64 ++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 35 deletions(-) diff --git a/app/premium/page.tsx b/app/premium/page.tsx index ca103100..0e15d20c 100644 --- a/app/premium/page.tsx +++ b/app/premium/page.tsx @@ -462,40 +462,34 @@ export default function PremiumPage() { : 'hover:scale-[1.02]' } ${selectedPlan === plan.id ? 'ring-2 ring-primary shadow-lg' : ''} rounded-2xl overflow-hidden`} > - {/* Background decoration for popular plan */} - {plan.popular && ( -
- )} - - {plan.popular && ( -
- - - MOST POPULAR - -
- )} - - {plan.savings && !plan.popular && ( -
- - 💰 {plan.savings} - -
- )} - - {plan.savings && plan.popular && ( -
- - 💰 {plan.savings} - -
- )} - - - - {plan.name} - +{/* Background decoration for popular plan */} +{plan.popular && ( +
+)} + +{/* Most Popular Badge */} +{plan.popular && ( +
+ + + MOST POPULAR + +
+)} + +{/* Savings Badge */} +{plan.savings && ( +
+ + 💰 {plan.savings} + +
+)} + + + + {plan.name} +
@@ -596,7 +590,7 @@ export default function PremiumPage() {
{/* Enhanced Trust indicators */} -
+

Trusted by 2,000+ developers across India

From f6e360675f79fcf788f51e1039ec53d71c93ea67 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 10 Nov 2025 10:33:06 +0530 Subject: [PATCH 3/3] style(premium): enhance FAQ section background with gradient and animations - Replace muted background with a gradient from background to muted to background - Add two animated blurred circles using absolute positioning - Ensure content is positioned relative with higher z-index to overlay animations - Improve visual appeal with slow pulse animation on background elements --- app/premium/page.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/premium/page.tsx b/app/premium/page.tsx index 0e15d20c..02855850 100644 --- a/app/premium/page.tsx +++ b/app/premium/page.tsx @@ -701,8 +701,12 @@ export default function PremiumPage() {
{/* FAQ Section */} -
-
+
+
+
+
+
+

Frequently Asked Questions