brand-logo.tsx 592 B

1234567891011121314151617181920212223242526272829
  1. import Image from "next/image";
  2. import { cn } from "@/lib/utils";
  3. interface BrandLogoProps {
  4. className?: string;
  5. /** Pixel height of the mark */
  6. height?: number;
  7. priority?: boolean;
  8. }
  9. /** Official krypco logo mark (color geometry). */
  10. export function BrandLogo({
  11. className,
  12. height = 36,
  13. priority = false,
  14. }: BrandLogoProps) {
  15. const width = Math.round(height * (231.602 / 236));
  16. return (
  17. <Image
  18. src="/brand/logo.svg"
  19. alt="krypco"
  20. width={width}
  21. height={height}
  22. priority={priority}
  23. className={cn("shrink-0", className)}
  24. />
  25. );
  26. }