Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fc0512483d | |||
| be72b08fa2 |
@@ -43,7 +43,7 @@ export default function LandingPage() {
|
|||||||
|
|
||||||
<div id="hero" data-section="hero">
|
<div id="hero" data-section="hero">
|
||||||
<HeroOverlay
|
<HeroOverlay
|
||||||
title="Master Technology. Shape Your Future."
|
title="Launch Your Tech Career Today"
|
||||||
description="Join thousands of students learning cutting-edge IT skills through hands-on courses and expert instruction. Start your journey to a successful tech career today."
|
description="Join thousands of students learning cutting-edge IT skills through hands-on courses and expert instruction. Start your journey to a successful tech career today."
|
||||||
tag="Premium Tech Education"
|
tag="Premium Tech Education"
|
||||||
tagIcon={Sparkles}
|
tagIcon={Sparkles}
|
||||||
|
|||||||
@@ -23,41 +23,6 @@ type ProductCard = {
|
|||||||
isFavorited?: boolean;
|
isFavorited?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ProductCardOneProps {
|
|
||||||
products: ProductCard[];
|
|
||||||
carouselMode?: "auto" | "buttons";
|
|
||||||
gridVariant: ProductCardOneGridVariant;
|
|
||||||
uniformGridCustomHeightClasses?: string;
|
|
||||||
animationType: CardAnimationType;
|
|
||||||
title: string;
|
|
||||||
titleSegments?: TitleSegment[];
|
|
||||||
description: string;
|
|
||||||
tag?: string;
|
|
||||||
tagIcon?: LucideIcon;
|
|
||||||
buttons?: ButtonConfig[];
|
|
||||||
textboxLayout: TextboxLayout;
|
|
||||||
useInvertedBackground: InvertedBackground;
|
|
||||||
ariaLabel?: string;
|
|
||||||
className?: string;
|
|
||||||
containerClassName?: string;
|
|
||||||
cardClassName?: string;
|
|
||||||
imageClassName?: string;
|
|
||||||
textBoxTitleClassName?: string;
|
|
||||||
textBoxTitleImageWrapperClassName?: string;
|
|
||||||
textBoxTitleImageClassName?: string;
|
|
||||||
textBoxDescriptionClassName?: string;
|
|
||||||
cardNameClassName?: string;
|
|
||||||
cardPriceClassName?: string;
|
|
||||||
gridClassName?: string;
|
|
||||||
carouselClassName?: string;
|
|
||||||
controlsClassName?: string;
|
|
||||||
textBoxClassName?: string;
|
|
||||||
textBoxTagClassName?: string;
|
|
||||||
textBoxButtonContainerClassName?: string;
|
|
||||||
textBoxButtonClassName?: string;
|
|
||||||
textBoxButtonTextClassName?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ProductCardItemProps {
|
interface ProductCardItemProps {
|
||||||
product: ProductCard;
|
product: ProductCard;
|
||||||
shouldUseLightText: boolean;
|
shouldUseLightText: boolean;
|
||||||
@@ -152,48 +117,50 @@ const ProductCardOne = ({
|
|||||||
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
|
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CardStack
|
<>
|
||||||
mode={carouselMode}
|
<span className="inline-block px-3 py-1 text-sm font-medium rounded-full bg-primary-cta/10 text-primary-cta">New Course</span>
|
||||||
gridVariant={gridVariant}
|
<CardStack
|
||||||
uniformGridCustomHeightClasses={uniformGridCustomHeightClasses}
|
mode={carouselMode}
|
||||||
animationType={animationType}
|
gridVariant={gridVariant}
|
||||||
|
uniformGridCustomHeightClasses={uniformGridCustomHeightClasses}
|
||||||
title={title}
|
animationType={animationType}
|
||||||
titleSegments={titleSegments}
|
title={title}
|
||||||
description={description}
|
titleSegments={titleSegments}
|
||||||
tag={tag}
|
description={description}
|
||||||
tagIcon={tagIcon}
|
tag={tag}
|
||||||
buttons={buttons}
|
tagIcon={tagIcon}
|
||||||
textboxLayout={textboxLayout}
|
buttons={buttons}
|
||||||
useInvertedBackground={useInvertedBackground}
|
textboxLayout={textboxLayout}
|
||||||
className={className}
|
useInvertedBackground={useInvertedBackground}
|
||||||
containerClassName={containerClassName}
|
className={className}
|
||||||
gridClassName={gridClassName}
|
containerClassName={containerClassName}
|
||||||
carouselClassName={carouselClassName}
|
gridClassName={gridClassName}
|
||||||
controlsClassName={controlsClassName}
|
carouselClassName={carouselClassName}
|
||||||
textBoxClassName={textBoxClassName}
|
controlsClassName={controlsClassName}
|
||||||
titleClassName={textBoxTitleClassName}
|
textBoxClassName={textBoxClassName}
|
||||||
titleImageWrapperClassName={textBoxTitleImageWrapperClassName}
|
titleClassName={textBoxTitleClassName}
|
||||||
titleImageClassName={textBoxTitleImageClassName}
|
titleImageWrapperClassName={textBoxTitleImageWrapperClassName}
|
||||||
descriptionClassName={textBoxDescriptionClassName}
|
titleImageClassName={textBoxTitleImageClassName}
|
||||||
tagClassName={textBoxTagClassName}
|
descriptionClassName={textBoxDescriptionClassName}
|
||||||
buttonContainerClassName={textBoxButtonContainerClassName}
|
tagClassName={textBoxTagClassName}
|
||||||
buttonClassName={textBoxButtonClassName}
|
buttonContainerClassName={textBoxButtonContainerClassName}
|
||||||
buttonTextClassName={textBoxButtonTextClassName}
|
buttonClassName={textBoxButtonClassName}
|
||||||
ariaLabel={ariaLabel}
|
buttonTextClassName={textBoxButtonTextClassName}
|
||||||
>
|
ariaLabel={ariaLabel}
|
||||||
{products.map((product, index) => (
|
>
|
||||||
<ProductCardItem
|
{products.map((product, index) => (
|
||||||
key={`${product.id}-${index}`}
|
<ProductCardItem
|
||||||
product={product}
|
key={`${product.id}-${index}`}
|
||||||
shouldUseLightText={shouldUseLightText}
|
product={product}
|
||||||
cardClassName={cardClassName}
|
shouldUseLightText={shouldUseLightText}
|
||||||
imageClassName={imageClassName}
|
cardClassName={cardClassName}
|
||||||
cardNameClassName={cardNameClassName}
|
imageClassName={imageClassName}
|
||||||
cardPriceClassName={cardPriceClassName}
|
cardNameClassName={cardNameClassName}
|
||||||
/>
|
cardPriceClassName={cardPriceClassName}
|
||||||
))}
|
/>
|
||||||
</CardStack>
|
))}
|
||||||
|
</CardStack>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user