Update database connection details and enhance course management functionality. Changed DATABASE_URL in deployment workflow to a direct connection string. Added course pruning logic in seed script to maintain database integrity. Updated faculty and registration forms to include additional fields for better data capture. Refined layout components for improved user experience and responsiveness.
This commit is contained in:
1 parent
0874b968ba
commit
6909a935fd
74 files changed
+1506
-420
No files matched your search
@@ -0,0 +1,79 @@
|
||||
import Image from "next/image";
|
||||
import { ExternalLink, GraduationCap } from "lucide-react";
|
||||
import { Heading } from "@/components/atoms/Heading";
|
||||
import { SurfaceCard } from "@/components/molecules/SurfaceCard";
|
||||
import { buttonVariants } from "@/components/ui/button";
|
||||
import type { FacultyMember } from "@/lib/types";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
function facultyInitials(name: string): string {
|
||||
const cleaned = name.replace(/^دکتر\s+/, "").trim();
|
||||
const parts = cleaned.split(/\s+/).filter(Boolean);
|
||||
if (parts.length === 0) return "؟";
|
||||
if (parts.length === 1) return parts[0]!.slice(0, 2);
|
||||
return `${parts[0]!.slice(0, 1)}${parts[parts.length - 1]!.slice(0, 1)}`;
|
||||
}
|
||||
|
||||
function hasPhoto(imageUrl: string): boolean {
|
||||
return Boolean(imageUrl) && /\.(jpe?g|png|webp)$/i.test(imageUrl);
|
||||
}
|
||||
|
||||
export function FacultyMemberCard({ member }: { member: FacultyMember }) {
|
||||
const photo = hasPhoto(member.imageUrl);
|
||||
|
||||
return (
|
||||
<SurfaceCard className="group flex h-full flex-col rounded-2xl">
|
||||
<div className="relative mb-5 aspect-[4/3] overflow-hidden rounded-xl bg-muted">
|
||||
{photo ? (
|
||||
<Image
|
||||
src={member.imageUrl}
|
||||
alt={member.name}
|
||||
fill
|
||||
className="object-cover transition-transform duration-500 group-hover:scale-[1.03]"
|
||||
sizes="(max-width:768px) 100vw, 33vw"
|
||||
/>
|
||||
) : (
|
||||
<div
|
||||
className="flex h-full w-full items-center justify-center bg-gradient-to-br from-chart-3 to-primary/80 text-4xl font-semibold text-primary-foreground"
|
||||
aria-hidden
|
||||
>
|
||||
{facultyInitials(member.name)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<Heading as="h2" level={4}>
|
||||
{member.name}
|
||||
</Heading>
|
||||
|
||||
<p className="mt-2 text-sm leading-7 text-muted-foreground">{member.focus}</p>
|
||||
|
||||
{(member.linkedinUrl || member.scholarUrl) && (
|
||||
<div className="mt-auto flex flex-wrap gap-2 pt-5">
|
||||
{member.linkedinUrl ? (
|
||||
<a
|
||||
href={member.linkedinUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className={cn(buttonVariants({ variant: "outline", size: "sm" }))}
|
||||
>
|
||||
<ExternalLink className="size-4" aria-hidden />
|
||||
لینکدین
|
||||
</a>
|
||||
) : null}
|
||||
{member.scholarUrl ? (
|
||||
<a
|
||||
href={member.scholarUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className={cn(buttonVariants({ variant: "outline", size: "sm" }))}
|
||||
>
|
||||
<GraduationCap className="size-4" aria-hidden />
|
||||
گوگل اسکولار
|
||||
</a>
|
||||
) : null}
|
||||
</div>
|
||||
)}
|
||||
</SurfaceCard>
|
||||
);
|
||||
}
|
||||
@@ -5,24 +5,39 @@ import { MetamorphField } from "@/components/atoms/MetamorphField";
|
||||
import { buttonVariants } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export function HeroFeatured({ title, href, eyebrow }: { title: string; href: string; imageUrl: string; eyebrow: string }) {
|
||||
export function HeroFeatured({
|
||||
title,
|
||||
href,
|
||||
eyebrow,
|
||||
}: {
|
||||
title?: string;
|
||||
href?: string;
|
||||
imageUrl?: string;
|
||||
eyebrow?: string;
|
||||
}) {
|
||||
return (
|
||||
<header className="home-hero relative isolate overflow-hidden bg-chart-3 text-background">
|
||||
<MetamorphField tone="dark" density="sparse" className="end-0 start-auto w-[min(55vw,36rem)] opacity-20" />
|
||||
<Container className="relative z-[2] flex min-h-[38rem] min-w-0 items-center py-20 sm:py-24">
|
||||
<div className="home-hero__copy w-full min-w-0 max-w-4xl">
|
||||
<div className="inline-flex max-w-full items-center gap-2 text-sm font-medium text-background/60">
|
||||
<GraduationCap className="size-4 shrink-0" />
|
||||
<span className="min-w-0 leading-6">مرکز آموزشهای آزاد دانشگاه صنعتی امیرکبیر</span>
|
||||
<MetamorphField
|
||||
tone="dark"
|
||||
density="sparse"
|
||||
className="end-0 start-auto w-[min(55vw,36rem)] opacity-20"
|
||||
/>
|
||||
<Container className="relative z-[2] flex min-h-[34rem] min-w-0 items-center py-16 sm:min-h-[36rem] sm:py-20">
|
||||
<div className="home-hero__copy w-full min-w-0 max-w-4xl text-start">
|
||||
<div className="inline-flex max-w-full items-start gap-2 text-sm font-medium text-background/60">
|
||||
<GraduationCap className="mt-0.5 size-4 shrink-0" />
|
||||
<span className="min-w-0 leading-7 text-pretty">
|
||||
مرکز آموزشهای آزاد دانشکده مدیریت، علم و فناوری دانشگاه{"\u00A0"}صنعتی{"\u00A0"}امیرکبیر
|
||||
</span>
|
||||
</div>
|
||||
<h1 className="mt-8 text-4xl font-black leading-[1.25] tracking-tight break-words sm:text-6xl lg:text-7xl">
|
||||
آموزش حرفهای برای
|
||||
<span className="mt-2 block text-background">مدیریت در دنیای متغیر</span>
|
||||
<h1 className="mt-6 max-w-4xl text-[1.65rem] font-black leading-[1.45] tracking-tight sm:text-4xl lg:text-[2.75rem] lg:leading-[1.4]">
|
||||
برای تصمیمهایی که{" "}
|
||||
<span className="whitespace-nowrap">صنعت را پیش میبرند</span>
|
||||
</h1>
|
||||
<p className="mt-7 max-w-2xl text-base leading-8 text-background/65 sm:text-lg sm:leading-9">
|
||||
دانش دانشگاهی و تجربهی صنعت را کنار هم میآوریم تا مدیران و متخصصان برای تصمیمهای پیچیده آمادهتر شوند.
|
||||
<p className="mt-6 max-w-2xl border-t border-accent/60 pt-5 text-base leading-8 text-pretty text-background/65 sm:text-lg sm:leading-8">
|
||||
دانش امیرکبیر، پشتوانه رهبری نوآور در عصر داده و هوش{"\u00A0"}مصنوعی.
|
||||
</p>
|
||||
<div className="mt-10 flex flex-wrap gap-3">
|
||||
<div className="mt-9 flex flex-wrap gap-3">
|
||||
<Link
|
||||
href="/programs"
|
||||
className={cn(
|
||||
@@ -42,13 +57,20 @@ export function HeroFeatured({ title, href, eyebrow }: { title: string; href: st
|
||||
درباره مرکز
|
||||
</Link>
|
||||
</div>
|
||||
<div className="mt-12 border-t border-background/10 pt-6">
|
||||
<Link href={href} className="group inline-flex max-w-full items-center gap-3 text-sm text-background/55 transition-colors hover:text-background">
|
||||
<span className="shrink-0 font-semibold text-background/80">{eyebrow}</span>
|
||||
<span className="min-w-0 truncate">{title}</span>
|
||||
<ArrowLeft className="size-4 shrink-0 transition-transform group-hover:-translate-x-1" />
|
||||
</Link>
|
||||
</div>
|
||||
{title && href && eyebrow ? (
|
||||
<div className="mt-12 border-t border-background/10 pt-6">
|
||||
<Link
|
||||
href={href}
|
||||
className="group inline-flex max-w-full items-center gap-3 text-sm text-background/55 transition-colors hover:text-background"
|
||||
>
|
||||
<span className="shrink-0 font-semibold text-background/80">
|
||||
{eyebrow}
|
||||
</span>
|
||||
<span className="min-w-0 truncate">{title}</span>
|
||||
<ArrowLeft className="size-4 shrink-0 transition-transform group-hover:-translate-x-1" />
|
||||
</Link>
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
</Container>
|
||||
</header>
|
||||
|
||||
@@ -3,19 +3,69 @@ import { Container } from "@/components/atoms/Container";
|
||||
import { Heading } from "@/components/atoms/Heading";
|
||||
import { MetamorphField } from "@/components/atoms/MetamorphField";
|
||||
|
||||
export function PageHero({ title, intro, eyebrow, imageUrl }: { title: string; intro?: string; eyebrow?: string; imageUrl?: string }) {
|
||||
export function PageHero({
|
||||
title,
|
||||
intro,
|
||||
eyebrow,
|
||||
imageUrl,
|
||||
}: {
|
||||
title: string;
|
||||
intro?: string;
|
||||
eyebrow?: string;
|
||||
imageUrl?: string;
|
||||
}) {
|
||||
return (
|
||||
<header className="page-hero relative isolate overflow-hidden bg-chart-3 py-20 text-background sm:py-28">
|
||||
<header className="page-hero relative isolate overflow-hidden bg-chart-3 py-16 text-background sm:py-24">
|
||||
{imageUrl ? (
|
||||
<><Image src={imageUrl} alt="" fill priority className="object-cover opacity-25" sizes="100vw" /><div className="absolute inset-0 bg-gradient-to-l from-chart-3 via-chart-3/90 to-chart-3/60" /></>
|
||||
) : <><Image src="/brand/campus-collaboration-v1.png" alt="" fill priority className="object-cover opacity-15 grayscale" sizes="100vw" /><div className="absolute inset-0 bg-gradient-to-l from-chart-3 via-chart-3/95 to-chart-3/75" /></>}
|
||||
<MetamorphField tone="dark" density="normal" className="end-0 start-auto w-[min(75vw,42rem)] opacity-45" />
|
||||
<>
|
||||
<Image
|
||||
src={imageUrl}
|
||||
alt=""
|
||||
fill
|
||||
priority
|
||||
className="object-cover opacity-25"
|
||||
sizes="100vw"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-l from-chart-3 via-chart-3/90 to-chart-3/60" />
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Image
|
||||
src="/brand/campus-collaboration-v1.png"
|
||||
alt=""
|
||||
fill
|
||||
priority
|
||||
className="object-cover opacity-15 grayscale"
|
||||
sizes="100vw"
|
||||
/>
|
||||
<div className="absolute inset-0 bg-gradient-to-l from-chart-3 via-chart-3/95 to-chart-3/75" />
|
||||
</>
|
||||
)}
|
||||
<MetamorphField
|
||||
tone="dark"
|
||||
density="normal"
|
||||
className="end-0 start-auto w-[min(75vw,42rem)] opacity-45"
|
||||
/>
|
||||
<div className="absolute end-0 top-0 h-px w-1/3 bg-gradient-to-l from-accent to-transparent" />
|
||||
<Container className="relative z-[2] min-w-0">
|
||||
<div className="page-hero__content w-full min-w-0 max-w-3xl text-start">
|
||||
{eyebrow ? <p className="mb-4 inline-flex rounded-full border border-background/15 bg-background/5 px-3 py-1.5 text-xs font-semibold text-accent backdrop-blur-sm">{eyebrow}</p> : null}
|
||||
<Heading as="h1" level={1} className="text-4xl leading-tight break-words text-background sm:text-6xl">{title}</Heading>
|
||||
{intro ? <p className="mt-5 max-w-2xl border-s border-accent/70 ps-5 text-base leading-8 text-background/70 sm:text-lg">{intro}</p> : null}
|
||||
<div className="page-hero__content w-full min-w-0 max-w-4xl text-start">
|
||||
{eyebrow ? (
|
||||
<p className="mb-4 inline-flex rounded-full border border-background/15 bg-background/5 px-3 py-1.5 text-xs font-semibold text-accent backdrop-blur-sm">
|
||||
{eyebrow}
|
||||
</p>
|
||||
) : null}
|
||||
<Heading
|
||||
as="h1"
|
||||
level={1}
|
||||
className="max-w-4xl text-[1.65rem] leading-[1.45] text-pretty text-background sm:text-4xl lg:text-[2.75rem] lg:leading-[1.4]"
|
||||
>
|
||||
{title}
|
||||
</Heading>
|
||||
{intro ? (
|
||||
<p className="mt-5 max-w-2xl border-t border-accent/60 pt-5 text-base leading-8 text-pretty text-background/70 sm:text-lg sm:leading-8">
|
||||
{intro}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
</Container>
|
||||
</header>
|
||||
|
||||
@@ -128,7 +128,9 @@ export function CategoryCourseExplorer({
|
||||
</CardDescription>
|
||||
<div className="flex flex-wrap items-center justify-between gap-2 text-xs text-background/55">
|
||||
<span>
|
||||
{course.durationHours} ساعت · {formatLabel(course.format)}
|
||||
{course.durationHours
|
||||
? `${course.durationHours} ساعت · ${formatLabel(course.format)}`
|
||||
: formatLabel(course.format)}
|
||||
</span>
|
||||
{priceLabel ? (
|
||||
<span className="font-semibold text-background/90">
|
||||
|
||||
@@ -15,7 +15,14 @@ export function ContactInterestForm({
|
||||
successLabel: string;
|
||||
courseSlug?: string;
|
||||
}) {
|
||||
const [form, setForm] = useState({ fullName: "", email: "", phone: "", message: "" });
|
||||
const [form, setForm] = useState({
|
||||
fullName: "",
|
||||
email: "",
|
||||
phone: "",
|
||||
position: "",
|
||||
organization: "",
|
||||
message: "",
|
||||
});
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [error, setError] = useState("");
|
||||
const [sent, setSent] = useState(false);
|
||||
@@ -91,6 +98,28 @@ export function ContactInterestForm({
|
||||
className="h-11"
|
||||
/>
|
||||
</div>
|
||||
<div className="grid gap-4 sm:grid-cols-2">
|
||||
<div className="space-y-1.5">
|
||||
<Label htmlFor="position">سمت</Label>
|
||||
<Input
|
||||
id="position"
|
||||
value={form.position}
|
||||
onChange={(e) => set("position", e.target.value)}
|
||||
required
|
||||
className="h-11"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<Label htmlFor="organization">سازمان</Label>
|
||||
<Input
|
||||
id="organization"
|
||||
value={form.organization}
|
||||
onChange={(e) => set("organization", e.target.value)}
|
||||
required
|
||||
className="h-11"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<Label htmlFor="message">پیام</Label>
|
||||
<Textarea
|
||||
@@ -105,4 +134,4 @@ export function ContactInterestForm({
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,8 @@ import { Container } from "@/components/atoms/Container";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
import {
|
||||
siteAddress,
|
||||
siteShortName,
|
||||
siteUniversity,
|
||||
siteShortName,
|
||||
} from "@/lib/site-config";
|
||||
|
||||
export function SiteFooter({
|
||||
|
||||
@@ -24,7 +24,7 @@ type Payload = {
|
||||
title: string;
|
||||
summary: string;
|
||||
category: string;
|
||||
durationHours: number;
|
||||
durationHours: number | null;
|
||||
format: string;
|
||||
price: number | null;
|
||||
registrationUrl: string;
|
||||
@@ -45,8 +45,8 @@ export function CourseForm({ initial }: CourseFormProps) {
|
||||
title: initial?.title ?? "",
|
||||
summary: initial?.summary ?? "",
|
||||
category: initial?.category ?? "leadership",
|
||||
durationHours: initial?.durationHours ?? 16,
|
||||
format: initial?.format ?? "online",
|
||||
durationHours: initial?.durationHours ?? null,
|
||||
format: initial?.format ?? "in-person",
|
||||
price: initial?.price ?? null,
|
||||
registrationUrl: initial?.registrationUrl ?? "/register/",
|
||||
imageUrl: initial?.imageUrl ?? "",
|
||||
@@ -186,12 +186,10 @@ export function CourseForm({ initial }: CourseFormProps) {
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value="leadership">رهبری</SelectItem>
|
||||
<SelectItem value="technology">فناوری</SelectItem>
|
||||
<SelectItem value="innovation">نوآوری</SelectItem>
|
||||
<SelectItem value="energy">انرژی</SelectItem>
|
||||
<SelectItem value="design">طراحی</SelectItem>
|
||||
<SelectItem value="digital">دیجیتال</SelectItem>
|
||||
<SelectItem value="technology">هوش مصنوعی و تحول سازمان</SelectItem>
|
||||
<SelectItem value="digital">برند و بازاریابی</SelectItem>
|
||||
<SelectItem value="innovation">برندینگ</SelectItem>
|
||||
<SelectItem value="leadership">هماندیشی مدیریتی</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
@@ -214,9 +212,15 @@ export function CourseForm({ initial }: CourseFormProps) {
|
||||
id="durationHours"
|
||||
type="number"
|
||||
min={1}
|
||||
value={form.durationHours}
|
||||
onChange={(e) => set("durationHours", Number(e.target.value))}
|
||||
required
|
||||
value={form.durationHours ?? ""}
|
||||
onChange={(e) => {
|
||||
const raw = e.target.value;
|
||||
set(
|
||||
"durationHours",
|
||||
raw === "" ? null : Number(raw),
|
||||
);
|
||||
}}
|
||||
placeholder="اختیاری"
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-1.5 sm:col-span-3">
|
||||
|
||||
@@ -107,6 +107,8 @@ export function RegistrationsTable({ rows }: { rows: AdminRegistration[] }) {
|
||||
<TableHead>نام</TableHead>
|
||||
<TableHead>ایمیل</TableHead>
|
||||
<TableHead>تلفن</TableHead>
|
||||
<TableHead>سمت</TableHead>
|
||||
<TableHead>سازمان</TableHead>
|
||||
<TableHead>دوره</TableHead>
|
||||
<TableHead>وضعیت</TableHead>
|
||||
<TableHead>تغییر وضعیت</TableHead>
|
||||
@@ -120,6 +122,8 @@ export function RegistrationsTable({ rows }: { rows: AdminRegistration[] }) {
|
||||
<TableCell className="font-medium">{lead.full_name}</TableCell>
|
||||
<TableCell className="text-muted-foreground">{lead.email}</TableCell>
|
||||
<TableCell className="text-muted-foreground">{lead.phone ?? "—"}</TableCell>
|
||||
<TableCell className="text-muted-foreground">{lead.position ?? "—"}</TableCell>
|
||||
<TableCell className="text-muted-foreground">{lead.organization ?? "—"}</TableCell>
|
||||
<TableCell className="text-muted-foreground">
|
||||
{lead.course_slug ?? "—"}
|
||||
</TableCell>
|
||||
|
||||
@@ -51,16 +51,24 @@ export function CourseDetailTemplate({
|
||||
label: labels.format,
|
||||
value: formatLabel(course.format),
|
||||
},
|
||||
{
|
||||
icon: Clock,
|
||||
label: labels.duration,
|
||||
value: `${course.durationHours} ساعت`,
|
||||
},
|
||||
{
|
||||
icon: Wallet,
|
||||
label: labels.price,
|
||||
value: priceLabel ?? labels.priceUnset,
|
||||
},
|
||||
...(course.durationHours
|
||||
? [
|
||||
{
|
||||
icon: Clock,
|
||||
label: labels.duration,
|
||||
value: `${course.durationHours} ساعت`,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...(priceLabel
|
||||
? [
|
||||
{
|
||||
icon: Wallet,
|
||||
label: labels.price,
|
||||
value: priceLabel,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -136,12 +144,14 @@ export function CourseDetailTemplate({
|
||||
<p className="text-sm font-semibold text-foreground">{course.title}</p>
|
||||
<Separator className="my-4" />
|
||||
<ul className="space-y-3 text-sm text-muted-foreground">
|
||||
<li className="flex justify-between gap-3">
|
||||
<span>{labels.duration}</span>
|
||||
<span className="font-medium text-foreground">
|
||||
{course.durationHours} ساعت
|
||||
</span>
|
||||
</li>
|
||||
{course.durationHours ? (
|
||||
<li className="flex justify-between gap-3">
|
||||
<span>{labels.duration}</span>
|
||||
<span className="font-medium text-foreground">
|
||||
{course.durationHours} ساعت
|
||||
</span>
|
||||
</li>
|
||||
) : null}
|
||||
<li className="flex justify-between gap-3">
|
||||
<span>{labels.format}</span>
|
||||
<span className="font-medium text-foreground text-end">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
import { ArrowLeft, Building2, Compass, Network } from "lucide-react";
|
||||
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";
|
||||
@@ -13,7 +13,6 @@ import { Card, CardContent } from "@/components/ui/card";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { HeroFeatured } from "@/components/molecules/HeroFeatured";
|
||||
import {
|
||||
ArticleCard,
|
||||
EventCard,
|
||||
IntersectionCard,
|
||||
} from "@/components/molecules/Cards";
|
||||
@@ -46,46 +45,39 @@ export function HomeHero({
|
||||
featured,
|
||||
eyebrow,
|
||||
}: {
|
||||
featured: Article;
|
||||
featured: Article | null;
|
||||
eyebrow: string;
|
||||
}) {
|
||||
return (
|
||||
<HeroFeatured
|
||||
title={featured.title}
|
||||
href={featured.href}
|
||||
imageUrl={featured.imageUrl}
|
||||
title={featured?.title}
|
||||
href={featured?.href}
|
||||
imageUrl={featured?.imageUrl}
|
||||
eyebrow={eyebrow}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export function HomeIdeas({
|
||||
articles,
|
||||
title,
|
||||
}: {
|
||||
articles: Article[];
|
||||
title: string;
|
||||
}) {
|
||||
const ideaCards = articles.filter((a) => !a.featured).slice(0, 3);
|
||||
export function HomeIdeas() {
|
||||
return (
|
||||
<>
|
||||
<Section className="relative py-20 sm:py-28">
|
||||
<Container>
|
||||
<div className="grid min-w-0 gap-10 lg:grid-cols-[minmax(0,.8fr)_minmax(0,1.2fr)] lg:items-start lg:gap-20">
|
||||
<div className="min-w-0 lg:sticky lg:top-28">
|
||||
<Badge variant="outline" className="border-primary/20 bg-primary/5 text-primary">چرا امیرکبیر؟</Badge>
|
||||
<Badge variant="outline" className="border-primary/20 bg-primary/5 text-primary">چرا دانشگاه امیرکبیر؟</Badge>
|
||||
<Heading level={2} className="mt-5 text-3xl leading-tight break-words sm:text-4xl">
|
||||
آموزش برای جهانِ در حال تغییر
|
||||
مدیریت با پشتوانه دانش مهندسی
|
||||
</Heading>
|
||||
<p className="mt-5 text-base leading-8 text-muted-foreground sm:text-lg">
|
||||
اینجا آموزش، انتقال محتوا نیست؛ فضایی است برای دیدن مسئله از زاویهای تازه، ساختن راهحل و اجرای آن در دنیای واقعی.
|
||||
هویت مهندسی و فناورانه دانشگاه صنعتی امیرکبیر به آموزش مدیریت در این دانشگاه جهت میدهد. در مرکز آموزشهای آزاد دانشکده مدیریت، علم و فناوری، توسعه مدیران با شناخت فناوری و مسائل صنعت پیوند دارد.
|
||||
</p>
|
||||
</div>
|
||||
<div className="grid min-w-0 gap-4 md:grid-cols-3 lg:grid-cols-1">
|
||||
{[
|
||||
{ icon: Compass, title: "تفکر راهبردی", text: "دیدن مسئله از زاویههای تازه و تبدیل پیچیدگی به تصمیمهای بهتر." },
|
||||
{ icon: Building2, title: "اثر سازمانی", text: "یادگیری مبتنی بر مسئلههای واقعی کسبوکار و صنعت ایران." },
|
||||
{ icon: Network, title: "شبکهی حرفهای", text: "پیوند با مدیران، متخصصان و پژوهشگران برای رشد ماندگار." },
|
||||
{ icon: Compass, title: "پشتوانه علمی امیرکبیر", text: "آموزش مدیریت در بستر دانشگاه صنعتی امیرکبیر، با تکیه بر دانش تخصصی، استدلال علمی و نگاه نقادانه." },
|
||||
{ icon: Building2, title: "پیوند مدیریت و فناوری", text: "نگاهی میانرشتهای به داده و هوش مصنوعی؛ با توجه به تأثیر آنها بر تصمیمهای مدیریتی، مدلهای کسبوکار و آینده صنعت." },
|
||||
{ icon: Network, title: "تمرکز بر مسائل صنعت", text: "توسعه توانمندی مدیران با توجه به چالشهای اجرای نوآوری، تغییر فرایندها و بهبود عملکرد سازمان." },
|
||||
].map((item, index) => (
|
||||
<Card key={item.title} className="min-w-0 border-border/70 py-0 shadow-none transition-colors hover:border-primary/25">
|
||||
<CardContent className="flex h-full min-w-0 flex-col gap-5 p-5 sm:p-6 lg:flex-row lg:items-center lg:gap-6 lg:p-7">
|
||||
@@ -102,17 +94,16 @@ export function HomeIdeas({
|
||||
<div className="grid min-w-0 lg:grid-cols-2">
|
||||
<div className="relative z-[1] order-2 flex min-w-0 flex-col justify-center gap-4 px-5 py-8 sm:gap-5 sm:px-10 sm:py-10 lg:order-1 lg:min-h-[22rem] lg:px-14 lg:py-12">
|
||||
<p className="text-xs font-bold text-background/55">
|
||||
یادگیری در بستر مسئلههای واقعی
|
||||
رویکرد آموزشی ما
|
||||
</p>
|
||||
<Heading
|
||||
level={2}
|
||||
className="text-2xl leading-snug break-words text-background sm:text-3xl lg:text-[2.125rem] lg:leading-snug"
|
||||
>
|
||||
جایی برای پیوند دانش دانشگاهی و تجربهی صنعت
|
||||
دانش امیرکبیر، در خدمت تحول صنعت
|
||||
</Heading>
|
||||
<p className="max-w-xl text-sm leading-7 text-background/70 sm:text-base sm:leading-8">
|
||||
دورهها با مشارکت مدرسان دانشگاه، مدیران و متخصصان طراحی میشوند تا
|
||||
آموختهها از کلاس به تصمیم و اجرا برسند.
|
||||
امیرکبیر، دانش تخصصی و چارچوبهای مدیریتی را برای مواجهه با چالشهای صنعت در اختیار مدیران قرار میدهد؛ از شناخت ظرفیتهای داده و هوش مصنوعی تا ارزیابی تصمیمها و راهبری نوآوری در سازمان.
|
||||
</p>
|
||||
<Link
|
||||
href="/about"
|
||||
@@ -135,41 +126,6 @@ export function HomeIdeas({
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<Section tone="muted" className="pt-12 pb-16 sm:pt-14 sm:pb-20">
|
||||
<Container>
|
||||
<div className="mb-8 flex min-w-0 flex-col gap-3 sm:mb-10 sm:flex-row sm:items-end sm:gap-6">
|
||||
<div className="min-w-0">
|
||||
<p className="text-xs font-bold text-primary">دانش برای عمل</p>
|
||||
<Heading level={2} className="mt-2 text-3xl break-words sm:text-4xl">
|
||||
<Link href="/insights" className="hover:text-primary">
|
||||
{title}
|
||||
</Link>
|
||||
</Heading>
|
||||
</div>
|
||||
<Link
|
||||
href="/insights"
|
||||
className={cn(
|
||||
buttonVariants({ variant: "ghost" }),
|
||||
"w-fit shrink-0 gap-2 text-primary",
|
||||
)}
|
||||
>
|
||||
همه بینشها <ArrowLeft className="size-4" />
|
||||
</Link>
|
||||
</div>
|
||||
<div className="grid min-w-0 gap-8 sm:grid-cols-2 lg:grid-cols-3 sm:gap-10">
|
||||
{ideaCards.map((article) => (
|
||||
<ArticleCard
|
||||
key={article.id}
|
||||
title={article.title}
|
||||
category={article.category}
|
||||
excerpt={article.excerpt}
|
||||
imageUrl={article.imageUrl}
|
||||
href={article.href}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</Container>
|
||||
</Section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -220,7 +176,7 @@ export function HomeRest({
|
||||
<Section tone="muted" className="py-20 sm:py-24">
|
||||
<Container>
|
||||
<div className="mb-10 max-w-3xl">
|
||||
<p className="text-xs font-bold text-primary">مرزهای تازهی کسبوکار</p>
|
||||
<p className="text-xs font-bold text-primary">حوزههای آموزشی</p>
|
||||
<Heading level={2} className="mt-2 text-3xl sm:text-4xl">{labels.intersectionsTitle}</Heading>
|
||||
<p className="mt-3 text-lg font-semibold leading-relaxed text-primary sm:text-xl">
|
||||
{labels.intersectionsSubtitle}
|
||||
|
||||
@@ -56,7 +56,7 @@ export function ProfessionalLandingTemplate({
|
||||
/>
|
||||
<div className="relative z-[2] flex min-h-[inherit] min-w-0 items-center py-12">
|
||||
<Container>
|
||||
<div className="w-full min-w-0 max-w-3xl text-start">
|
||||
<div className="w-full min-w-0 max-w-4xl text-start">
|
||||
<div className="min-w-0">
|
||||
<p className="text-sm font-semibold text-background/75">
|
||||
{labels.offeredBy}
|
||||
@@ -64,11 +64,11 @@ export function ProfessionalLandingTemplate({
|
||||
<Heading
|
||||
as="h1"
|
||||
level={1}
|
||||
className="mt-4 text-4xl leading-tight break-words text-background sm:text-6xl"
|
||||
className="mt-4 max-w-4xl text-[1.65rem] leading-[1.45] text-pretty text-background sm:text-4xl lg:text-[2.75rem] lg:leading-[1.4]"
|
||||
>
|
||||
{labels.heroTitle}
|
||||
</Heading>
|
||||
<p className="mt-5 max-w-xl border-s border-accent ps-5 text-base leading-8 text-background/70">
|
||||
<p className="mt-5 max-w-2xl border-t border-accent/60 pt-5 text-base leading-8 text-pretty text-background/70 sm:text-lg sm:leading-8">
|
||||
{labels.heroBody}
|
||||
</p>
|
||||
<div className="mt-6">
|
||||
|
||||
Reference in new issue
Block a user