design upgrade
This commit is contained in:
@@ -1,32 +1,28 @@
|
||||
import Image from "next/image"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
/** Intrinsic size of public/logo-suman.svg (viewBox 0 0 97 100) */
|
||||
export const LOGO_WIDTH = 97
|
||||
export const LOGO_HEIGHT = 100
|
||||
|
||||
export interface LogoProps {
|
||||
className?: string
|
||||
width?: number
|
||||
height?: number
|
||||
priority?: boolean
|
||||
alt?: string
|
||||
}
|
||||
|
||||
export function Logo({
|
||||
className,
|
||||
width = 160,
|
||||
height = 68,
|
||||
priority = true,
|
||||
alt = "Suman d.o.o.",
|
||||
}: LogoProps) {
|
||||
/** Suman logo: navy square with the yellow wordmark and bottom strip */
|
||||
export function Logo({ className, priority = false, alt = "Suman d.o.o." }: LogoProps) {
|
||||
return (
|
||||
<Image
|
||||
src="/logo.png"
|
||||
src="/logo-suman.svg"
|
||||
alt={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
width={LOGO_WIDTH}
|
||||
height={LOGO_HEIGHT}
|
||||
priority={priority}
|
||||
className={cn("h-9 w-auto object-contain transition-opacity duration-200 group-hover:opacity-90", className)}
|
||||
className={cn("h-auto w-full", className)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Logo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user