This commit is contained in:
smhk1376 committed 2026-10-15 10:10:30 +03:30
1 parent a99af426db
commit 8886aa8640
91 files changed
+2823 -773

No files matched your search

@@ -7,11 +7,7 @@ import { PageHero } from "@/components/molecules/PageHero";
import { CourseRegisterGate } from "@/components/organisms/CourseRegisterGate";
import { Separator } from "@/components/ui/separator";
import type { Course } from "@/lib/types";
import {
categoryLabel,
formatCoursePrice,
formatLabel,
} from "@/lib/labels";
import { formatCoursePrice, formatLabel } from "@/lib/labels";
import { JsonLd, courseJsonLd } from "@/lib/seo/json-ld";
export type CourseDetailLabels = {
@@ -40,11 +36,13 @@ export function CourseDetailTemplate({
labels: CourseDetailLabels;
}) {
const priceLabel = formatCoursePrice(course.price);
const categoryText =
course.categories.map((c) => c.label).join(" · ") || "—";
const specs = [
{
icon: Tag,
label: labels.category,
value: categoryLabel(course.category),
value: categoryText,
},
{
icon: Layers,
@@ -77,7 +75,11 @@ export function CourseDetailTemplate({
<PageHero
title={course.title}
intro={course.summary}
eyebrow={categoryLabel(course.category)}
eyebrow={
course.categories[0]?.label ??
course.tags[0]?.label ??
undefined
}
imageUrl={course.posterImageUrl}
/>
@@ -7,7 +7,7 @@ import { Section } from "@/components/atoms/Section";
import { QuoteBlock } from "@/components/molecules/Cards";
import { SurfaceCard } from "@/components/molecules/SurfaceCard";
import { CategoryCourseExplorer } from "@/components/organisms/CategoryCourseExplorer";
import type { Course, SiteStat, Testimonial } from "@/lib/types";
import type { Course, SiteStat, TaxonomyRef, Testimonial } from "@/lib/types";
import { AnimatedMetric } from "@/components/atoms/AnimatedMetric";
export function ProfessionalLandingTemplate({
@@ -15,7 +15,10 @@ export function ProfessionalLandingTemplate({
courses,
stats,
testimonials,
filterCategories,
filterTags,
initialTag = "",
initialCategory = "",
}: {
labels: {
pathways: string;
@@ -33,7 +36,10 @@ export function ProfessionalLandingTemplate({
courses: Course[];
stats: SiteStat[];
testimonials: Testimonial[];
filterCategories: TaxonomyRef[];
filterTags: TaxonomyRef[];
initialTag?: string;
initialCategory?: string;
}) {
return (
<main id="main-content">
@@ -102,10 +108,13 @@ export function ProfessionalLandingTemplate({
{labels.pathways}
</p>
<CategoryCourseExplorer
key={initialTag || "all"}
key={`${initialTag}|${initialCategory}`}
courses={courses}
findLabel={labels.findProgram}
filterCategories={filterCategories}
filterTags={filterTags}
initialTag={initialTag}
initialCategory={initialCategory}
/>
</Container>
</Section>