feat: add decorative glow
This commit is contained in:
parent
16fe80634f
commit
d0130a6e56
17
app/components/ui/glow.tsx
Normal file
17
app/components/ui/glow.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import { cva, type VariantProps } from 'class-variance-authority';
|
||||
import { cn } from '~/lib/utils';
|
||||
|
||||
const glowVariants = cva('pointer-events-none absolute rounded-full', {
|
||||
variants: {
|
||||
intensity: {
|
||||
soft: 'bg-primary/5 blur-[120px]',
|
||||
strong: 'bg-primary/10 blur-[140px]',
|
||||
},
|
||||
},
|
||||
defaultVariants: { intensity: 'soft' },
|
||||
});
|
||||
|
||||
// Decorative brand glow; position and size come from className
|
||||
export function Glow({ intensity, className }: VariantProps<typeof glowVariants> & { className?: string }) {
|
||||
return <div aria-hidden='true' className={cn(glowVariants({ intensity }), className)} />;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user