From c67ace8edb3f6850fc5aef7d6c9c1db3994a70c1 Mon Sep 17 00:00:00 2001 From: priyanshuvish Date: Fri, 26 Sep 2025 20:09:19 +0530 Subject: [PATCH] onlone learning and programme deatail --- src/components/LearningOnline.tsx | 610 ++++++----------------------- src/components/ProgrammeDetail.tsx | 108 +---- 2 files changed, 127 insertions(+), 591 deletions(-) diff --git a/src/components/LearningOnline.tsx b/src/components/LearningOnline.tsx index 37262c4..ca3d425 100644 --- a/src/components/LearningOnline.tsx +++ b/src/components/LearningOnline.tsx @@ -32,9 +32,7 @@ import { Grid, List, X, - DollarSign, - ShoppingCart, - ArrowLeft + DollarSign } from 'lucide-react'; import { motion } from 'motion/react'; import { navigateTo } from './Router'; @@ -168,6 +166,20 @@ const featuredCourses = [ price: '₹14,857', originalPrice: '₹19,007' }, + { + id: 'ldp-foundations', + title: 'Strategic Leadership Development Program: Foundations', + thumbnail: 'https://images.unsplash.com/photo-1588912914078-2fe5224fd8b8?w=400&h=250&fit=crop', + duration: '40 hours', + level: 'Intermediate', + format: 'Self-paced', + rating: 4.8, + participants: '1,247+', + category: 'Leadership Development', + description: 'Master the fundamentals of effective leadership through evidence-based practices and real-world case studies.', + price: '$599', + originalPrice: '$799' + }, { id: '9', title: 'Strategic Risk Analysis', @@ -184,30 +196,6 @@ const featuredCourses = [ } ]; -// Learning Methodology Points -const methodologyPoints = [ - { - icon: Target, - title: 'Self-awareness through leadership orientations', - description: 'Understand your natural leadership style and how to adapt it for different situations and team dynamics.' - }, - { - icon: BookOpen, - title: 'Research-backed frameworks', - description: 'Learn from proven methodologies based on decades of leadership research and real-world application.' - }, - { - icon: Zap, - title: 'Practice-oriented skill development', - description: 'Apply concepts immediately through interactive exercises, simulations, and hands-on projects.' - }, - { - icon: MessageCircle, - title: 'Expert-led conversations', - description: 'Engage with seasoned leaders and industry experts through live sessions and mentoring opportunities.' - } -]; - export function LearningOnline() { const [searchTerm, setSearchTerm] = useState(''); const [selectedCategory, setSelectedCategory] = useState('All Categories'); @@ -342,53 +330,43 @@ export function LearningOnline() { return (
{/* Hero Banner – Digital Learning - Blog Style */} -
-
-
-
+
+
+
-
-
-
- {/* Back Navigation */} -
- +
+
+ + {/* Eyebrow Text */} +
+
+ DIGITAL LEARNING PLATFORM
-
-

- Grow as a Leader, Anytime -

-
+ {/* Main Header */} +

+ Discover Your Leadership
Potential Online +

-

- - Our Leadership Courses are designed to build your leadership abilities through targeted, structured packages. Each course increases self-awareness of your leadership style and provides practical insights to strengthen your skills. Courses feature curated content focused on specific abilities, including our proprietary Leadership Profilers, conceptual videos, leader webcasts, and supplemental resources. - -

- -
- navigateTo('/contact?topic=management-development')} - ariaLabel="Talk to us about management development" - className="primary-cta-button-blue cta-text-white" - /> + {/* Sub Text */} +
+

+ Our Leadership Courses are structured packages which are targeted towards building your leadership abilities. Each course is a wholesome package which not only helps you gain awareness about your leadership style but also gives insights to build your leadership abilities. Every course contains curated content targeted towards a specific leadership ability. Each course consists of our proprietary profiling instruments – Leadership Profilers, conceptual videos and experiences of leaders – Leadership Webcasts, as well as additional content to supplement learning. +

-
+
@@ -420,8 +398,8 @@ export function LearningOnline() {
- + + {/* Bottom Row - Price and Button */} +
+
+ {course.price} + {course.originalPrice} +
+ +
+
))} @@ -823,24 +728,26 @@ export function LearningOnline() { {/* Pagination */} {totalPages > 1 && ( -
+
-
+
{Array.from({ length: totalPages }, (_, i) => i + 1).map((page) => ( @@ -850,9 +757,11 @@ export function LearningOnline() {
@@ -868,283 +777,8 @@ export function LearningOnline() { { }} // Not used anymore recentlyAddedItem={recentlyAddedItem} /> - - {/* Our Approach Section - Standard Design Pattern */} -
-
-
- - {/* Left Side - Title & Description */} -
- - -

- Orientation-Based Learning -

- -

- Our unique methodology focuses on understanding your natural leadership orientation and building skills that align with your authentic style while expanding your capabilities across all dimensions. -

- - {/* Key Stats */} -
-
-
95%
-
Leader Effectiveness
-
-
-
20+
-
Years Research
-
-
- - {/* Primary CTA Button */} -
- navigateTo('/assessment')} - icon={Target} - /> -
-
- - {/* Right Side - Methodology Points */} -
-
- {methodologyPoints.map((point, index) => { - const IconComponent = point.icon; - return ( -
- - -
-
- -
- -
-

- {point.title} -

- -

- {point.description} -

-
-
-
-
-
- ); - })} -
- - -
-
-
-
- - {/* Corporate Solutions CTA */} - {/* CTA Banner Section - Enterprise Solutions */} -
-
-
- - {/* Left Column - CTA Content */} - - - -

- Scale Leadership Excellence Across Your Enterprise -

- -

- Empower your leadership pipeline with our comprehensive online learning platform. Drive measurable results with scalable solutions designed for modern organizations. -

- - {/* Key Benefits */} -
- {[ - { icon: Building2, text: 'Enterprise-grade platform' }, - { icon: TrendingUp, text: 'Real-time analytics & ROI' }, - { icon: Users, text: 'Custom learning cohorts' }, - { icon: Globe, text: 'Global deployment ready' } - ].map((benefit, index) => { - const IconComponent = benefit.icon; - return ( - -
- -
- - {benefit.text} - -
- ); - })} -
- - {/* Social Proof Stats */} -
-
-
500+
-
Companies
-
-
-
10K+
-
Leaders
-
-
-
92%
-
Completion
-
-
-
4.8★
-
Rating
-
-
- - {/* CTA Button */} -
- navigateTo('/contact?topic=corporate-learning')} - icon={Calendar} - ariaLabel="Schedule an enterprise demo with our team" - /> -
-
- - {/* Right Column - Hero Image */} - -
- - - {/* Overlay with gradient */} -
- - {/* Floating Badge */} -
-
-
- Live Training Session -
-
- - {/* Bottom Achievement Badge */} -
-
-
95%
-
Engagement Rate
-
-
-
-
-
-
-
- - - {/* Individual Learning CTA Banner Section - Landing Page Style */} -
- {/* Background Image */} -
- - - {/* Subtle dark overlay for overall image */} -
- - {/* Gradient overlay for better text readability */} -
-
- - {/* Content Container */} -
- {/* CTA Content Block */} -
- {/* Branded Tag */} - - - {/* Main Headline */} -

- Ready to transform your - - {" "}leadership?{" "} - -

- - {/* CTA Button - Yellow variant for online courses */} - navigateTo('/assessment')} - ariaLabel="Start your free leadership assessment" - className="cta-banner-yellow" - icon={Target} - /> - - {/* Supporting Text */} -

- Connect with our leadership experts to discuss your organization's specific development needs. -

-
-
-
-
); } \ No newline at end of file diff --git a/src/components/ProgrammeDetail.tsx b/src/components/ProgrammeDetail.tsx index 3c8926f..69c20cc 100644 --- a/src/components/ProgrammeDetail.tsx +++ b/src/components/ProgrammeDetail.tsx @@ -42,7 +42,7 @@ import { ImageWithFallback } from './figma/ImageWithFallback'; import { BrandedTag } from './about/BrandedTag'; import { PrimaryCTAButton } from './PrimaryCTAButton'; import { useCart } from './CartContext'; -import { toast } from 'sonner'; +import { toast } from 'sonner@2.0.3'; // Mock data structure matching API contracts const mockProgrammeData = { @@ -764,7 +764,7 @@ export function ProgrammeDetail({ slug }: ProgrammeDetailProps) {
{/* Enhanced Tabs List */} - + FAQ - - Enroll - {/* Overview Tab - Who will benefit from this course? */} @@ -1298,99 +1292,7 @@ export function ProgrammeDetail({ slug }: ProgrammeDetailProps) {
- {/* Enhanced Enrollment Options */} - -
-
-

Choose Your Enrollment Option

-

- Select the enrollment option that best fits your learning needs and organizational requirements. -

-
- -
- {mockEnrollmentOptions.map((option, index) => ( - - {option.popular && ( -
- - Most Popular - -
- )} - -
-

{option.title}

-
-
- {option.price} - {option.originalPrice && ( - {option.originalPrice} - )} -
- {option.priceNote && ( -

{option.priceNote}

- )} -
-
- -
    - {option.features.map((feature, featureIndex) => ( -
  • - - {feature} -
  • - ))} -
- - -
-
- ))} -
-
-
+
@@ -1473,7 +1375,7 @@ export function ProgrammeDetail({ slug }: ProgrammeDetailProps) { variant="outline" size="sm" className="flex-1 rounded-xl border-2 hover:bg-gray-50 transition-all duration-200" - onClick={(e: React.MouseEvent) => { + onClick={(e) => { e.stopPropagation(); // Add to cart functionality }} @@ -1483,7 +1385,7 @@ export function ProgrammeDetail({ slug }: ProgrammeDetailProps) {