Some checks failed
Main Confidence / confidence (push) Failing after 40s
## Summary - implement the website-only visual foundation for apps/website - formalize semantic tokens, typography, spacing, surfaces, and shared CTA/navigation primitives - align landing, trust/legal, and content-heavy routes plus Playwright smoke coverage with the new foundation ## Validation - corepack pnpm build:website - corepack pnpm --filter @tenantatlas/website exec playwright test ## Scope - website-only change set for spec 214 - no apps/platform runtime coupling introduced Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #251
21 lines
613 B
Plaintext
21 lines
613 B
Plaintext
---
|
|
import Button from '@/components/primitives/Button.astro';
|
|
import type { CtaLink } from '@/types/site';
|
|
|
|
interface Props {
|
|
cta: CtaLink;
|
|
class?: string;
|
|
showHelper?: boolean;
|
|
size?: 'lg' | 'md' | 'sm';
|
|
}
|
|
|
|
const { cta, class: className = '', showHelper = false, size = 'md' } = Astro.props;
|
|
---
|
|
|
|
<div class:list={['flex flex-col gap-2', className]} data-cta-slot="secondary">
|
|
<Button href={cta.href} variant={cta.variant ?? 'secondary'} size={size}>
|
|
{cta.label}
|
|
</Button>
|
|
{showHelper && cta.helper && <p class="m-0 text-sm text-[var(--color-copy)]">{cta.helper}</p>}
|
|
</div>
|