From 8dc4767c65a288bd8900c9c24b57c659e7095138 Mon Sep 17 00:00:00 2001 From: devmc-ee Date: Sun, 8 Jun 2025 17:16:48 +0300 Subject: [PATCH] B2B-88: cleans front page --- app/(marketing)/page.tsx | 123 +----------------- .../src/makerkit/marketing/feature-card.tsx | 28 ---- .../src/makerkit/marketing/feature-grid.tsx | 18 --- .../makerkit/marketing/feature-showcase.tsx | 51 -------- packages/ui/src/makerkit/marketing/index.tsx | 5 - packages/ui/src/makerkit/marketing/pill.tsx | 59 --------- .../src/makerkit/marketing/secondary-hero.tsx | 42 ------ 7 files changed, 3 insertions(+), 323 deletions(-) delete mode 100644 packages/ui/src/makerkit/marketing/feature-card.tsx delete mode 100644 packages/ui/src/makerkit/marketing/feature-grid.tsx delete mode 100644 packages/ui/src/makerkit/marketing/feature-showcase.tsx delete mode 100644 packages/ui/src/makerkit/marketing/pill.tsx delete mode 100644 packages/ui/src/makerkit/marketing/secondary-hero.tsx diff --git a/app/(marketing)/page.tsx b/app/(marketing)/page.tsx index 2aa6dde..ac7b2ed 100644 --- a/app/(marketing)/page.tsx +++ b/app/(marketing)/page.tsx @@ -1,24 +1,13 @@ -import Image from 'next/image'; import Link from 'next/link'; -import { ArrowRightIcon, LayoutDashboard } from 'lucide-react'; +import { ArrowRightIcon } from 'lucide-react'; -import { PricingTable } from '@kit/billing-gateway/marketing'; import { CtaButton, - FeatureCard, - FeatureGrid, - FeatureShowcase, - FeatureShowcaseIconContainer, Hero, - Pill, - PillActionButton, - SecondaryHero, } from '@kit/ui/marketing'; import { Trans } from '@kit/ui/trans'; -import billingConfig from '~/config/billing.config'; -import pathsConfig from '~/config/paths.config'; import { withI18n } from '~/lib/i18n/with-i18n'; function Home() { @@ -26,126 +15,20 @@ function Home() {
- The SaaS Starter Kit for ambitious developers - - - - - - - } title={ <> - The ultimate SaaS Starter - for your next project + Med Report } subtitle={ - Build and Ship a SaaS faster than ever before with the next-gen - SaaS Starter Kit. Ship your SaaS in days, not months. + Lihtne, mugav ja kiire ülevaade Sinu tervise seisundist } cta={} - image={ - {`App - } />
-
-
- - - The ultimate SaaS Starter Kit - - .{' '} - - Unleash your creativity and build your SaaS faster than ever - with Makerkit. - - - } - icon={ - - - All-in-one solution - - } - > - - - - - - - - - - - - -
-
- -
-
- No credit card required.} - heading="Fair pricing for all types of businesses" - subheading="Get started on our free plan and upgrade when you are ready." - /> - -
- -
-
-
); } diff --git a/packages/ui/src/makerkit/marketing/feature-card.tsx b/packages/ui/src/makerkit/marketing/feature-card.tsx deleted file mode 100644 index e1da011..0000000 --- a/packages/ui/src/makerkit/marketing/feature-card.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react'; - -import { cn } from '../../lib/utils'; -import { CardDescription, CardHeader, CardTitle } from '../../shadcn/card'; - -interface FeatureCardProps extends React.HTMLAttributes { - label: string; - description: string; -} - -export const FeatureCard: React.FC = ({ - className, - label, - description, - ...props -}) => { - return ( -
- - {label} - - - {description} - - -
- ); -}; diff --git a/packages/ui/src/makerkit/marketing/feature-grid.tsx b/packages/ui/src/makerkit/marketing/feature-grid.tsx deleted file mode 100644 index 4723b0c..0000000 --- a/packages/ui/src/makerkit/marketing/feature-grid.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react'; - -import { cn } from '../../lib/utils'; - -export const FeatureGrid: React.FC> = - function FeatureGridComponent({ className, children, ...props }) { - return ( -
- {children} -
- ); - }; diff --git a/packages/ui/src/makerkit/marketing/feature-showcase.tsx b/packages/ui/src/makerkit/marketing/feature-showcase.tsx deleted file mode 100644 index 36c8967..0000000 --- a/packages/ui/src/makerkit/marketing/feature-showcase.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react'; - -import { cn } from '../../lib/utils'; - -interface FeatureShowcaseProps extends React.HTMLAttributes { - heading: React.ReactNode; - icon?: React.ReactNode; -} - -export const FeatureShowcase: React.FC = - function FeatureShowcaseComponent({ - className, - heading, - icon, - children, - ...props - }) { - return ( -
-
- {icon &&
{icon}
} -

- {heading} -

-
- {children} -
- ); - }; - -export function FeatureShowcaseIconContainer( - props: React.PropsWithChildren<{ - className?: string; - }>, -) { - return ( -
-
- {props.children} -
-
- ); -} diff --git a/packages/ui/src/makerkit/marketing/index.tsx b/packages/ui/src/makerkit/marketing/index.tsx index 9423639..fa9299c 100644 --- a/packages/ui/src/makerkit/marketing/index.tsx +++ b/packages/ui/src/makerkit/marketing/index.tsx @@ -1,15 +1,10 @@ export * from './hero-title'; -export * from './pill'; export * from './gradient-secondary-text'; export * from './gradient-text'; export * from './hero'; -export * from './secondary-hero'; export * from './cta-button'; export * from './header'; export * from './footer'; -export * from './feature-showcase'; -export * from './feature-grid'; -export * from './feature-card'; export * from './newsletter-signup'; export * from './newsletter-signup-container'; export * from './coming-soon'; diff --git a/packages/ui/src/makerkit/marketing/pill.tsx b/packages/ui/src/makerkit/marketing/pill.tsx deleted file mode 100644 index 42820f6..0000000 --- a/packages/ui/src/makerkit/marketing/pill.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { Slot, Slottable } from '@radix-ui/react-slot'; - -import { cn } from '../../lib/utils'; -import { GradientSecondaryText } from './gradient-secondary-text'; - -export const Pill: React.FC< - React.HTMLAttributes & { - label?: React.ReactNode; - asChild?: boolean; - } -> = function PillComponent({ className, asChild, ...props }) { - const Comp = asChild ? Slot : 'h3'; - - return ( - - {props.label && ( - - {props.label} - - )} - - - {props.children} - - - - ); -}; - -export const PillActionButton: React.FC< - React.HTMLAttributes & { - asChild?: boolean; - } -> = ({ asChild, ...props }) => { - const Comp = asChild ? Slot : 'button'; - - return ( - - {props.children} - - ); -}; diff --git a/packages/ui/src/makerkit/marketing/secondary-hero.tsx b/packages/ui/src/makerkit/marketing/secondary-hero.tsx deleted file mode 100644 index f38be68..0000000 --- a/packages/ui/src/makerkit/marketing/secondary-hero.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import { cn } from '../../lib/utils'; -import { Heading } from '../../shadcn/heading'; - -interface SecondaryHeroProps extends React.HTMLAttributes { - pill?: React.ReactNode; - heading: React.ReactNode; - subheading: React.ReactNode; -} - -export const SecondaryHero: React.FC = - function SecondaryHeroComponent({ - className, - pill, - heading, - subheading, - children, - ...props - }) { - return ( -
- {pill} - -
- - {heading} - - -

- {subheading} -

-
- - {children} -
- ); - };