diff --git a/app/components/design-system/card-recipe-section.tsx b/app/components/design-system/card-recipe-section.tsx index 9587cda8..edc7dab7 100644 --- a/app/components/design-system/card-recipe-section.tsx +++ b/app/components/design-system/card-recipe-section.tsx @@ -25,6 +25,12 @@ export function CardRecipeSection() {
Tinted card
tone tinted (gray.50 bg)
+Dark card
++ tone dark (dark bg, white text) +
+No-border card
border false · shadow only
diff --git a/app/components/member/member-avatar.tsx b/app/components/member/member-avatar.tsx new file mode 100644 index 00000000..be9ab1ee --- /dev/null +++ b/app/components/member/member-avatar.tsx @@ -0,0 +1,138 @@ +import * as React from 'react'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { text } from '@ocobo/styled-system/recipes'; + +import type { ChallengeKey } from '~/modules/challenge-schema'; + +// One static class per challenge: Panda only ships literal values. +const ringColour: Record{role}
diff --git a/app/components/studio/closing-section.tsx b/app/components/studio/closing-section.tsx new file mode 100644 index 00000000..07fa3efc --- /dev/null +++ b/app/components/studio/closing-section.tsx @@ -0,0 +1,78 @@ +import { useTranslation } from 'react-i18next'; + +import { css, cx } from '@ocobo/styled-system/css'; +import { card, section, text } from '@ocobo/styled-system/recipes'; + +import { Container } from '~/components/ui/Container'; +import { ButtonLink } from '~/components/ui/button-link'; +import { ContactCta } from '~/components/ui/contact-cta'; +import { useLocalizedPathname } from '~/hooks/useLocalizedPathname'; +import { url } from '~/utils/url'; + +type ClosingSectionProps = { + /** Shows the "Join us" card, which links to the jobs page. */ + jobsEnabled: boolean; +}; + +// Static literals per layout: Panda drops a value computed at runtime. +const oneDoor = css({ display: 'grid', gap: '6' }); +const twoDoors = css({ + display: 'grid', + gridTemplateColumns: { base: '1fr', md: 'repeat(2, minmax(0, 1fr))' }, + gap: '6', +}); +const column = css({ gap: '5', alignItems: 'flex-start' }); +// Flat cards on the yellow band, as in the mockup. +const door = card({ padding: 'xl', border: false, shadow: 'none' }); +const darkDoor = card({ + padding: 'xl', + border: false, + shadow: 'none', + tone: 'dark', +}); + +/** Two closing doors: work with the Studio, or join it. */ +export function ClosingSection({ jobsEnabled }: ClosingSectionProps) { + const { t } = useTranslation('studio'); + const getLocalizedPath = useLocalizedPathname(); + + return ( ++ {t('closing.work.eyebrow')} +
++ {t('cta.subtitle')} +
++ {t('closing.join.eyebrow')} +
++ {t('closing.join.text')} +
++ {t('companies.label')} +
+ {scrolls ? ( + <> ++ {t('expertises.subtitle')} +
++ {names.format( + experts.map((expert) => getFirstName(expert.name)), + )} +
+
-
- {t('model.subtitle')} -
-- {card.description} -
-+ {t('offices.subtitle')} +
++ {t('offices.label')} +
++ {t('share.subtitle')} +
++ {t(`share.${key}.label`)} +
++ {description} +
+ {external ? ( + + {cta} + + ) : ( + + {cta} + + )} ++ {t('squad.subtitle')} +
++ {role.description} +
++ {t('squad.sprint.description')} +
+- {t('team.subtitle')} -
-+ {t('team.subtitle')} +