Enhance Next.js configuration and dependencies for improved functionality and localization support. Added support for internationalization with next-intl, updated global styles, and integrated new fonts. Removed default home page and updated README with project details and setup instructions.
This commit is contained in:
1 parent
2911dea00b
commit
44f4fa98e2
320 files changed
+31666
-220
No files matched your search
@@ -0,0 +1,73 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const LOGO_SRC = "/brand/amirkabir.png";
|
||||
|
||||
type BrandLogoProps = {
|
||||
href?: string;
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
onDark?: boolean;
|
||||
className?: string;
|
||||
compact?: boolean;
|
||||
};
|
||||
|
||||
/** AUT seal on a dark disc — works on light and dark headers (asset is white-on-black). */
|
||||
export function BrandLogo({
|
||||
href = "/",
|
||||
title,
|
||||
subtitle,
|
||||
onDark = false,
|
||||
className,
|
||||
compact = false,
|
||||
}: BrandLogoProps) {
|
||||
return (
|
||||
<Link
|
||||
href={href}
|
||||
className={cn(
|
||||
"group flex min-w-0 items-center gap-2.5 sm:gap-3",
|
||||
className,
|
||||
)}
|
||||
aria-label={[title, subtitle].filter(Boolean).join(" — ")}
|
||||
>
|
||||
<span
|
||||
className={cn(
|
||||
"relative shrink-0 overflow-hidden rounded-full bg-chart-3 shadow-sm ring-1",
|
||||
onDark ? "ring-background/20" : "ring-border",
|
||||
compact ? "size-9" : "size-11 sm:size-12",
|
||||
)}
|
||||
>
|
||||
<Image
|
||||
src={LOGO_SRC}
|
||||
alt=""
|
||||
fill
|
||||
priority
|
||||
sizes="48px"
|
||||
className="object-cover"
|
||||
/>
|
||||
</span>
|
||||
<span className="min-w-0 text-start leading-tight">
|
||||
<span
|
||||
className={cn(
|
||||
"block truncate font-black tracking-tight transition-colors",
|
||||
compact ? "text-base" : "text-base sm:text-lg",
|
||||
onDark ? "group-hover:text-background/70" : "group-hover:text-primary",
|
||||
)}
|
||||
>
|
||||
{title}
|
||||
</span>
|
||||
{subtitle ? (
|
||||
<span
|
||||
className={cn(
|
||||
"mt-0.5 block truncate text-[0.7rem] font-medium sm:text-xs",
|
||||
onDark ? "text-background/70" : "text-muted-foreground",
|
||||
)}
|
||||
>
|
||||
{subtitle}
|
||||
</span>
|
||||
) : null}
|
||||
</span>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user