Compare commits
13 Commits
version_8
...
version_35
| Author | SHA1 | Date | |
|---|---|---|---|
| c5f8164df2 | |||
| 25f8414c25 | |||
| 6e99d18154 | |||
| 6814c8265e | |||
| 054c045ad2 | |||
| c6466ea0d7 | |||
| 92524e3343 | |||
| df3f02966c | |||
| 1c321c0984 | |||
| d644d82f1e | |||
| 655b4e522c | |||
| 372c9528f5 | |||
| d1a04c75f9 |
@@ -44,7 +44,7 @@ export default function LandingPage() {
|
||||
<div id="hero" data-section="hero">
|
||||
<HeroOverlay
|
||||
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"
|
||||
tagIcon={Sparkles}
|
||||
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"
|
||||
animationType="slide-up"
|
||||
ctaButtonTextClassName="animate-pulse"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -139,6 +139,8 @@ const ContactFaq = ({
|
||||
ctaButtonTextClassName
|
||||
)}
|
||||
/>
|
||||
|
||||
<button className="mt-4 bg-primary-cta text-secondary-cta px-4 py-2 rounded-md">Live Chat</button>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
||||
@@ -151,7 +151,11 @@ const ContactSplitForm = ({
|
||||
<Textarea
|
||||
placeholder={textarea.placeholder}
|
||||
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}
|
||||
rows={textarea.rows || 5}
|
||||
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
|
||||
{...getButtonProps(
|
||||
{ text: buttonText, props: getButtonConfigProps() },
|
||||
|
||||
@@ -108,6 +108,7 @@ const HeroOverlay = ({
|
||||
</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
|
||||
title={title}
|
||||
description={description}
|
||||
@@ -138,6 +139,9 @@ const HeroOverlay = ({
|
||||
buttonTextClassName={cls("text-base", buttonTextClassName)}
|
||||
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>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -21,6 +21,8 @@ type ProductCard = {
|
||||
onFavorite?: () => void;
|
||||
onProductClick?: () => void;
|
||||
isFavorited?: boolean;
|
||||
duration: string;
|
||||
difficulty: string;
|
||||
};
|
||||
|
||||
interface ProductCardItemProps {
|
||||
@@ -40,6 +42,7 @@ const ProductCardItem = memo(({
|
||||
cardNameClassName = "",
|
||||
cardPriceClassName = "",
|
||||
}: ProductCardItemProps) => {
|
||||
const priceNumber = parseFloat(product.price.replace(/[^0-9.-]+/g, ""));
|
||||
return (
|
||||
<article
|
||||
className={cls("card group relative h-full flex flex-col gap-4 cursor-pointer p-4 rounded-theme-capped", cardClassName)}
|
||||
@@ -57,6 +60,12 @@ const ProductCardItem = memo(({
|
||||
|
||||
<div className="relative z-1 flex items-center justify-between gap-4">
|
||||
<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)}>
|
||||
{product.name}
|
||||
</h3>
|
||||
@@ -73,6 +82,11 @@ const ProductCardItem = memo(({
|
||||
<ArrowUpRight className="h-4/10 text-background transition-transform duration-300 group-hover:rotate-45" strokeWidth={1.5} />
|
||||
</button>
|
||||
</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>
|
||||
);
|
||||
});
|
||||
|
||||
@@ -7,6 +7,7 @@ import { cls } from "@/lib/utils";
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import type { ButtonConfig, GridVariant, CardAnimationTypeWith3D, TitleSegment } from "@/components/cardStack/types";
|
||||
import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants";
|
||||
import { Star } from "lucide-react";
|
||||
|
||||
type TeamCardOneGridVariant = Exclude<GridVariant, "timeline">;
|
||||
|
||||
@@ -16,6 +17,7 @@ type TeamMember = {
|
||||
role: string;
|
||||
imageSrc: string;
|
||||
imageAlt?: string;
|
||||
rating: number;
|
||||
};
|
||||
|
||||
interface TeamCardOneProps {
|
||||
@@ -93,6 +95,14 @@ const TeamMemberCard = memo(({
|
||||
{member.role}
|
||||
</p>
|
||||
</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>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
import { memo } from "react";
|
||||
|
||||
|
||||
import FullWidthCarousel from "@/components/cardStack/layouts/carousels/FullWidthCarousel";
|
||||
import MediaContent from "@/components/shared/MediaContent";
|
||||
import Tag from "@/components/shared/Tag";
|
||||
@@ -11,6 +10,7 @@ import { cls, shouldUseInvertedText } from "@/lib/utils";
|
||||
import { useTheme } from "@/providers/themeProvider/ThemeProvider";
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import type { ButtonConfig, TitleSegment, TextboxLayout, InvertedBackground } from "@/components/cardStack/types";
|
||||
import { Star } from "lucide-react";
|
||||
|
||||
type Testimonial = {
|
||||
id: string;
|
||||
@@ -204,6 +204,13 @@ const TestimonialCardFive = ({
|
||||
buttonTextClassName={textBoxButtonTextClassName}
|
||||
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) => (
|
||||
<TestimonialCard
|
||||
key={`${testimonial.id}-${index}`}
|
||||
|
||||
Reference in New Issue
Block a user