forked from rajun/ar-test
refactor: move logo mark into ui with sizes
This commit is contained in:
parent
9799ffdf14
commit
9f96a34930
@ -1,9 +0,0 @@
|
|||||||
import { cn } from '~/lib/utils';
|
|
||||||
|
|
||||||
export function LogoMark({ className }: { className?: string }) {
|
|
||||||
return (
|
|
||||||
<div className={cn('flex items-center justify-center rounded-xl border border-neutral-800 bg-black', className)}>
|
|
||||||
<span className="select-none font-extrabold leading-none text-orange-500">t.</span>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
25
app/components/ui/logo-mark.tsx
Normal file
25
app/components/ui/logo-mark.tsx
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { cva, type VariantProps } from 'class-variance-authority';
|
||||||
|
import { cn } from '~/lib/utils';
|
||||||
|
|
||||||
|
const logoVariants = cva('flex shrink-0 select-none items-center justify-center font-bold leading-none text-primary', {
|
||||||
|
variants: {
|
||||||
|
size: {
|
||||||
|
xs: 'h-7 w-7 rounded-item text-base',
|
||||||
|
sm: 'h-8 w-8 rounded-control text-md',
|
||||||
|
md: 'h-[34px] w-[34px] rounded-group text-md',
|
||||||
|
},
|
||||||
|
surface: {
|
||||||
|
app: 'bg-surface-control ring-1 ring-inset ring-border-control',
|
||||||
|
viewer: 'bg-ink',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
defaultVariants: { size: 'md', surface: 'app' },
|
||||||
|
});
|
||||||
|
|
||||||
|
export function LogoMark({ size, surface, className }: VariantProps<typeof logoVariants> & { className?: string }) {
|
||||||
|
return (
|
||||||
|
<span aria-hidden='true' className={cn(logoVariants({ size, surface }), className)}>
|
||||||
|
t.
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user