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>
72 lines
2.5 KiB
TypeScript
72 lines
2.5 KiB
TypeScript
import { Mail, MapPin, Phone } from "lucide-react";
|
|
import { Heading } from "@/components/atoms/Heading";
|
|
import { TextLink } from "@/components/atoms/TextLink";
|
|
import { siteAddress } from "@/lib/site-config";
|
|
|
|
const rowClass = "flex items-start gap-4";
|
|
const iconClass =
|
|
"flex size-10 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary";
|
|
|
|
export function ContactDetails() {
|
|
return (
|
|
<div className="min-w-0 space-y-8">
|
|
<Heading level={3} as="h2">
|
|
اطلاعات تماس
|
|
</Heading>
|
|
<ul className="space-y-6 text-sm leading-7">
|
|
<li className={rowClass}>
|
|
<span className={iconClass}>
|
|
<MapPin className="size-4" aria-hidden />
|
|
</span>
|
|
<div className="min-w-0">
|
|
<p className="font-semibold text-foreground">نشانی</p>
|
|
<p className="text-muted-foreground">{siteAddress.line}</p>
|
|
<p className="mt-1 text-muted-foreground">
|
|
کد پستی{" "}
|
|
<span dir="ltr" className="font-medium text-foreground">
|
|
{siteAddress.postalCode}
|
|
</span>
|
|
</p>
|
|
<a
|
|
href={siteAddress.mapUrl}
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
className="mt-1 inline-block font-medium text-accent underline-offset-4 hover:underline"
|
|
>
|
|
مشاهده روی نقشه
|
|
</a>
|
|
</div>
|
|
</li>
|
|
<li className={rowClass}>
|
|
<span className={iconClass}>
|
|
<Phone className="size-4" aria-hidden />
|
|
</span>
|
|
<div className="min-w-0">
|
|
<p className="font-semibold text-foreground">تلفن</p>
|
|
<p className="text-muted-foreground">
|
|
<a
|
|
href={`tel:${siteAddress.phoneTel}`}
|
|
dir="ltr"
|
|
className="transition-colors hover:text-foreground"
|
|
>
|
|
{siteAddress.phone}
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</li>
|
|
<li className={rowClass}>
|
|
<span className={iconClass}>
|
|
<Mail className="size-4" aria-hidden />
|
|
</span>
|
|
<div className="min-w-0">
|
|
<p className="font-semibold text-foreground">پست الکترونیک</p>
|
|
<TextLink href={`mailto:${siteAddress.email}`} tone="accent">
|
|
{siteAddress.email}
|
|
</TextLink>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
);
|
|
}
|