Ship site UI checklist, move admin to /mstcontroller, and add safe taxonomy label migration.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled

Production already has migrations through 008; 009 only updates four seed labels by id. Faculty sync remains upsert-by-email/name and does not wipe curated data.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
smhk1376andCursor committed 2026-10-16 16:26:21 +03:30
1 parent 3eea1c35a6
commit 2b0db26a93
171 files changed
+1477 -807

No files matched your search

+19 -18
View File
@@ -23,10 +23,10 @@ export function ProgramCard({
<Card className={cn("group h-full gap-2 py-6 hover:shadow-md hover:ring-primary/25", className)}>
<CardHeader className="gap-1">
{program.tagline ? (
<p className="text-xs font-bold text-primary">{program.tagline}</p>
<p className="text-xs font-bold text-accent">{program.tagline}</p>
) : null}
<CardTitle className="text-lg">
<Link href={program.href} className="hover:text-primary">
<Link href={program.href} className="hover:text-accent">
{program.title}
</Link>
</CardTitle>
@@ -35,7 +35,7 @@ export function ProgramCard({
<CardDescription className="leading-relaxed">
{program.blurb}
</CardDescription>
<span className="mt-5 inline-flex items-center gap-1 text-xs font-bold text-primary">
<span className="mt-5 inline-flex items-center gap-1 text-xs font-bold text-accent">
جزئیات برنامه
<ArrowUpLeft className="size-3.5 transition-transform group-hover:-translate-x-0.5 group-hover:-translate-y-0.5" />
</span>
@@ -68,12 +68,12 @@ export function ArticleCard({
<Image src={imageUrl} alt={title} fill placeholder="blur" blurDataURL={blurDataURL} className="object-cover transition-transform duration-500 group-hover:scale-[1.025]" sizes="(max-width:640px) 100vw, 304px" />
</Link>
<div className="flex min-w-0 flex-col justify-center pt-5 sm:pt-0">
<p className="text-xs font-bold text-primary">{category}</p>
<h2 className="mt-2 text-xl font-bold leading-relaxed tracking-tight sm:text-2xl">
<Link href={href} className="transition-colors hover:text-primary">{title}</Link>
<p className="text-xs font-bold text-accent">{category}</p>
<h2 className="mt-2 text-xl font-bold leading-[1.45] sm:text-2xl">
<Link href={href} className="transition-colors hover:text-accent">{title}</Link>
</h2>
<p className="mt-3 max-w-2xl text-sm leading-7 text-muted-foreground sm:text-base">{excerpt}</p>
<Link href={href} className="mt-4 inline-flex w-fit items-center gap-2 text-sm font-semibold text-foreground/70 transition-colors hover:text-primary">
<p className="mt-3 max-w-2xl text-sm leading-7 text-muted-foreground sm:text-base sm:leading-7">{excerpt}</p>
<Link href={href} className="mt-4 inline-flex w-fit items-center gap-2 text-sm font-semibold text-foreground/70 transition-colors hover:text-accent">
مطالعه مقاله <ArrowUpLeft className="size-4 transition-transform group-hover:-translate-x-0.5 group-hover:-translate-y-0.5" />
</Link>
</div>
@@ -126,11 +126,11 @@ export function ArticleCard({
<h3
className={cn(
featured
? "mt-2 text-2xl font-bold tracking-tight sm:text-3xl"
: "mt-1.5 text-lg font-semibold",
? "mt-2 text-2xl font-bold leading-[1.4] sm:text-3xl"
: "mt-1.5 text-lg font-semibold leading-[1.5]",
)}
>
<Link href={href} className="hover:text-primary">
<Link href={href} className="hover:text-accent">
{title}
</Link>
</h3>
@@ -176,7 +176,7 @@ export function EventCard({
</div>
{end ? (
<>
<span className="mt-7 text-xs font-medium text-primary">تا</span>
<span className="mt-7 text-xs font-medium text-accent">تا</span>
<div>
<p className="text-xs font-semibold text-muted-foreground">
{endMonth}
@@ -188,7 +188,7 @@ export function EventCard({
</div>
<div>
<h3 className="text-lg font-semibold">
<Link href={href} className="hover:text-primary">
<Link href={href} className="hover:text-accent">
{title}
</Link>
</h3>
@@ -233,7 +233,7 @@ export function IntersectionCard({
return (
<Link
href={href}
className="group relative block min-h-[16rem] overflow-hidden rounded-2xl bg-chart-3 shadow-sm sm:min-h-[18rem]"
className="group relative block min-h-[16rem] overflow-hidden rounded-2xl bg-primary shadow-sm sm:min-h-[18rem]"
>
<div className="absolute inset-0 overflow-hidden">
<Image
@@ -246,10 +246,11 @@ export function IntersectionCard({
sizes="(max-width:768px) 100vw, 25vw"
/>
</div>
<div className="absolute inset-0 bg-gradient-to-t from-chart-3 via-chart-3/50 to-transparent" />
<div className="absolute inset-x-0 bottom-0 p-6 text-background">
<div className="flex items-center justify-between gap-3"><p className="text-sm font-bold text-accent">{title}</p><ArrowUpLeft className="size-4 transition-transform group-hover:-translate-x-1 group-hover:-translate-y-1" /></div>
<p className="mt-2 text-sm font-semibold leading-relaxed text-background/80">{description}</p>
<div className="absolute inset-0 bg-gradient-to-t from-primary via-primary/50 to-transparent" />
<div className="absolute inset-0 border-s-4 border-accent" aria-hidden />
<div className="absolute inset-x-0 bottom-0 p-6 text-primary-foreground">
<div className="flex items-center justify-between gap-3"><p className="text-sm font-bold text-secondary">{title}</p><ArrowUpLeft className="size-4 transition-transform group-hover:-translate-x-1 group-hover:-translate-y-1" /></div>
<p className="mt-2 text-sm font-semibold leading-relaxed text-primary-foreground/80">{description}</p>
</div>
</Link>
);