import { define } from '../../src' import { Layout, theme } from './helpers' import { ButtonExamplesContent } from '../button' import { ProfileExamplesContent } from '../profile' import { NavigationExamplesContent } from '../navigation' import { FormExamplesContent } from '../form' const P = define('SSR_P', { color: theme.colors.fgMuted, fontSize: 16, marginBottom: theme.spacing.xxl, }) const ExamplesGrid = define('SSR_ExamplesGrid', { display: 'grid', gap: theme.spacing.lg, gridTemplateColumns: 'repeat(auto-fill, minmax(300px, 1fr))' }) const ExampleCard = define('SSR_ExampleCard', { base: 'a', background: theme.colors.bgElevated, padding: theme.spacing.lg, border: `1px solid ${theme.colors.border}`, borderRadius: theme.radius.sm, textDecoration: 'none', display: 'block', states: { hover: { borderColor: theme.colors.borderActive, } }, parts: { H2: { color: theme.colors.fg, margin: `0 0 ${theme.spacing.sm}px 0`, fontSize: 18, fontWeight: 400, }, P: { color: theme.colors.fgMuted, margin: 0, fontSize: 14, } }, render({ props: { title, desc, ...rest }, parts: { Root, H2, P } }) { return (

{title}

{desc}

) } }) export const IndexPage = ({ path }: any) => (

Server-rendered demos. View source to see the static CSS.

) export const ButtonExamplesPage = ({ path }: any) => ( ) export const ProfileExamplesPage = ({ path }: any) => ( ) export const NavigationExamplesPage = ({ path }: any) => ( ) export const FormExamplesPage = ({ path }: any) => ( )