import Link from "next/link"; import Image from "next/image"; import { Building2, Compass, Network } from "lucide-react"; import { Container } from "@/components/atoms/Container"; import { DotCta } from "@/components/atoms/DotCta"; import { Heading } from "@/components/atoms/Heading"; import { MetamorphField } from "@/components/atoms/MetamorphField"; import { Section } from "@/components/atoms/Section"; import { buttonVariants } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { cn } from "@/lib/utils"; import { HeroFeatured } from "@/components/molecules/HeroFeatured"; import { IntersectionCard } from "@/components/molecules/Cards"; import { SectionHeader } from "@/components/molecules/SectionHeader"; import { StatGrid } from "@/components/molecules/StatGrid"; import type { Article, Course, IntersectionTopic, SiteStat, } from "@/lib/types"; import { formatCoursePrice, formatLabel } from "@/lib/labels"; import { siteMission } from "@/lib/site-config"; export type HomeLabels = { executiveLabel: string; exploreOurPrograms: string; ideasTitle: string; eventsTitle: string; seeAllEvents: string; intersectionsTitle: string; intersectionsSubtitle: string; moreThanDegree: string; moreThanDegreeBody: string; keepExploring: string; hireTitle: string; hireBody: string; registerCta: string; missionTitle: string; findUsTitle: string; ideasEyebrow: string; linksTitle: string; exploreCourses?: string; }; const ideas = [ { icon: Compass, title: "پشتوانه علمی دانشگاه صنعتی امیرکبیر", text: "آموزش مدیریت در بستر دانشگاه صنعتی امیرکبیر، با تکیه بر دانش تخصصی، استدلال علمی و نگاه نقادانه.", }, { icon: Building2, title: "پیوند مدیریت و فناوری", text: "نگاهی میان‌رشته‌ای به داده و هوش مصنوعی؛ با توجه به تأثیر آن‌ها بر تصمیم‌های مدیریتی، مدل‌های کسب‌وکار و آینده صنعت.", }, { icon: Network, title: "تمرکز بر مسائل صنعت", text: "توسعه توانمندی مدیران با توجه به چالش‌های اجرای نوآوری، تغییر فرایندها و بهبود عملکرد سازمان.", }, ]; export function HomeHero({ featured, eyebrow, }: { featured: Article | null; eyebrow: string; }) { return ( ); } export function HomeIdeas() { return (
{ideas.map((item) => (
{item.title}

{item.text}

))}
); } export function HomeCourseSearch({ courses, exploreLabel = "مشاهده دوره‌ها", }: { courses: Course[]; exploreLabel?: string; }) { return (
{courses.length === 0 ? (

در حال حاضر دوره‌ای برای نمایش نیست.

) : (
{courses.map((course) => { const priceLabel = formatCoursePrice(course.price); return (
{course.title}
{course.title} {course.summary}
{course.durationHours ? `${course.durationHours} ساعت · ${formatLabel(course.format)}` : formatLabel(course.format)} {priceLabel ? ( {priceLabel} ) : null}
); })}
)}
{exploreLabel}
); } export function HomeApproach() { return (
آشنایی با رویکرد ما
همکاری مدرسان و متخصصان در محیط دانشگاه
); } export function HomeRest({ labels, intersections, stats, }: { labels: HomeLabels; intersections: IntersectionTopic[]; stats: SiteStat[]; }) { return ( <>
{intersections.map((topic) => ( ))}
{labels.registerCta}
); }