first commit
This commit is contained in:
32
apps/suman-bosna/src/components/ui/logo.tsx
Normal file
32
apps/suman-bosna/src/components/ui/logo.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import Image from "next/image"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
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) {
|
||||
return (
|
||||
<Image
|
||||
src="/logo.png"
|
||||
alt={alt}
|
||||
width={width}
|
||||
height={height}
|
||||
priority={priority}
|
||||
className={cn("h-9 w-auto object-contain transition-opacity duration-200 group-hover:opacity-90", className)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Logo
|
||||
|
||||
Reference in New Issue
Block a user