2025-12-03 16:48:15 +03:30
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
import Image from "next/image";
|
|
|
|
|
import Link from "next/link";
|
|
|
|
|
|
2026-07-23 17:00:55 +03:30
|
|
|
const variants = {
|
|
|
|
|
mark: {
|
|
|
|
|
src: "/assets/logo/mainLogo.png",
|
|
|
|
|
width: 48,
|
|
|
|
|
height: 48,
|
|
|
|
|
className: "h-9 w-auto md:h-10",
|
|
|
|
|
},
|
|
|
|
|
text: {
|
|
|
|
|
src: "/assets/logo/mainLogoText.png",
|
|
|
|
|
width: 180,
|
|
|
|
|
height: 48,
|
|
|
|
|
className: "h-9 w-auto md:h-10",
|
|
|
|
|
},
|
|
|
|
|
} as const;
|
2026-03-07 14:17:54 +03:30
|
|
|
|
2026-07-23 17:00:55 +03:30
|
|
|
export type LogoVariant = keyof typeof variants;
|
2026-03-07 14:17:54 +03:30
|
|
|
|
2025-12-03 16:48:15 +03:30
|
|
|
export const Logo = ({
|
|
|
|
|
className,
|
2026-07-23 17:00:55 +03:30
|
|
|
variant = "mark",
|
|
|
|
|
priority = false,
|
|
|
|
|
uniColor = false,
|
2025-12-03 16:48:15 +03:30
|
|
|
}: {
|
|
|
|
|
className?: string;
|
2026-07-23 17:00:55 +03:30
|
|
|
variant?: LogoVariant;
|
|
|
|
|
priority?: boolean;
|
|
|
|
|
/** Soft shadow so white wordmark stays readable on light surfaces (keeps brand teal). */
|
2025-12-03 16:48:15 +03:30
|
|
|
uniColor?: boolean;
|
2026-02-08 19:54:54 +03:30
|
|
|
hasCaption?: boolean;
|
2025-12-03 16:48:15 +03:30
|
|
|
}) => {
|
2026-07-23 17:00:55 +03:30
|
|
|
const logo = variants[variant];
|
|
|
|
|
|
2025-12-03 16:48:15 +03:30
|
|
|
return (
|
2026-07-23 17:00:55 +03:30
|
|
|
<Link
|
|
|
|
|
href="/"
|
|
|
|
|
aria-label="امین رایان اسپادان"
|
|
|
|
|
className={cn(
|
|
|
|
|
"inline-flex items-center transition-opacity hover:opacity-80",
|
|
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
<Image
|
|
|
|
|
src={logo.src}
|
|
|
|
|
alt="امین رایان اسپادان"
|
|
|
|
|
width={logo.width}
|
|
|
|
|
height={logo.height}
|
|
|
|
|
priority={priority}
|
|
|
|
|
className={cn(
|
|
|
|
|
logo.className,
|
|
|
|
|
uniColor &&
|
|
|
|
|
"drop-shadow-[0_0_1px_rgba(0,0,0,0.85)] drop-shadow-[0_1px_2px_rgba(0,0,0,0.5)] dark:drop-shadow-none",
|
|
|
|
|
)}
|
|
|
|
|
/>
|
2025-12-03 16:48:15 +03:30
|
|
|
</Link>
|
|
|
|
|
);
|
|
|
|
|
};
|