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
25 lines
503 B
Plaintext
25 lines
503 B
Plaintext
---
|
|
interface Props {
|
|
as?: keyof HTMLElementTagNameMap;
|
|
class?: string;
|
|
variant?: 'accent' | 'default' | 'subtle';
|
|
}
|
|
|
|
const { as = 'article', class: className = '', variant = 'default' } = Astro.props;
|
|
|
|
const variantClasses = {
|
|
default: 'surface-card',
|
|
accent: 'surface-card-accent',
|
|
subtle: 'surface-card-muted',
|
|
};
|
|
|
|
const Tag = as;
|
|
---
|
|
|
|
<Tag
|
|
class:list={['rounded-[1.65rem] p-6 sm:p-7', variantClasses[variant], className]}
|
|
data-surface={variant}
|
|
>
|
|
<slot />
|
|
</Tag>
|