From d02248e0b4d9a4a1b53c73bbe0d811cb9e55f0ff Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 1 Jul 2025 13:55:01 +0100 Subject: [PATCH] Update course landing page banner --- src/components/SQLCourse/BuyButton.tsx | 35 +------- .../SQLCourse/CourseDiscountBanner.tsx | 79 ------------------- src/components/SQLCourse/SQLCoursePage.tsx | 2 - src/components/SQLCourseVariant/BuyButton.tsx | 38 +-------- 4 files changed, 4 insertions(+), 150 deletions(-) delete mode 100644 src/components/SQLCourse/CourseDiscountBanner.tsx diff --git a/src/components/SQLCourse/BuyButton.tsx b/src/components/SQLCourse/BuyButton.tsx index 7434ecce6..fab5b3486 100644 --- a/src/components/SQLCourse/BuyButton.tsx +++ b/src/components/SQLCourse/BuyButton.tsx @@ -1,10 +1,7 @@ import { useMutation, useQuery } from '@tanstack/react-query'; import { - ArrowRightIcon, - CheckIcon, - CopyIcon, - MousePointerClick, - Play, + ArrowRightIcon, MousePointerClick, + Play } from 'lucide-react'; import { useEffect, useState } from 'react'; import { cn } from '../../lib/classname'; @@ -24,7 +21,6 @@ import { useToast } from '../../hooks/use-toast'; import { httpPost } from '../../lib/query-http'; import { deleteUrlParam, getUrlParams } from '../../lib/browser'; import { VideoModal } from '../VideoModal'; -import { sqlCouponCode } from './CourseDiscountBanner'; import { useCopyText } from '../../hooks/use-copy-text'; export const SQL_COURSE_SLUG = 'sql'; @@ -218,31 +214,6 @@ export function BuyButton(props: BuyButtonProps) { setIsLoginPopupOpen(false)} /> ); - const mainCouponAlert = ( -
-
-
- - 🎁 30% OFF with code{' '} - - -
-
- ); - if (variant === 'main') { return (
@@ -254,8 +225,6 @@ export function BuyButton(props: BuyButtonProps) { /> )}
- {!isLoadingPricing && !isAlreadyEnrolled && mainCouponAlert} - - -
- ); -} diff --git a/src/components/SQLCourse/SQLCoursePage.tsx b/src/components/SQLCourse/SQLCoursePage.tsx index a7dc2bd36..10239e8e3 100644 --- a/src/components/SQLCourse/SQLCoursePage.tsx +++ b/src/components/SQLCourse/SQLCoursePage.tsx @@ -28,7 +28,6 @@ import { PlatformDemo } from './PlatformDemo'; import { ReviewsSection } from './ReviewsSection'; import { SectionHeader } from './SectionHeader'; import { Spotlight } from './Spotlight'; -import { CourseDiscountBanner } from './CourseDiscountBanner'; type ChapterData = { icon: React.ReactNode; @@ -245,7 +244,6 @@ export const sqlCourseChapters: ChapterData[] = [ export function SQLCoursePage() { return ( <> -