feat: primitives (Wordmark, Container, CTA) with tests
This commit is contained in:
1 parent
48a37395aa
commit
7d12e35600
9 files changed
+98
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
type Variant = 'light' | 'dark';
|
||||
const styles: Record<Variant, string> = {
|
||||
light: 'bg-ink text-base hover:bg-ink/90',
|
||||
dark: 'bg-gold-bright text-ink hover:bg-gold-bright/90',
|
||||
};
|
||||
|
||||
export function CTA({ href, label, variant = 'light', className = '' }: { href: string; label: string; variant?: Variant; className?: string }) {
|
||||
return (
|
||||
<a
|
||||
href={href}
|
||||
className={`inline-block font-sans font-bold uppercase tracking-wider px-7 py-3.5 text-sm transition-colors ${styles[variant]} ${className}`}
|
||||
>
|
||||
{label} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user