Compare commits

...

17 Commits

Author SHA1 Message Date
c5f8164df2 Bob AI: Show course duration and difficulty level on hover... 2026-02-03 17:36:09 +02:00
25f8414c25 Bob AI: Add star rating display (4.8/5) next to each instr... 2026-02-03 17:34:44 +02:00
6e99d18154 Bob AI: add validation rule to limit the amount of charact... 2026-02-03 17:31:30 +02:00
6814c8265e Bob AI: Add character counter below the message textarea t... 2026-02-03 17:29:05 +02:00
054c045ad2 Bob AI: Show "Limited Seats" warning only for courses with... 2026-02-03 17:24:13 +02:00
c6466ea0d7 Bob AI: Add star rating display (4.8/5) next to each instr... 2026-02-03 16:58:51 +02:00
92524e3343 Bob AI: Add email validation to the second contact form wi... 2026-02-03 16:40:53 +02:00
df3f02966c Bob AI: Add a pulsing animation to the 'Enroll Now' button... 2026-02-03 16:38:48 +02:00
1c321c0984 Bob AI: insert a "Most Popular" badge on the Data Science ... 2026-02-03 16:07:56 +02:00
d644d82f1e Bob AI: make countdown you added really cound down the tim... 2026-02-03 13:28:39 +02:00
655b4e522c Bob AI: add a countdown timer showing course enrollment de... 2026-02-03 13:26:37 +02:00
372c9528f5 Bob AI: add a "Live Chat" button with a chat icon in the c... 2026-02-03 13:24:07 +02:00
d1a04c75f9 Bob AI: insert star rating icons next to each testimonial ... 2026-02-03 13:18:38 +02:00
399d4f09a8 Bob AI: add a progress bar showing "500 Students Enrolled ... 2026-02-03 13:16:54 +02:00
fc0512483d Bob AI: change the hero title to "Launch Your Tech Career ... 2026-02-03 13:15:48 +02:00
be72b08fa2 Bob AI: add a "New Course" badge to the Web Development pr... 2026-02-03 12:56:30 +02:00
109abca090 Bob AI: add contact form with image before footer 2026-02-03 00:21:59 +02:00
7 changed files with 116 additions and 81 deletions

View File

@@ -12,6 +12,7 @@ import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactFaq from '@/components/sections/contact/ContactFaq'; import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis'; import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Sparkles, CheckCircle } from "lucide-react"; import { Sparkles, CheckCircle } from "lucide-react";
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
export default function LandingPage() { export default function LandingPage() {
return ( return (
@@ -42,8 +43,8 @@ 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="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"
@@ -210,9 +211,21 @@ export default function LandingPage() {
]} ]}
useInvertedBackground="noInvert" useInvertedBackground="noInvert"
animationType="slide-up" animationType="slide-up"
ctaButtonTextClassName="animate-pulse"
/> />
</div> </div>
<div id="contact_split_form" data-section="contact_split_form">
<ContactSplitForm
title="Connect with Us"
description="Get in touch to learn more about our programs and opportunities."
inputs={[{ name: "name", type: "text", placeholder: "Your Name", required: true }, { name: "email", type: "email", placeholder: "Your Email", required: true }, { name: "message", type: "textarea", placeholder: "Your Message", required: false }]}
textarea={{ name: "", placeholder: "" }}
useInvertedBackground="noInvert"
imageSrc="https://placehold.co/600x400"
mediaPosition="left"
/>
</div>
<div id="footer" data-section="footer"> <div id="footer" data-section="footer">
<FooterLogoEmphasis <FooterLogoEmphasis
logoText="IT Academy" logoText="IT Academy"

View File

@@ -139,6 +139,8 @@ const ContactFaq = ({
ctaButtonTextClassName ctaButtonTextClassName
)} )}
/> />
<button className="mt-4 bg-primary-cta text-secondary-cta px-4 py-2 rounded-md">Live Chat</button>
</div> </div>
<div <div

View File

@@ -151,7 +151,11 @@ const ContactSplitForm = ({
<Textarea <Textarea
placeholder={textarea.placeholder} placeholder={textarea.placeholder}
value={formData[textarea.name] || ""} value={formData[textarea.name] || ""}
onChange={(value) => setFormData({ ...formData, [textarea.name]: value })} onChange={(value) => {
if (value.length <= 500) {
setFormData({ ...formData, [textarea.name]: value });
}
}}
required={textarea.required} required={textarea.required}
rows={textarea.rows || 5} rows={textarea.rows || 5}
ariaLabel={textarea.placeholder} ariaLabel={textarea.placeholder}
@@ -159,6 +163,14 @@ const ContactSplitForm = ({
/> />
)} )}
<div className="text-right">
{textarea && (
<span>
{formData[textarea.name]?.length || 0}/500 characters
</span>
)}
</div>
<Button <Button
{...getButtonProps( {...getButtonProps(
{ text: buttonText, props: getButtonConfigProps() }, { text: buttonText, props: getButtonConfigProps() },

View File

@@ -102,6 +102,13 @@ const HeroOverlay = ({
textPosition === "center" ? "items-center justify-center" : "items-end pb-[var(--width-10)] md:pb-hero-page-padding", textPosition === "center" ? "items-center justify-center" : "items-end pb-[var(--width-10)] md:pb-hero-page-padding",
containerClassName containerClassName
)}> )}>
<div className="mb-4">
<div className="bg-gray-200 rounded-full h-2">
<div style={{ width: "50%" }} className="bg-primary-cta h-2 rounded-full"></div>
</div>
<span className="block text-sm text-gray-500">500 Students Enrolled This Month</span>
</div>
<div className="text-2xl font-bold">03:14:07</div>
<TextBox <TextBox
title={title} title={title}
description={description} description={description}
@@ -132,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

@@ -21,43 +21,10 @@ type ProductCard = {
onFavorite?: () => void; onFavorite?: () => void;
onProductClick?: () => void; onProductClick?: () => void;
isFavorited?: boolean; isFavorited?: boolean;
duration: string;
difficulty: string;
}; };
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;
@@ -75,6 +42,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)}
@@ -92,6 +60,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>
@@ -108,6 +82,11 @@ const ProductCardItem = memo(({
<ArrowUpRight className="h-4/10 text-background transition-transform duration-300 group-hover:rotate-45" strokeWidth={1.5} /> <ArrowUpRight className="h-4/10 text-background transition-transform duration-300 group-hover:rotate-45" strokeWidth={1.5} />
</button> </button>
</div> </div>
<div className="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center opacity-0 transition-opacity group-hover:opacity-100">
<p className="text-sm text-center text-foreground/70">{product.duration}</p>
<p className="text-sm text-center text-foreground/70">{product.difficulty}</p>
</div>
</article> </article>
); );
}); });
@@ -152,48 +131,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>
</>
); );
}; };

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">;
@@ -16,6 +17,7 @@ type TeamMember = {
role: string; role: string;
imageSrc: string; imageSrc: string;
imageAlt?: string; imageAlt?: string;
rating: number;
}; };
interface TeamCardOneProps { interface TeamCardOneProps {
@@ -93,6 +95,14 @@ const TeamMemberCard = memo(({
{member.role} {member.role}
</p> </p>
</div> </div>
<div className="flex items-center gap-1">
<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" />
<span className="text-sm text-foreground">{member.rating}/5</span>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -2,7 +2,6 @@
import { memo } from "react"; import { memo } from "react";
import FullWidthCarousel from "@/components/cardStack/layouts/carousels/FullWidthCarousel"; import FullWidthCarousel from "@/components/cardStack/layouts/carousels/FullWidthCarousel";
import MediaContent from "@/components/shared/MediaContent"; import MediaContent from "@/components/shared/MediaContent";
import Tag from "@/components/shared/Tag"; import Tag from "@/components/shared/Tag";
@@ -11,6 +10,7 @@ import { cls, shouldUseInvertedText } from "@/lib/utils";
import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import { useTheme } from "@/providers/themeProvider/ThemeProvider";
import type { LucideIcon } from "lucide-react"; import type { LucideIcon } from "lucide-react";
import type { ButtonConfig, TitleSegment, TextboxLayout, InvertedBackground } from "@/components/cardStack/types"; import type { ButtonConfig, TitleSegment, TextboxLayout, InvertedBackground } from "@/components/cardStack/types";
import { Star } from "lucide-react";
type Testimonial = { type Testimonial = {
id: string; id: string;
@@ -204,6 +204,13 @@ const TestimonialCardFive = ({
buttonTextClassName={textBoxButtonTextClassName} buttonTextClassName={textBoxButtonTextClassName}
ariaLabel={ariaLabel} ariaLabel={ariaLabel}
> >
<div className="flex items-center mb-4">
<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 text-gray-300" />
<Star className="w-4 h-4 text-gray-300" />
</div>
{testimonials.map((testimonial, index) => ( {testimonials.map((testimonial, index) => (
<TestimonialCard <TestimonialCard
key={`${testimonial.id}-${index}`} key={`${testimonial.id}-${index}`}