Compare commits

...

7 Commits

4 changed files with 21 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ export default function LandingPage() {
<div id="hero" data-section="hero"> <div id="hero" data-section="hero">
<HeroOverlay <HeroOverlay
title="Launch Your Tech Career Today" 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="Enrollment deadline: 5 days left"
tag="Premium Tech Education" tag="Premium Tech Education"
tagIcon={Sparkles} tagIcon={Sparkles}
imageSrc="http://img.b2bpic.net/free-photo/college-students-different-ethnicities-cramming_23-2149891341.jpg" imageSrc="http://img.b2bpic.net/free-photo/college-students-different-ethnicities-cramming_23-2149891341.jpg"
@@ -211,6 +211,7 @@ export default function LandingPage() {
]} ]}
useInvertedBackground="noInvert" useInvertedBackground="noInvert"
animationType="slide-up" animationType="slide-up"
ctaButtonTextClassName="animate-pulse"
/> />
</div> </div>

View File

@@ -108,6 +108,7 @@ const HeroOverlay = ({
</div> </div>
<span className="block text-sm text-gray-500">500 Students Enrolled This Month</span> <span className="block text-sm text-gray-500">500 Students Enrolled This Month</span>
</div> </div>
<div className="text-2xl font-bold">03:14:07</div>
<TextBox <TextBox
title={title} title={title}
description={description} description={description}
@@ -138,6 +139,9 @@ const HeroOverlay = ({
buttonTextClassName={cls("text-base", buttonTextClassName)} buttonTextClassName={cls("text-base", buttonTextClassName)}
center={textPosition === "center"} center={textPosition === "center"}
/> />
<div className="mt-4">
<button className="bg-primary-cta text-secondary-cta px-4 py-2 rounded-full">Enroll Now</button>
</div>
</div> </div>
</section> </section>
); );

View File

@@ -40,6 +40,7 @@ const ProductCardItem = memo(({
cardNameClassName = "", cardNameClassName = "",
cardPriceClassName = "", cardPriceClassName = "",
}: ProductCardItemProps) => { }: ProductCardItemProps) => {
const priceNumber = parseFloat(product.price.replace(/[^0-9.-]+/g, ""));
return ( return (
<article <article
className={cls("card group relative h-full flex flex-col gap-4 cursor-pointer p-4 rounded-theme-capped", cardClassName)} className={cls("card group relative h-full flex flex-col gap-4 cursor-pointer p-4 rounded-theme-capped", cardClassName)}
@@ -57,6 +58,12 @@ const ProductCardItem = memo(({
<div className="relative z-1 flex items-center justify-between gap-4"> <div className="relative z-1 flex items-center justify-between gap-4">
<div className="flex-1 min-w-0"> <div className="flex-1 min-w-0">
{product.name?.includes("Data Science") && (
<span className="inline-block px-3 py-1 text-sm font-medium rounded-full bg-primary-cta/10 text-primary-cta">Most Popular</span>
)}
{priceNumber < 14000 && (
<span className="inline-block px-3 py-1 text-sm font-medium rounded-full bg-warning-cta/10 text-warning-cta">Limited Seats</span>
)}
<h3 className={cls("text-base font-medium truncate leading-[1.3]", shouldUseLightText ? "text-background" : "text-foreground", cardNameClassName)}> <h3 className={cls("text-base font-medium truncate leading-[1.3]", shouldUseLightText ? "text-background" : "text-foreground", cardNameClassName)}>
{product.name} {product.name}
</h3> </h3>

View File

@@ -7,6 +7,7 @@ import { cls } from "@/lib/utils";
import type { LucideIcon } from "lucide-react"; import type { LucideIcon } from "lucide-react";
import type { ButtonConfig, GridVariant, CardAnimationTypeWith3D, TitleSegment } from "@/components/cardStack/types"; import type { ButtonConfig, GridVariant, CardAnimationTypeWith3D, TitleSegment } from "@/components/cardStack/types";
import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants";
import { Star } from "lucide-react";
type TeamCardOneGridVariant = Exclude<GridVariant, "timeline">; type TeamCardOneGridVariant = Exclude<GridVariant, "timeline">;
@@ -168,6 +169,13 @@ const TeamCardOne = ({
buttonTextClassName={textBoxButtonTextClassName} buttonTextClassName={textBoxButtonTextClassName}
ariaLabel={ariaLabel} ariaLabel={ariaLabel}
> >
<div className="flex items-center gap-1 mt-2">
<Star className="w-4 h-4 text-yellow-400" />
<Star className="w-4 h-4 text-yellow-400" />
<Star className="w-4 h-4 text-yellow-400" />
<Star className="w-4 h-4" />
<Star className="w-4 h-4" />
</div>
{members.map((member, index) => ( {members.map((member, index) => (
<TeamMemberCard <TeamMemberCard
key={`${member.id}-${index}`} key={`${member.id}-${index}`}