forked from rajun/ar-test
feat: add brand lockup
This commit is contained in:
parent
849b294cf2
commit
03a1a1cd7a
21
app/components/ui/brand-lockup.tsx
Normal file
21
app/components/ui/brand-lockup.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { LogoMark } from '~/components/ui/logo-mark';
|
||||
import { Text } from '~/components/ui/text';
|
||||
import { BRAND } from '~/data/brand';
|
||||
import { cn } from '~/lib/utils';
|
||||
|
||||
const SIZES = {
|
||||
sm: { mark: 'xs', text: 'heading' },
|
||||
md: { mark: 'sm', text: 'subheading' },
|
||||
} as const;
|
||||
|
||||
// The "t." mark with the product name: sidebar and login page
|
||||
export function BrandLockup({ size = 'sm', className }: { size?: keyof typeof SIZES; className?: string }) {
|
||||
return (
|
||||
<span className={cn('flex items-center gap-2.5', className)}>
|
||||
<LogoMark size={SIZES[size].mark} />
|
||||
<Text as='span' variant={SIZES[size].text}>
|
||||
{BRAND.product}
|
||||
</Text>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user