Skip to content

The open alternative to Salesforce, designed for AI.

1.2 KB
Raw Blame
import { msg } from '@lingui/core/macro';
import { styled } from '@linaria/react';

import { getServerI18n } from '@/platform/i18n/get-server-i18n';
import { mediaUp, spacing } from '@/tokens';
import { Body, Eyebrow, Heading, SectionShell } from '@/ui';

const HeaderStack = styled.div`
  display: flex;
  flex-direction: column;

  & > * + * {
    margin-top: ${spacing(4)};
  }

  ${mediaUp('md')} {
    & > * + * {
      margin-top: ${spacing(6)};
    }
  }
`;

const HeaderBody = styled.div`
  max-width: 640px;
`;

export function AppsMarketplaceHeader() {
  const i18n = getServerI18n();

  return (
    <SectionShell rhythm="hero" scheme="light">
      <HeaderStack>
        <Eyebrow>{i18n._(msg`Marketplace`)}</Eyebrow>
        <Heading as="h1" size="lg" weight="light">
          {i18n._(msg`Apps for *Twenty*`)}
        </Heading>
        <HeaderBody>
          <Body muted size="md">
            {i18n._(
              msg`Extend your CRM with apps from Twenty and its community. Every app here is reviewed by our team for security and quality — install one in a click and it's live in your workspace.`,
            )}
          </Body>
        </HeaderBody>
      </HeaderStack>
    </SectionShell>
  );
}