42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import Image from 'next/image';
|
|
import Link from 'next/link';
|
|
import { Box } from '@/ui/Box';
|
|
|
|
interface BrandMarkProps {
|
|
href?: string;
|
|
priority?: boolean;
|
|
}
|
|
|
|
/**
|
|
* BrandMark provides the consistent logo/wordmark for the application.
|
|
* Aligned with "Precision Racing Minimal" theme.
|
|
*/
|
|
export function BrandMark({ href = '/', priority = false }: BrandMarkProps) {
|
|
return (
|
|
<Box as={Link} href={href} display="inline-flex" alignItems="center" group>
|
|
<Box position="relative">
|
|
<Box h={{ base: '24px', md: '28px' }} w="auto" transition opacity={1} groupHoverOpacity={0.8}>
|
|
<Image
|
|
src="/images/logos/wordmark-rectangle-dark.svg"
|
|
alt="GridPilot"
|
|
width={160}
|
|
height={30}
|
|
priority={priority}
|
|
/>
|
|
</Box>
|
|
<Box
|
|
position="absolute"
|
|
bottom="-4px"
|
|
left="0"
|
|
w="0"
|
|
h="2px"
|
|
bg="primary-accent"
|
|
transition
|
|
groupHoverWidth="full"
|
|
/>
|
|
</Box>
|
|
</Box>
|
|
);
|
|
}
|