The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Turn /partners into the partner lead page (#24702)
Rashad Karanouhaa5c45f588e5
diff --git a/packages/twenty-website/next.config.ts b/packages/twenty-website/next.config.tsindex 4f090c11e57..49baa49842e 100644--- a/packages/twenty-website/next.config.ts+++ b/packages/twenty-website/next.config.ts@@ -119,6 +119,15 @@ const nextConfig: LinariaConfig = {// Strip the source-locale prefix: /en/foo → /foo (301).{ source: '/en', destination: '/', statusCode: 301 },{ source: '/en/:path*', destination: '/:path*', statusCode: 301 },+ // /partners/list folded into the lead page, whose directory zone is the+ // same grid. Both the unprefixed and the locale-prefixed URLs were in the+ // sitemap, so both need the 308.+ { source: '/partners/list', destination: '/partners', permanent: true },+ {+ source: `/:locale(${WEBSITE_LOCALE_LIST.join('|')})/partners/list`,+ destination: '/:locale/partners',+ permanent: true,+ },{source: '/user-guide',destination: 'https://docs.twenty.com/user-guide/introduction',diff --git a/packages/twenty-website/scripts/background-cap.mjs b/packages/twenty-website/scripts/background-cap.mjsindex 22225fef6a9..06657f8025c 100644--- a/packages/twenty-website/scripts/background-cap.mjs+++ b/packages/twenty-website/scripts/background-cap.mjs@@ -26,6 +26,7 @@ const PAGES = ['/pricing','/customers','/partners',+ '/partners/become','/why-twenty','/releases',];diff --git a/packages/twenty-website/scripts/check-conventions.mjs b/packages/twenty-website/scripts/check-conventions.mjsindex 65837f9279a..683cba8f314 100644--- a/packages/twenty-website/scripts/check-conventions.mjs+++ b/packages/twenty-website/scripts/check-conventions.mjs@@ -104,6 +104,8 @@ const ROW_GAP_MULTI_AXIS_FILES = new Set(['sections/releases-feed/ReleasesFeed.tsx','sections/product-stepper/ProductStepper.tsx','sections/home-stepper/HomeStepper.tsx',+ 'sections/partner-lead/PartnerBecomeStrip.tsx',+ 'sections/partner-lead/PartnerServicesExplainer.tsx','sections/testimonials/PartnerTestimonialsCarousel.tsx','sections/testimonials/TestimonialsCarousel.tsx','sections/trusted-by/TrustedBy.tsx',@@ -223,6 +225,7 @@ function walk(directory) {(relativePath.startsWith('sections' + path.sep) ||relativePath.startsWith('case-studies' + path.sep) ||relativePath.startsWith('app-preview' + path.sep) ||+ relativePath.startsWith('client-brief' + path.sep) ||relativePath.startsWith('contact-cal' + path.sep) ||relativePath.startsWith('partner-application' + path.sep) ||relativePath.startsWith('partners-marketplace' + path.sep) ||diff --git a/packages/twenty-website/scripts/partners-parity.mjs b/packages/twenty-website/scripts/partners-parity.mjsindex e06611c125d..9febce59b3a 100644--- a/packages/twenty-website/scripts/partners-parity.mjs+++ b/packages/twenty-website/scripts/partners-parity.mjs@@ -21,7 +21,7 @@ const browser = await launchBrowser();// rhythm and show overflow, so the two read as one continuous frame across the// seam. If a future refactor of the `:has(+ [data-connect-up])` rule breaks// this, the corner markers re-clip and the frame splits.-const partners = await openPage(browser, `${NEW_BASE}/partners`, {+const partners = await openPage(browser, `${NEW_BASE}/partners/become`, {viewport: { width: 1440, height: 1400 },settleMs: 500,});@@ -103,10 +103,11 @@ assert();// The closing sign-off: a tall centred panel whose heading carries both faces-// (serif + sans accent). "Become a partner" is the application-modal trigger (a-// button, no href); "Find a partner" links to the (Wave-B) marketplace, the-// same dangle the hero already carries. The body is measure-constrained so it-// breaks across two lines rather than running the panel width.+// (serif + sans accent). The page recruits partners only, so the panel carries+// exactly ONE cta — "Become a partner", the application-modal trigger (a+// button, no href). A second, buyer-facing cta here is the regression this+// guards. The body is measure-constrained so it breaks across lines rather+// than running the panel width.const signoff = await partners.evaluate(() => {const heading = [...document.querySelectorAll('h2')].find((node) =>/Ready to grow/.test(node.textContent ?? ''),@@ -116,17 +117,14 @@ const signoff = await partners.evaluate(() => {const become = ctas.find((node) =>/Become a partner/i.test(node.textContent ?? ''),);- const find = ctas.find((node) =>- /Find a partner/i.test(node.textContent ?? ''),- );const body = [...(section?.querySelectorAll('p') ?? [])].find((node) =>- /partner ecosystem/.test(node.textContent ?? ''),+ /certify real builders/.test(node.textContent ?? ''),);return {headingText: (heading?.textContent ?? '').replace(/\s+/g, ' ').trim(),becomeTag: become?.tagName.toLowerCase() ?? '',becomeHref: become?.getAttribute('href') ?? null,- findHref: find?.getAttribute('href') ?? '',+ ctaCount: ctas.length,bodyWidth: body ? Math.round(body.getBoundingClientRect().width) : 0,sectionHeight: section? Math.round(section.getBoundingClientRect().height)@@ -146,9 +144,9 @@ assert(`${signoff.becomeTag} href=${signoff.becomeHref}`,);assert(- 'signoff find-a-partner links to the marketplace',- signoff.findHref.endsWith('/partners/list'),- signoff.findHref,+ 'signoff carries exactly one cta',+ signoff.ctaCount === 1,+ `${signoff.ctaCount} ctas`,);assert('signoff body is measure-constrained',@@ -229,9 +227,14 @@ async function heroH1(path) {return text;}+assert(+ 'partners/become hero h1',+ (await heroH1('/partners/become')).includes('our partner'),+ 'missing',+);assert('partners hero h1',- (await heroH1('/partners')).includes('our partner'),+ (await heroH1('/partners')).includes('48 hours'),'missing',);assert(@@ -250,4 +253,45 @@ assert('missing',);+// The lead page's directory zone is an anchor target two files depend on: the+// hero CTA jumps to it and a partner profile's back link returns to it.+const leadPage = await openPage(browser, `${NEW_BASE}/partners`, {+ viewport: { width: 1440, height: 1000 },+ settleMs: 500,+});+const directoryAnchor = await leadPage.evaluate(() => {+ const zone = document.getElementById('partner-directory');+ const cta = document.querySelector('main a[href="#partner-directory"]');+ return { hasCta: cta !== null, hasZone: zone !== null };+});+await leadPage.close();++assert(+ 'partners directory anchor target',+ directoryAnchor.hasZone,+ `#partner-directory present=${directoryAnchor.hasZone}`,+);+assert(+ 'partners hero links to the directory anchor',+ directoryAnchor.hasCta,+ `anchor cta present=${directoryAnchor.hasCta}`,+);++// /partners/list folded into the lead page; both the bare and the+// locale-prefixed URL were in the sitemap, so both must keep their 308.+const legacyListPaths = ['/partners/list', '/fr/partners/list'];+const legacyListResponses = await Promise.all(+ legacyListPaths.map((path) =>+ fetch(`${NEW_BASE}${path}`, { redirect: 'manual' }),+ ),+);+legacyListResponses.forEach((response, index) => {+ const location = response.headers.get('location') ?? '';+ assert(+ `${legacyListPaths[index]} redirects to the lead page`,+ response.status === 308 && location.endsWith('/partners'),+ `${response.status} -> ${location}`,+ );+});+await finish(browser);diff --git a/packages/twenty-website/scripts/visual-battery.mjs b/packages/twenty-website/scripts/visual-battery.mjsindex 2838ace63f9..f8eb43622ff 100644--- a/packages/twenty-website/scripts/visual-battery.mjs+++ b/packages/twenty-website/scripts/visual-battery.mjs@@ -198,7 +198,7 @@ const VISUALS = {// the cursor turns nearby dashes blue and shifts the band (interactive).'partner-hero': {slotSelector: '[data-illustration="partner-hero"]',- path: '/partners',+ path: '/partners/become',hueRangeDegrees: null,minCoverage: 0.02,animated: false,@@ -208,7 +208,7 @@ const VISUALS = {// the hover light brightens the dashes near the cursor (interactive).'promo-mic': {slotSelector: '[data-illustration="promo-mic"]',- path: '/partners',+ path: '/partners/become',hueRangeDegrees: null,minCoverage: 0.02,animated: false,@@ -218,7 +218,7 @@ const VISUALS = {// the cursor shifts the band and adds a light (interactive).'partner-portrait': {slotSelector: '[data-illustration="partner-portrait"]',- path: '/partners',+ path: '/partners/become',hueRangeDegrees: null,minCoverage: 0.02,animated: false,@@ -228,7 +228,7 @@ const VISUALS = {// halftone with a slow breathe; desktop-only + aria-hidden.'partner-quote': {slotSelector: '[data-illustration="partner-quote"]',- path: '/partners',+ path: '/partners/become',hueRangeDegrees: [200, 260],minCoverage: 0.01,animated: false,diff --git a/packages/twenty-website/src/app/[locale]/(focused)/partners/apply/PartnerApplicationPageContent.tsx b/packages/twenty-website/src/app/[locale]/(focused)/partners/apply/PartnerApplicationPageContent.tsxindex 559f974d626..73165b62a65 100644--- a/packages/twenty-website/src/app/[locale]/(focused)/partners/apply/PartnerApplicationPageContent.tsx+++ b/packages/twenty-website/src/app/[locale]/(focused)/partners/apply/PartnerApplicationPageContent.tsx@@ -4,6 +4,8 @@ import { styled } from '@linaria/react';import { useRouter } from 'next/navigation';import { PartnerApplicationWizard } from '@/partner-application';+import { localizeHref } from '@/platform/i18n/localize-href';+import { useLocale } from '@/platform/i18n/use-locale';import { buildSchemeContext, mediaUp, MODAL_SURFACE, spacing } from '@/tokens';// The full-page home of the wizard, on the same dark surface as the modal@@ -31,12 +33,13 @@ const ApplyContainer = styled.div`export function PartnerApplicationPageContent() {const router = useRouter();+ const locale = useLocale();return (<ApplyBackground data-scheme="dark"><ApplyContainer><PartnerApplicationWizard- onSuccess={() => router.push('/partners/list')}+ onSuccess={() => router.push(localizeHref(locale, '/partners'))}resetSignal={0}/></ApplyContainer>diff --git a/packages/twenty-website/src/app/[locale]/(site)/partners/become/page.tsx b/packages/twenty-website/src/app/[locale]/(site)/partners/become/page.tsxnew file mode 100644index 00000000000..87e30e8dacc--- /dev/null+++ b/packages/twenty-website/src/app/[locale]/(site)/partners/become/page.tsx@@ -0,0 +1,60 @@+import { PartnerApplicationModalRoot } from '@/partner-application';+import { getCommunityStats } from '@/platform/community';+import {+ getRouteI18n,+ type LocaleRouteParams,+} from '@/platform/i18n/get-route-i18n';+import { resolveLocaleParam } from '@/platform/i18n/resolve-locale-param';+import {+ buildBreadcrumbListJsonLd,+ buildRouteMetadata,+ JsonLd,+} from '@/platform/seo';+import { CaseStudyPromo } from '@/sections/case-study-promo';+import { BecomePartnerFaq } from '@/sections/faq';+import { Menu } from '@/sections/menu';+import { PartnerHero } from '@/sections/partner-hero';+import { PartnerSignoff } from '@/sections/partner-signoff';+import { PartnerTestimonials } from '@/sections/testimonials';+import { TrustedBy } from '@/sections/trusted-by';++export const generateMetadata = buildRouteMetadata('partnersBecome');++export default async function BecomePartnerPage({+ params,+}: {+ params: Promise<LocaleRouteParams>;+}) {+ const [, communityStats] = await Promise.all([+ getRouteI18n(params),+ getCommunityStats(),+ ]);+ const locale = resolveLocaleParam((await params).locale);++ return (+ <PartnerApplicationModalRoot>+ <JsonLd+ data={buildBreadcrumbListJsonLd(+ [+ { name: 'Home', path: '/' },+ { name: 'Partners', path: '/partners' },+ { name: 'Become a partner', path: '/partners/become' },+ ],+ locale,+ )}+ />+ <Menu communityStats={communityStats} />+ <main>+ <PartnerHero />+ <PartnerTestimonials />+ {/* TrustedBy + CaseStudyPromo form one continuous frame: the promo+ `connectsUp` into the band, so this adjacency is load-bearing —+ don't separate or reorder them. */}+ <TrustedBy />+ <CaseStudyPromo />+ <PartnerSignoff />+ <BecomePartnerFaq />+ </main>+ </PartnerApplicationModalRoot>+ );+}diff --git a/packages/twenty-website/src/app/[locale]/(site)/partners/list/page.tsx b/packages/twenty-website/src/app/[locale]/(site)/partners/list/page.tsxdeleted file mode 100644index 589f74666cd..00000000000--- a/packages/twenty-website/src/app/[locale]/(site)/partners/list/page.tsx+++ /dev/null@@ -1,57 +0,0 @@-import { Suspense } from 'react';--import { getCommunityStats } from '@/platform/community';-import {- getRouteI18n,- type LocaleRouteParams,-} from '@/platform/i18n/get-route-i18n';-import { resolveLocaleParam } from '@/platform/i18n/resolve-locale-param';-import { getMarketplacePartners } from '@/partners-marketplace/marketplace-partners-source';-import { MarketplaceClient } from '@/partners-marketplace/MarketplaceClient';-import { MarketplaceListSkeleton } from '@/partners-marketplace/MarketplaceListSkeleton';-import { MarketplaceHeader } from '@/partners-marketplace/MarketplaceHeader';-import {- buildBreadcrumbListJsonLd,- buildRouteMetadata,- JsonLd,-} from '@/platform/seo';-import { Menu } from '@/sections/menu';--export const generateMetadata = buildRouteMetadata('partnersList');--export const dynamic = 'force-dynamic';--export default async function PartnersMarketplacePage({- params,-}: {- params: Promise<LocaleRouteParams>;-}) {- const [, communityStats, partners] = await Promise.all([- getRouteI18n(params),- getCommunityStats(),- getMarketplacePartners(),- ]);- const locale = resolveLocaleParam((await params).locale);-- return (- <>- <JsonLd- data={buildBreadcrumbListJsonLd(- [- { name: 'Home', path: '/' },- { name: 'Partners', path: '/partners' },- { name: 'Marketplace', path: '/partners/list' },- ],- locale,- )}- />- <Menu communityStats={communityStats} scheme="light" />- <main>- <MarketplaceHeader />- <Suspense fallback={<MarketplaceListSkeleton />}>- <MarketplaceClient partners={partners} />- </Suspense>- </main>- </>- );-}diff --git a/packages/twenty-website/src/app/[locale]/(site)/partners/page.tsx b/packages/twenty-website/src/app/[locale]/(site)/partners/page.tsxindex 044f3ee9be0..96003dab352 100644--- a/packages/twenty-website/src/app/[locale]/(site)/partners/page.tsx+++ b/packages/twenty-website/src/app/[locale]/(site)/partners/page.tsx@@ -1,4 +1,10 @@+import { Suspense } from 'react';++import { ClientBriefModalRoot } from '@/client-brief';import { PartnerApplicationModalRoot } from '@/partner-application';+import { MarketplaceBriefPrompt } from '@/partners-marketplace/MarketplaceBriefPrompt';+import { getMarketplacePartners } from '@/partners-marketplace/marketplace-partners-source';+import { MarketplaceListSkeleton } from '@/partners-marketplace/MarketplaceListSkeleton';import { getCommunityStats } from '@/platform/community';import {getRouteI18n,@@ -10,18 +16,30 @@ import {buildRouteMetadata,JsonLd,} from '@/platform/seo';-import { CaseStudyPromo } from '@/sections/case-study-promo';-import { Faq } from '@/sections/faq';+import { PartnerFaq } from '@/sections/faq';import { Menu } from '@/sections/menu';-import { PartnerHero } from '@/sections/partner-hero';-import { PartnerSignoff } from '@/sections/partner-signoff';-import { PartnerTestimonials } from '@/sections/testimonials';-import { TrustedBy } from '@/sections/trusted-by';+import { PartnerLeadHero } from '@/sections/partner-hero';+import {+ PartnerBecomeStrip,+ PartnerDirectory,+ PartnerDirectoryPanel,+ PartnerServicesExplainer,+} from '@/sections/partner-lead';export const generateMetadata = buildRouteMetadata('partners');-// Sections land in old-site order as their ports arrive.-export default async function PartnerPage({+export const dynamic = 'force-dynamic';++// Kept out of the page-level await: the rest of the page must not wait on a+// call only the directory needs, and awaiting it there also resolves it before+// the boundary renders, leaving MarketplaceListSkeleton dead.+async function PartnerDirectoryZone() {+ const partners = await getMarketplacePartners();++ return <PartnerDirectoryPanel partners={partners} />;+}++export default async function PartnersPage({params,}: {params: Promise<LocaleRouteParams>;@@ -34,27 +52,30 @@ export default async function PartnerPage({return (<PartnerApplicationModalRoot>- <JsonLd- data={buildBreadcrumbListJsonLd(- [- { name: 'Home', path: '/' },- { name: 'Partners', path: '/partners' },- ],- locale,- )}- />- <Menu communityStats={communityStats} />- <main>- <PartnerHero />- {/* TrustedBy + CaseStudyPromo form one continuous frame: the promo- `connectsUp` into the band, so this adjacency is load-bearing —- don't separate or reorder them. */}- <TrustedBy />- <CaseStudyPromo />- <PartnerTestimonials />- <PartnerSignoff />- <Faq />- </main>+ <ClientBriefModalRoot>+ <JsonLd+ data={buildBreadcrumbListJsonLd(+ [+ { name: 'Home', path: '/' },+ { name: 'Partners', path: '/partners' },+ ],+ locale,+ )}+ />+ <Menu communityStats={communityStats} />+ <main>+ <PartnerLeadHero />+ <PartnerDirectory>+ <Suspense fallback={<MarketplaceListSkeleton />}>+ <PartnerDirectoryZone />+ </Suspense>+ </PartnerDirectory>+ <PartnerServicesExplainer />+ <MarketplaceBriefPrompt />+ <PartnerFaq />+ <PartnerBecomeStrip />+ </main>+ </ClientBriefModalRoot></PartnerApplicationModalRoot>);}diff --git a/packages/twenty-website/src/app/[locale]/(site)/partners/profile/[slug]/page.tsx b/packages/twenty-website/src/app/[locale]/(site)/partners/profile/[slug]/page.tsxindex 0b1f0441116..87fee675a8e 100644--- a/packages/twenty-website/src/app/[locale]/(site)/partners/profile/[slug]/page.tsx+++ b/packages/twenty-website/src/app/[locale]/(site)/partners/profile/[slug]/page.tsx@@ -59,7 +59,6 @@ export default async function PartnerProfilePage({[{ name: 'Home', path: '/' },{ name: 'Partners', path: '/partners' },- { name: 'Marketplace', path: '/partners/list' },{ name: partner.name, path: `/partners/profile/${partner.slug}` },],locale,diff --git a/packages/twenty-website/src/client-brief/ClientBriefModal.tsx b/packages/twenty-website/src/client-brief/ClientBriefModal.tsxnew file mode 100644index 00000000000..038ae23c4b3--- /dev/null+++ b/packages/twenty-website/src/client-brief/ClientBriefModal.tsx@@ -0,0 +1,56 @@+'use client';++import { msg } from '@lingui/core/macro';+import { useLingui } from '@lingui/react';+import { styled } from '@linaria/react';+import dynamic from 'next/dynamic';++import { buildSchemeContext, fontSize, semanticColor, spacing } from '@/tokens';+import { Modal } from '@/ui';++const WizardFallback = styled.p`+ color: ${semanticColor.inkMuted};+ font-size: ${fontSize(4)};+ padding-block: ${spacing(8)};+ text-align: center;+`;++function WizardLoadingFallback() {+ const { i18n } = useLingui();+ return <WizardFallback>{i18n._(msg`Loading…`)}</WizardFallback>;+}++// The wizard — its fields, schemas, and steps — ships only when the modal+// first opens, never on a page load where the visitor does not get matched.+const ClientBriefWizard = dynamic(+ () =>+ import('./wizard/ClientBriefWizard').then((mod) => ({+ default: mod.ClientBriefWizard,+ })),+ { loading: () => <WizardLoadingFallback />, ssr: false },+);++// The near-black Modal panel is scheme-agnostic; the wizard reads semantic+// colours and the Button keys on [data-scheme], so it runs on a dark scope —+// the same context the full-page /partners/brief mount establishes.+const WizardScope = styled.div`+ ${buildSchemeContext('dark')}+`;++export function ClientBriefModal({+ onClose,+ open,+}: {+ onClose: () => void;+ open: boolean;+}) {+ const { i18n } = useLingui();++ return (+ <Modal ariaLabel={i18n._(msg`Get matched`)} onClose={onClose} open={open}>+ <WizardScope data-scheme="dark">+ <ClientBriefWizard onSuccess={onClose} />+ </WizardScope>+ </Modal>+ );+}diff --git a/packages/twenty-website/src/client-brief/ClientBriefModalRoot.tsx b/packages/twenty-website/src/client-brief/ClientBriefModalRoot.tsxnew file mode 100644index 00000000000..359fcff9367--- /dev/null+++ b/packages/twenty-website/src/client-brief/ClientBriefModalRoot.tsx@@ -0,0 +1,21 @@+'use client';++import { useMemo, useState, type ReactNode } from 'react';++import { ClientBriefModal } from './ClientBriefModal';+import { ClientBriefModalContext } from './client-brief-modal-context';++export function ClientBriefModalRoot({ children }: { children: ReactNode }) {+ const [isOpen, setIsOpen] = useState(false);+ const contextValue = useMemo(+ () => ({ openClientBriefModal: () => setIsOpen(true) }),+ [],+ );++ return (+ <ClientBriefModalContext.Provider value={contextValue}>+ {children}+ <ClientBriefModal onClose={() => setIsOpen(false)} open={isOpen} />+ </ClientBriefModalContext.Provider>+ );+}diff --git a/packages/twenty-website/src/client-brief/GetMatchedButton.tsx b/packages/twenty-website/src/client-brief/GetMatchedButton.tsxnew file mode 100644index 00000000000..6fdc628d2ae--- /dev/null+++ b/packages/twenty-website/src/client-brief/GetMatchedButton.tsx@@ -0,0 +1,15 @@+'use client';++import { type MessageDescriptor } from '@lingui/core';+import { useLingui } from '@lingui/react';++import { Button } from '@/ui';++import { useClientBriefModal } from './use-client-brief-modal';++export function GetMatchedButton({ label }: { label: MessageDescriptor }) {+ const { i18n } = useLingui();+ const { openClientBriefModal } = useClientBriefModal();++ return <Button label={i18n._(label)} onClick={openClientBriefModal} />;+}diff --git a/packages/twenty-website/src/client-brief/client-brief-copy.ts b/packages/twenty-website/src/client-brief/client-brief-copy.tsindex f1257cd5bac..3243ccbe2f5 100644--- a/packages/twenty-website/src/client-brief/client-brief-copy.ts+++ b/packages/twenty-website/src/client-brief/client-brief-copy.ts@@ -10,6 +10,7 @@ export const CLIENT_BRIEF_COPY = {submitInFlight: msg`Submitting…`,successTitle: msg`Thanks — we received your brief.`,successBody: msg`Our team will review your project and follow up by email. You won't hear from partners until we've matched you.`,+ successDone: msg`Done`,stepProgressLabel: (current: number, total: number) =>msg`Step ${current} of ${total}`,validation: {diff --git a/packages/twenty-website/src/client-brief/client-brief-modal-context.ts b/packages/twenty-website/src/client-brief/client-brief-modal-context.tsnew file mode 100644index 00000000000..b7ac9ed0361--- /dev/null+++ b/packages/twenty-website/src/client-brief/client-brief-modal-context.ts@@ -0,0 +1,10 @@+'use client';++import { createContext } from 'react';++export type ClientBriefModalContextValue = {+ openClientBriefModal: () => void;+};++export const ClientBriefModalContext =+ createContext<ClientBriefModalContextValue | null>(null);diff --git a/packages/twenty-website/src/client-brief/index.ts b/packages/twenty-website/src/client-brief/index.tsindex 9455801fcc9..9bd7be28d15 100644--- a/packages/twenty-website/src/client-brief/index.ts+++ b/packages/twenty-website/src/client-brief/index.ts@@ -1 +1,3 @@+export { ClientBriefModalRoot } from './ClientBriefModalRoot';export { ClientBriefWizard } from './wizard/ClientBriefWizard';+export { GetMatchedButton } from './GetMatchedButton';diff --git a/packages/twenty-website/src/client-brief/use-client-brief-modal.ts b/packages/twenty-website/src/client-brief/use-client-brief-modal.tsnew file mode 100644index 00000000000..9d9facb1d21--- /dev/null+++ b/packages/twenty-website/src/client-brief/use-client-brief-modal.ts@@ -0,0 +1,15 @@+'use client';++import { useContext } from 'react';++import { ClientBriefModalContext } from './client-brief-modal-context';++export function useClientBriefModal() {+ const value = useContext(ClientBriefModalContext);+ if (value === null) {+ throw new Error(+ 'useClientBriefModal must be used within ClientBriefModalRoot',+ );+ }+ return value;+}diff --git a/packages/twenty-website/src/client-brief/wizard/ClientBriefSuccess.tsx b/packages/twenty-website/src/client-brief/wizard/ClientBriefSuccess.tsxindex 44fbbb99fa0..71f9e88dc67 100644--- a/packages/twenty-website/src/client-brief/wizard/ClientBriefSuccess.tsx+++ b/packages/twenty-website/src/client-brief/wizard/ClientBriefSuccess.tsx@@ -3,8 +3,8 @@import { useLingui } from '@lingui/react';import { styled } from '@linaria/react';-import { Body, Heading } from '@/ui';import { spacing } from '@/tokens';+import { Body, Button, Heading } from '@/ui';import { CLIENT_BRIEF_COPY } from '../client-brief-copy';@@ -18,7 +18,11 @@ const SuccessView = styled.div`}`;-export function ClientBriefSuccess() {+const Actions = styled.div`+ align-self: flex-end;+`;++export function ClientBriefSuccess({ onDismiss }: { onDismiss?: () => void }) {const { i18n } = useLingui();return (@@ -30,6 +34,16 @@ export function ClientBriefSuccess() {<Body muted size="md">{i18n._(CLIENT_BRIEF_COPY.successBody)}</Body>+ {onDismiss !== undefined && (+ <Actions>+ <Button+ label={i18n._(CLIENT_BRIEF_COPY.successDone)}+ onClick={onDismiss}+ type="button"+ variant="filled"+ />+ </Actions>+ )}</SuccessView></>);diff --git a/packages/twenty-website/src/client-brief/wizard/ClientBriefWizard.tsx b/packages/twenty-website/src/client-brief/wizard/ClientBriefWizard.tsxindex 004955c669d..a0a8faf8256 100644--- a/packages/twenty-website/src/client-brief/wizard/ClientBriefWizard.tsx+++ b/packages/twenty-website/src/client-brief/wizard/ClientBriefWizard.tsx@@ -135,7 +135,13 @@ function StepRenderer({ controller }: { controller: ClientBriefController }) {}}-export function ClientBriefWizard({ partnerSlug }: { partnerSlug?: string }) {+export function ClientBriefWizard({+ onSuccess,+ partnerSlug,+}: {+ onSuccess?: () => void;+ partnerSlug?: string;+}) {const { i18n } = useLingui();const controller = useClientBriefState();const {@@ -209,7 +215,7 @@ export function ClientBriefWizard({ partnerSlug }: { partnerSlug?: string }) {);if (state.isSubmitted) {- return <ClientBriefSuccess />;+ return <ClientBriefSuccess onDismiss={onSuccess} />;}const stepLabel = `${i18n._(diff --git a/packages/twenty-website/src/partners-marketplace/BackToMarketplaceLink.tsx b/packages/twenty-website/src/partners-marketplace/BackToMarketplaceLink.tsxindex fe56645b246..972da05e12c 100644--- a/packages/twenty-website/src/partners-marketplace/BackToMarketplaceLink.tsx+++ b/packages/twenty-website/src/partners-marketplace/BackToMarketplaceLink.tsx@@ -5,6 +5,7 @@ import { useLingui } from '@lingui/react';import { styled } from '@linaria/react';import { LocalizedLink } from '@/platform/i18n/LocalizedLink';+import { PARTNER_DIRECTORY_ANCHOR_ID } from '@/platform/routing/partner-directory-anchor-id';import { fontFamily, fontSize, semanticColor } from '@/tokens';const BackLink = styled(LocalizedLink)`@@ -23,6 +24,8 @@ export function BackToMarketplaceLink() {const { i18n } = useLingui();return (- <BackLink href="/partners/list">{i18n._(msg`← Twenty partners`)}</BackLink>+ <BackLink href={`/partners#${PARTNER_DIRECTORY_ANCHOR_ID}`}>+ {i18n._(msg`← Twenty partners`)}+ </BackLink>);}diff --git a/packages/twenty-website/src/partners-marketplace/EmptyState.tsx b/packages/twenty-website/src/partners-marketplace/EmptyState.tsxindex 0a7e22c9fc1..d4fce581248 100644--- a/packages/twenty-website/src/partners-marketplace/EmptyState.tsx+++ b/packages/twenty-website/src/partners-marketplace/EmptyState.tsx@@ -21,7 +21,7 @@ const Wrapper = styled.div`text-align: center;`;-const Title = styled.h2`+const Title = styled.h3`color: ${semanticColor.ink};font-family: ${fontFamily('sans')};font-size: ${fontSize(4.5)};diff --git a/packages/twenty-website/src/partners-marketplace/FilterBar.tsx b/packages/twenty-website/src/partners-marketplace/FilterBar.tsxindex c30d30a802e..a0556504b9c 100644--- a/packages/twenty-website/src/partners-marketplace/FilterBar.tsx+++ b/packages/twenty-website/src/partners-marketplace/FilterBar.tsx@@ -1,6 +1,6 @@'use client';-import { msg } from '@lingui/core/macro';+import { msg, plural } from '@lingui/core/macro';import { useLingui } from '@lingui/react';import { styled } from '@linaria/react';@@ -62,6 +62,25 @@ const ResultCount = styled.p`line-height: ${fontSize(4)};`;+const resultCountMessage = ({+ hasAnyFilter,+ totalCount,+ visibleCount,+}: Pick<FilterBarProps, 'hasAnyFilter' | 'totalCount' | 'visibleCount'>) => {+ if (hasAnyFilter) {+ return msg`Showing ${visibleCount} of ${totalCount} partners`;+ }++ if (totalCount === 0) {+ return msg`No partners to show right now`;+ }++ return msg`${plural(totalCount, {+ one: '# certified partner ready to take on your project',+ other: '# certified partners ready to take on your project',+ })}`;+};+export function FilterBar({criteria,hasAnyFilter,@@ -92,6 +111,12 @@ export function FilterBar({})),];+ const resultCountLabel = resultCountMessage({+ hasAnyFilter,+ totalCount,+ visibleCount,+ });+return (<BarRoot aria-label={i18n._(msg`Filter partners`)} role="search"><DropdownRow>@@ -119,11 +144,7 @@ export function FilterBar({</DropdownRow>{hasAnyFilter && <ActiveFilterPills pills={pills} />}<Footer>- <ResultCount aria-live="polite">- {hasAnyFilter- ? i18n._(msg`Showing ${visibleCount} of ${totalCount} partners`)- : i18n._(msg`Showing all ${totalCount} partners`)}- </ResultCount>+ <ResultCount aria-live="polite">{i18n._(resultCountLabel)}</ResultCount>{hasAnyFilter && (<Buttonlabel={i18n._(msg`Clear filters`)}diff --git a/packages/twenty-website/src/partners-marketplace/MarketplaceBriefLink.tsx b/packages/twenty-website/src/partners-marketplace/MarketplaceBriefLink.tsxdeleted file mode 100644index d4c988a02d8..00000000000--- a/packages/twenty-website/src/partners-marketplace/MarketplaceBriefLink.tsx+++ /dev/null@@ -1,12 +0,0 @@-'use client';--import { styled } from '@linaria/react';--import { LocalizedLink } from '@/platform/i18n/LocalizedLink';-import { color } from '@/tokens';--export const MarketplaceBriefLink = styled(LocalizedLink)`- color: ${color('blue')};- text-decoration: underline;- text-underline-offset: 2px;-`;diff --git a/packages/twenty-website/src/partners-marketplace/MarketplaceClient.tsx b/packages/twenty-website/src/partners-marketplace/MarketplaceClient.tsxdeleted file mode 100644index a6872405a0a..00000000000--- a/packages/twenty-website/src/partners-marketplace/MarketplaceClient.tsx+++ /dev/null@@ -1,63 +0,0 @@-'use client';--import { styled } from '@linaria/react';-import { useMemo } from 'react';--import { spacing } from '@/tokens';-import { SectionShell } from '@/ui';--import { MarketplaceBriefPrompt } from './MarketplaceBriefPrompt';-import { MarketplaceEmptyState } from './EmptyState';-import { FilterBar } from './FilterBar';-import { filterPartners } from './filter-partners';-import { MarketplaceGrid } from './MarketplaceGrid';-import { type MarketplacePartner } from './marketplace-partner';-import { useMarketplaceFilterState } from './use-marketplace-filter-state';--const Results = styled.div`- margin-top: ${spacing(6)};-`;--export function MarketplaceClient({- partners,-}: {- partners: readonly MarketplacePartner[];-}) {- const {- criteria,- hasAnyFilter,- toggleRegion,- toggleLanguage,- toggleCategory,- clearAll,- } = useMarketplaceFilterState();-- const filteredPartners = useMemo(- () => filterPartners(partners, criteria),- [partners, criteria],- );-- return (- <>- <SectionShell rhythm="section" scheme="light">- <FilterBar- criteria={criteria}- hasAnyFilter={hasAnyFilter}- onClearAll={clearAll}- onToggleCategory={toggleCategory}- onToggleLanguage={toggleLanguage}- onToggleRegion={toggleRegion}- totalCount={partners.length}- visibleCount={filteredPartners.length}- />- <Results>- <MarketplaceGrid partners={filteredPartners} />- {filteredPartners.length === 0 && partners.length > 0 && (- <MarketplaceEmptyState onClearFilters={clearAll} />- )}- </Results>- </SectionShell>- {partners.length > 0 && <MarketplaceBriefPrompt />}- </>- );-}diff --git a/packages/twenty-website/src/partners-marketplace/MarketplaceHeader.tsx b/packages/twenty-website/src/partners-marketplace/MarketplaceHeader.tsxdeleted file mode 100644index bb9b44180e1..00000000000--- a/packages/twenty-website/src/partners-marketplace/MarketplaceHeader.tsx+++ /dev/null@@ -1,59 +0,0 @@-import { msg } from '@lingui/core/macro';-import { Trans } from '@lingui/react/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';--import { MarketplaceBriefLink } from './MarketplaceBriefLink';--// Left-aligned page intro on the shared hero rhythm (the old marketplace-// header's larger one-off top padding normalizes onto rhythm="hero", the-// ratified rhythm system). The grid section follows on the same light surface.-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 MarketplaceHeader() {- const i18n = getServerI18n();-- return (- <SectionShell rhythm="hero" scheme="light">- <HeaderStack>- <Eyebrow>{i18n._(msg`Marketplace`)}</Eyebrow>- <Heading as="h1" size="lg" weight="light">- {i18n._(msg`Find your *Twenty partner*`)}- </Heading>- <HeaderBody>- <Body muted size="md">- <Trans>- Twenty's certified partners help teams migrate, customise,- and operate the open source CRM across regions, languages, and- deployment models. Browse profiles and book a call, or{' '}- <MarketplaceBriefLink href="/partners/brief">- tell us what you need- </MarketplaceBriefLink>{' '}- and we'll match you.- </Trans>- </Body>- </HeaderBody>- </HeaderStack>- </SectionShell>- );-}diff --git a/packages/twenty-website/src/partners-marketplace/MarketplaceListSkeleton.tsx b/packages/twenty-website/src/partners-marketplace/MarketplaceListSkeleton.tsxindex 0df748358ed..980462296d3 100644--- a/packages/twenty-website/src/partners-marketplace/MarketplaceListSkeleton.tsx+++ b/packages/twenty-website/src/partners-marketplace/MarketplaceListSkeleton.tsx@@ -8,11 +8,13 @@ import {semanticColor,spacing,} from '@/tokens';-import { SectionShell } from '@/ui';-const AVATAR_SIZE_PX = 48;const SKELETON_CARD_COUNT = 6;+const PendingResults = styled.div`+ margin-top: ${spacing(10)};+`;+const SkeletonBlock = styled.div`animation: marketplaceSkeletonPulse 1.4s ease-in-out infinite;background-color: ${semanticColor.line};@@ -144,14 +146,16 @@ function PartnerCardSkeleton() {);}+// Rendered inside the directory section, under its header — the shell and the+// anchor belong to the part of the zone that never waits on the API.export function MarketplaceListSkeleton() {return (- <SectionShell rhythm="section" scheme="light">+ <PendingResults aria-busy="true"><CardGrid>{Array.from({ length: SKELETON_CARD_COUNT }, (_, index) => (<PartnerCardSkeleton key={index} />))}</CardGrid>- </SectionShell>+ </PendingResults>);}diff --git a/packages/twenty-website/src/partners-marketplace/MarketplaceMatchCard.tsx b/packages/twenty-website/src/partners-marketplace/MarketplaceMatchCard.tsxindex 683dca36541..aa487e97472 100644--- a/packages/twenty-website/src/partners-marketplace/MarketplaceMatchCard.tsx+++ b/packages/twenty-website/src/partners-marketplace/MarketplaceMatchCard.tsx@@ -103,7 +103,7 @@ export function MarketplaceMatchCard({ index = 0 }: { index?: number }) {<Content><Copy><Eyebrow>{i18n._(msg`Partner matching`)}</Eyebrow>- <Heading as="h2" size="sm" weight="light">+ <Heading as="h3" size="sm" weight="light">{i18n._(msg`Let us *match* you`)}</Heading><Body muted size="sm">diff --git a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.ts b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.tsindex c6faaefd7b8..d1fb79558af 100644--- a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.ts+++ b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.test.ts@@ -105,16 +105,24 @@ describe('fetchLiveMarketplacePartners', () => {{ approvedCaseStudyWithCoverCount: -1 },],])(- 'throws when the payload breaks the ranking contract on %s',+ 'degrades to [] and names the offending partner when the payload breaks the ranking contract on %s',async (field, override) => {+ const errorSpy = jest+ .spyOn(console, 'error')+ .mockImplementation(() => undefined);mockedFetch.mockResolvedValue({ok: true,partners: [{ ...rankablePartner, ...override }],});- await expect(fetchLiveMarketplacePartners()).rejects.toThrow(- new RegExp(`${field}.*acme`),+ expect(await fetchLiveMarketplacePartners()).toEqual([]);+ expect(errorSpy).toHaveBeenCalledWith(+ '[partners-marketplace] ranking contract broken:',+ expect.objectContaining({+ message: expect.stringMatching(new RegExp(`${field}.*acme`)),+ }),);+ errorSpy.mockRestore();},);diff --git a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.ts b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.tsindex 45f3bf910dc..b557e437a70 100644--- a/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.ts+++ b/packages/twenty-website/src/partners-marketplace/fetch-live-marketplace-partners.ts@@ -76,9 +76,11 @@ const readPartnerTier = (value: unknown): PartnerTier | null =>PARTNER_TIERS.find((tier) => tier === value) ?? null;// The live source: normalize the CRM payload into MarketplacePartner. Degrades-// to [] when the API is unreachable or shapeless (matching the old getPartners)-// so the page renders the empty state rather than crashing. A payload that-// breaks the ranking contract throws instead — see assertRankingContract.+// to [] when the API is unreachable, shapeless, or breaks the ranking contract+// (matching the old getPartners) so the page renders the empty state rather+// than crashing. The whole list goes, not the offending row: one unrankable+// partner makes every seat below it unearned, and a silently mis-ranked+// directory is worse than none.export async function fetchLiveMarketplacePartners(): Promise<readonly RankedMarketplacePartner[]> {@@ -101,38 +103,43 @@ export async function fetchLiveMarketplacePartners(): Promise<return [];}- return partners.map((apiPartner) => {- assertRankingContract(apiPartner);+ try {+ return partners.map((apiPartner) => {+ assertRankingContract(apiPartner);- return {- slug: apiPartner.slug,- name: apiPartner.name,- description: apiPartner.introduction ?? '',- languagesSpoken: apiPartner.languagesSpoken,- partnerScope: apiPartner.partnerScope ?? [],- region: apiPartner.region,- calendarLink: linkUrl(apiPartner.calendarLink),- hourlyRateUsd: microsToUsd(apiPartner.hourlyRate),- projectBudgetMinUsd: microsToUsd(apiPartner.projectBudgetMin),- links: {- linkedin: linkUrl(apiPartner.linkedin) || null,- website: linkUrl(apiPartner.website) || null,- x: null,- github: null,- },- profilePictureUrl: linkUrl(apiPartner.profilePicture),- skills: apiPartner.skills ?? [],- city: apiPartner.city ?? '',- country: apiPartner.country ?? '',- services: [],- portfolio: [],- clients: [],- partnerTier: readPartnerTier(apiPartner.partnerTier),- serviceCount: apiPartner.serviceCount,- approvedCaseStudyCount: apiPartner.approvedCaseStudyCount,- approvedCaseStudyWithCoverCount:- apiPartner.approvedCaseStudyWithCoverCount,- rotationKey: apiPartner.rotationKey,- };- });+ return {+ slug: apiPartner.slug,+ name: apiPartner.name,+ description: apiPartner.introduction ?? '',+ languagesSpoken: apiPartner.languagesSpoken,+ partnerScope: apiPartner.partnerScope ?? [],+ region: apiPartner.region,+ calendarLink: linkUrl(apiPartner.calendarLink),+ hourlyRateUsd: microsToUsd(apiPartner.hourlyRate),+ projectBudgetMinUsd: microsToUsd(apiPartner.projectBudgetMin),+ links: {+ linkedin: linkUrl(apiPartner.linkedin) || null,+ website: linkUrl(apiPartner.website) || null,+ x: null,+ github: null,+ },+ profilePictureUrl: linkUrl(apiPartner.profilePicture),+ skills: apiPartner.skills ?? [],+ city: apiPartner.city ?? '',+ country: apiPartner.country ?? '',+ services: [],+ portfolio: [],+ clients: [],+ partnerTier: readPartnerTier(apiPartner.partnerTier),+ serviceCount: apiPartner.serviceCount,+ approvedCaseStudyCount: apiPartner.approvedCaseStudyCount,+ approvedCaseStudyWithCoverCount:+ apiPartner.approvedCaseStudyWithCoverCount,+ rotationKey: apiPartner.rotationKey,+ };+ });+ } catch (error) {+ console.error('[partners-marketplace] ranking contract broken:', error);+ return [];+ }}diff --git a/packages/twenty-website/src/platform/routing/partner-directory-anchor-id.ts b/packages/twenty-website/src/platform/routing/partner-directory-anchor-id.tsnew file mode 100644index 00000000000..02cd0e1de7c--- /dev/null+++ b/packages/twenty-website/src/platform/routing/partner-directory-anchor-id.ts@@ -0,0 +1,4 @@+// The lead page's directory zone is reached by anchor from the hero CTA+// (sections) and from a partner profile's back link (partners-marketplace).+// Those two layers may not import each other, so the id lives here.+export const PARTNER_DIRECTORY_ANCHOR_ID = 'partner-directory';diff --git a/packages/twenty-website/src/platform/routing/static-website-routes.ts b/packages/twenty-website/src/platform/routing/static-website-routes.tsindex a8f3b59ce64..4b1db185142 100644--- a/packages/twenty-website/src/platform/routing/static-website-routes.ts+++ b/packages/twenty-website/src/platform/routing/static-website-routes.ts@@ -86,21 +86,12 @@ export const STATIC_WEBSITE_ROUTES: readonly WebsiteRoute[] = [},{changeFrequency: 'monthly',- description: msg`Find a certified Twenty partner to migrate, customise, and operate your open source CRM, or join the ecosystem and grow your practice with us.`,+ description: msg`Tell us what you need and get matched with a certified Twenty partner in 48 hours, or browse the directory of agencies and consultants who migrate, customise, and operate the open source CRM.`,id: 'partners',indexed: true,path: '/partners',priority: 0.7,- title: msg`Twenty Partners — Certified Open Source CRM Implementers`,- },- {- changeFrequency: 'weekly',- description: msg`Browse Twenty's certified partners — the agencies and individuals who migrate, customise, host, and support the open source CRM across regions, languages, and deployment models.`,- id: 'partnersList',- indexed: true,- path: '/partners/list',- priority: 0.6,- title: msg`Find a Twenty Partner — Open Source CRM Marketplace`,+ title: msg`Find a Twenty Partner — Certified Open Source CRM Experts`,},{// The application form: noindex (a utility route, excluded from the@@ -113,6 +104,15 @@ export const STATIC_WEBSITE_ROUTES: readonly WebsiteRoute[] = [priority: 0.3,title: msg`Become a Twenty Partner — Apply`,},+ {+ changeFrequency: 'monthly',+ description: msg`Join the Twenty partner ecosystem: implement, migrate, and support the #1 open source CRM, and grow your practice with the teams building it.`,+ id: 'partnersBecome',+ indexed: true,+ path: '/partners/become',+ priority: 0.6,+ title: msg`Become a Twenty Partner — Join the Open Source CRM Ecosystem`,+ },{changeFrequency: 'yearly',description: msg`Submit a project brief and get matched with a certified Twenty partner for migration, customisation, and CRM implementation.`,diff --git a/packages/twenty-website/src/platform/routing/website-route.ts b/packages/twenty-website/src/platform/routing/website-route.tsindex 04f17d5ddcc..23fef9400d7 100644--- a/packages/twenty-website/src/platform/routing/website-route.ts+++ b/packages/twenty-website/src/platform/routing/website-route.ts@@ -14,8 +14,8 @@ export type WebsiteRouteId =| 'home'| 'partners'| 'partnersApply'+ | 'partnersBecome'| 'partnersBrief'- | 'partnersList'| 'pricing'| 'privacyPolicy'| 'product'diff --git a/packages/twenty-website/src/sections/faq/BecomePartnerFaq.tsx b/packages/twenty-website/src/sections/faq/BecomePartnerFaq.tsxnew file mode 100644index 00000000000..ff7eab446a6--- /dev/null+++ b/packages/twenty-website/src/sections/faq/BecomePartnerFaq.tsx@@ -0,0 +1,45 @@+import { msg } from '@lingui/core/macro';+import { styled } from '@linaria/react';++import { getServerI18n } from '@/platform/i18n/get-server-i18n';+import { buildFaqPageJsonLd } from '@/platform/seo/build-faq-page-json-ld';+import { JsonLd } from '@/platform/seo/JsonLd';+import { mediaUp } from '@/tokens';+import {+ Eyebrow,+ Heading,+ SectionIntro,+ SectionShell,+ SectionStack,+} from '@/ui';++import { BECOME_PARTNER_FAQ_QUESTIONS } from './become-partner-faq.data';+import { FaqBackdrop } from './FaqBackdrop';+import { FaqItems } from './FaqItems';++const HeadingMeasure = styled.div`+ ${mediaUp('md')} {+ max-width: 700px;+ }+`;++export function BecomePartnerFaq() {+ const i18n = getServerI18n();++ return (+ <SectionShell background={<FaqBackdrop />} rhythm="spacious" scheme="dark">+ <JsonLd data={buildFaqPageJsonLd(i18n, BECOME_PARTNER_FAQ_QUESTIONS)} />+ <SectionStack>+ <SectionIntro>+ <Eyebrow>{i18n._(msg`Questions`)}</Eyebrow>+ <HeadingMeasure>+ <Heading as="h2" size="lg" weight="light">+ {i18n._(msg`Becoming *a Twenty partner*`)}+ </Heading>+ </HeadingMeasure>+ </SectionIntro>+ <FaqItems questions={BECOME_PARTNER_FAQ_QUESTIONS} />+ </SectionStack>+ </SectionShell>+ );+}diff --git a/packages/twenty-website/src/sections/faq/PartnerFaq.tsx b/packages/twenty-website/src/sections/faq/PartnerFaq.tsxnew file mode 100644index 00000000000..56c3d17fea3--- /dev/null+++ b/packages/twenty-website/src/sections/faq/PartnerFaq.tsx@@ -0,0 +1,45 @@+import { msg } from '@lingui/core/macro';+import { styled } from '@linaria/react';++import { getServerI18n } from '@/platform/i18n/get-server-i18n';+import { buildFaqPageJsonLd } from '@/platform/seo/build-faq-page-json-ld';+import { JsonLd } from '@/platform/seo/JsonLd';+import { mediaUp } from '@/tokens';+import {+ Eyebrow,+ Heading,+ SectionIntro,+ SectionShell,+ SectionStack,+} from '@/ui';++import { FaqBackdrop } from './FaqBackdrop';+import { FaqItems } from './FaqItems';+import { PARTNER_FAQ_QUESTIONS } from './partner-faq.data';++const HeadingMeasure = styled.div`+ ${mediaUp('md')} {+ max-width: 700px;+ }+`;++export function PartnerFaq() {+ const i18n = getServerI18n();++ return (+ <SectionShell background={<FaqBackdrop />} rhythm="spacious" scheme="dark">+ <JsonLd data={buildFaqPageJsonLd(i18n, PARTNER_FAQ_QUESTIONS)} />+ <SectionStack>+ <SectionIntro>+ <Eyebrow>{i18n._(msg`Questions`)}</Eyebrow>+ <HeadingMeasure>+ <Heading as="h2" size="lg" weight="light">+ {i18n._(msg`Working with *a Twenty partner*`)}+ </Heading>+ </HeadingMeasure>+ </SectionIntro>+ <FaqItems questions={PARTNER_FAQ_QUESTIONS} />+ </SectionStack>+ </SectionShell>+ );+}diff --git a/packages/twenty-website/src/sections/faq/become-partner-faq.data.ts b/packages/twenty-website/src/sections/faq/become-partner-faq.data.tsnew file mode 100644index 00000000000..8875e4084da--- /dev/null+++ b/packages/twenty-website/src/sections/faq/become-partner-faq.data.ts@@ -0,0 +1,30 @@+import { msg } from '@lingui/core/macro';++import { type FaqQuestion } from './faq.data';++export const BECOME_PARTNER_FAQ_QUESTIONS: readonly FaqQuestion[] = [+ {+ question: msg`How do I apply?`,+ answer: msg`Click Become a partner and complete the short application: who you are, what you cover, and one real Twenty project with proof. We review every application against real, shipped work — acceptance is selective.`,+ },+ {+ question: msg`What are the requirements?`,+ answer: msg`At least one shipped Twenty implementation — customer or internal — with a link that shows the work. Solo freelancers and agencies both qualify.`,+ },+ {+ question: msg`What do I get as a partner?`,+ answer: msg`Certification, plus a directory profile your clients can verify. The best partners also receive client briefs matched to their scope.`,+ },+ {+ question: msg`How do client briefs reach me?`,+ answer: msg`Buyers submit a project brief with scope, timeline, and budget. We hand-pick the certified partners who fit and make the introduction within 48 hours.`,+ },+ {+ question: msg`Does it cost anything?`,+ answer: msg`No. Applying and being listed are free. You set your own rates and keep what you bill.`,+ },+ {+ question: msg`What does certification involve?`,+ answer: msg`We review your delivered projects, technical depth, and customer feedback before you join the directory. Certified partners carry the badge on their profile.`,+ },+];diff --git a/packages/twenty-website/src/sections/faq/index.ts b/packages/twenty-website/src/sections/faq/index.tsindex e46f9101f40..46f2709707a 100644--- a/packages/twenty-website/src/sections/faq/index.ts+++ b/packages/twenty-website/src/sections/faq/index.ts@@ -1 +1,3 @@+export { BecomePartnerFaq } from './BecomePartnerFaq';export { Faq } from './Faq';+export { PartnerFaq } from './PartnerFaq';diff --git a/packages/twenty-website/src/sections/faq/partner-faq.data.ts b/packages/twenty-website/src/sections/faq/partner-faq.data.tsnew file mode 100644index 00000000000..6cf70aa23d2--- /dev/null+++ b/packages/twenty-website/src/sections/faq/partner-faq.data.ts@@ -0,0 +1,30 @@+import { msg } from '@lingui/core/macro';++import { type FaqQuestion } from './faq.data';++export const PARTNER_FAQ_QUESTIONS: readonly FaqQuestion[] = [+ {+ question: msg`How does matching work?`,+ answer: msg`Share a short brief on your project, timeline, and budget. We hand-pick certified partners who fit and introduce you within 48 hours.`,+ },+ {+ question: msg`What do partners charge?`,+ answer: msg`Rates vary by partner and scope. Each partner profile lists their published rates, and you can compare before booking a call.`,+ },+ {+ question: msg`How are partners vetted?`,+ answer: msg`Every partner is certified by Twenty and reviewed on delivered projects, technical depth, and customer feedback before joining the directory.`,+ },+ {+ question: msg`Can a partner run my migration?`,+ answer: msg`Yes. Migration partners move your data out of Salesforce, HubSpot, or spreadsheets, and can own the full cutover for you.`,+ },+ {+ question: msg`Do partners support self-hosting?`,+ answer: msg`Yes. Some partners specialise in deploying, upgrading, and operating self-hosted Twenty instances on your own infrastructure.`,+ },+ {+ question: msg`How do I become a partner?`,+ answer: msg`Agencies and freelancers apply through the Twenty partner program page, which lists the requirements and carries the application form.`,+ },+];diff --git a/packages/twenty-website/src/sections/partner-hero/BrowseDirectoryButton.tsx b/packages/twenty-website/src/sections/partner-hero/BrowseDirectoryButton.tsxnew file mode 100644index 00000000000..a81206f736b--- /dev/null+++ b/packages/twenty-website/src/sections/partner-hero/BrowseDirectoryButton.tsx@@ -0,0 +1,38 @@+'use client';++import { msg } from '@lingui/core/macro';+import { useLingui } from '@lingui/react';+import { type MouseEvent } from 'react';++import { PARTNER_DIRECTORY_ANCHOR_ID } from '@/platform/routing/partner-directory-anchor-id';+import { Button } from '@/ui';++// The anchor is the contract and the smooth scroll only decorates it (the+// case-study nav's pattern): the jump still works before hydration and the+// directory heading takes focus, which scrollIntoView alone never moves.+const scrollToDirectory = (event: MouseEvent<HTMLElement>) => {+ const target = document.getElementById(PARTNER_DIRECTORY_ANCHOR_ID);+ if (target === null) return;++ event.preventDefault();+ target.scrollIntoView({+ behavior: window.matchMedia('(prefers-reduced-motion: reduce)').matches+ ? 'auto'+ : 'smooth',+ block: 'start',+ });+ target.focus({ preventScroll: true });+};++export function BrowseDirectoryButton() {+ const { i18n } = useLingui();++ return (+ <Button+ href={`#${PARTNER_DIRECTORY_ANCHOR_ID}`}+ label={i18n._(msg`Browse partners`)}+ onClick={scrollToDirectory}+ variant="outlined"+ />+ );+}diff --git a/packages/twenty-website/src/sections/partner-hero/PartnerHero.tsx b/packages/twenty-website/src/sections/partner-hero/PartnerHero.tsxindex 9011fcef8f0..fe763e221cd 100644--- a/packages/twenty-website/src/sections/partner-hero/PartnerHero.tsx+++ b/packages/twenty-website/src/sections/partner-hero/PartnerHero.tsx@@ -3,8 +3,17 @@ import { styled } from '@linaria/react';import { BecomePartnerButton } from '@/partner-application';import { getServerI18n } from '@/platform/i18n/get-server-i18n';-import { GRADIENT, HERO_COMPOSITION, mediaUp, spacing } from '@/tokens';-import { Body, Button, Heading, HeadingPair, SectionShell } from '@/ui';+import { LocalizedLink } from '@/platform/i18n/LocalizedLink';+import {+ fontFamily,+ GRADIENT,+ HERO_COMPOSITION,+ mediaUp,+ semanticColor,+ spacing,+ typeRampDeclarations,+} from '@/tokens';+import { Body, Heading, HeadingPair, SectionShell } from '@/ui';import { PartnerVisual } from './PartnerVisual';@@ -48,11 +57,32 @@ const BodyMeasure = styled.div`}`;-const CtaRow = styled.div`+// The hero's single CTA sits on the shared 32px Body->CTA step (IntroStack's+// owl rhythm); the buyer hand-off hangs 12px under it so it reads as a+// footnote to the CTA rather than as a second step in that rhythm.+const CtaStack = styled.div`+ align-items: center;display: flex;- flex-wrap: wrap;- gap: ${spacing(3)};- justify-content: center;+ flex-direction: column;++ & > * + * {+ margin-top: ${spacing(3)};+ }+`;++// Deliberately duplicated from partner-lead/PartnerBecomeStrip's LearnMoreLink:+// sections may not import each other, so the recipe is copied, not shared.+const HireLink = styled(LocalizedLink)`+ color: ${semanticColor.inkMuted};+ display: inline-block;+ font-family: ${fontFamily('sans')};+ text-decoration: underline;+ text-underline-offset: 2px;+ ${typeRampDeclarations('bodySm')}++ &:hover {+ color: ${semanticColor.ink};+ }`;const VisualStage = styled.div`@@ -79,19 +109,17 @@ export function PartnerHero() {<BodyMeasure><Body muted size="sm">{i18n._(- msg`We're building the #1 Open Source CRM, but we can't do it alone. Join our partner ecosystem and grow with us.`,+ msg`Get certified as a Twenty partner: a vetted badge, a directory profile your clients can check, and matched client briefs for the best partners.`,)}</Body></BodyMeasure></HeadingPair>- <CtaRow>+ <CtaStack><BecomePartnerButton label={msg`Become a partner`} />- <Button- href="/partners/list"- label={i18n._(msg`Find a partner`)}- variant="outlined"- />- </CtaRow>+ <HireLink href="/partners">+ {i18n._(msg`Looking to hire a partner?`)}+ </HireLink>+ </CtaStack></IntroStack><VisualStage><PartnerVisual />diff --git a/packages/twenty-website/src/sections/partner-hero/PartnerLeadHero.tsx b/packages/twenty-website/src/sections/partner-hero/PartnerLeadHero.tsxnew file mode 100644index 00000000000..1fbc261b9bf--- /dev/null+++ b/packages/twenty-website/src/sections/partner-hero/PartnerLeadHero.tsx@@ -0,0 +1,102 @@+import { msg } from '@lingui/core/macro';+import { styled } from '@linaria/react';++import { GetMatchedButton } from '@/client-brief';+import { getServerI18n } from '@/platform/i18n/get-server-i18n';+import { GRADIENT, HERO_COMPOSITION, mediaUp, spacing } from '@/tokens';+import { Body, Heading, HeadingPair, SectionShell } from '@/ui';++import { BrowseDirectoryButton } from './BrowseDirectoryButton';+import { PartnerVisual } from './PartnerVisual';++const GradientBackdrop = styled.div`+ background: ${GRADIENT.heroGlow};+ inset: 0 -20%;+ position: absolute;+`;++// Same composition as the recruitment hero: Heading->Body 12px (HeadingPair),+// then a single 32px step down the intro, then the stage at the shared+// CTA-to-visual measure.+const IntroStack = styled.div`+ align-items: center;+ display: flex;+ flex-direction: column;+ text-align: center;+ width: 100%;++ & > * + * {+ margin-top: ${spacing(8)};+ }+`;++const HeadingMeasure = styled.div`+ max-width: 360px;+ width: 100%;++ ${mediaUp('md')} {+ max-width: 760px;+ }+`;++const BodyMeasure = styled.div`+ margin-inline: auto;+ max-width: 360px;++ ${mediaUp('md')} {+ max-width: 500px;+ }+`;++const CtaRow = styled.div`+ align-items: center;+ display: flex;+ flex-direction: column;+ gap: ${spacing(3)};+ justify-content: center;++ ${mediaUp('sm')} {+ flex-direction: row;+ }+`;++const VisualStage = styled.div`+ margin-top: ${HERO_COMPOSITION.ctaToVisualGapPx}px;+ width: 100%;+`;++export function PartnerLeadHero() {+ const i18n = getServerI18n();++ return (+ <SectionShell+ background={<GradientBackdrop />}+ rhythm="hero"+ scheme="light"+ >+ <IntroStack>+ <HeadingPair>+ <HeadingMeasure>+ <Heading as="h1" size="lg" weight="light">+ {i18n._(msg`Tell us what you need, we match you in *48 hours*`)}+ </Heading>+ </HeadingMeasure>+ <BodyMeasure>+ <Body muted size="sm">+ {i18n._(+ msg`Skip the browsing. Describe your project and we connect you with a certified Twenty partner who fits it.`,+ )}+ </Body>+ </BodyMeasure>+ </HeadingPair>+ <CtaRow>+ <GetMatchedButton label={msg`Get matched`} />+ <BrowseDirectoryButton />+ </CtaRow>+ </IntroStack>+ <VisualStage>+ <PartnerVisual />+ </VisualStage>+ </SectionShell>+ );+}diff --git a/packages/twenty-website/src/sections/partner-hero/index.ts b/packages/twenty-website/src/sections/partner-hero/index.tsindex 1ae75e7f0fb..4f29d2457a2 100644--- a/packages/twenty-website/src/sections/partner-hero/index.ts+++ b/packages/twenty-website/src/sections/partner-hero/index.ts@@ -1 +1,2 @@export { PartnerHero } from './PartnerHero';+export { PartnerLeadHero } from './PartnerLeadHero';diff --git a/packages/twenty-website/src/sections/partner-lead/PartnerBecomeStrip.tsx b/packages/twenty-website/src/sections/partner-lead/PartnerBecomeStrip.tsxnew file mode 100644index 00000000000..244f47c0fb8--- /dev/null+++ b/packages/twenty-website/src/sections/partner-lead/PartnerBecomeStrip.tsx@@ -0,0 +1,79 @@+import { msg } from '@lingui/core/macro';+import { styled } from '@linaria/react';++import { BecomePartnerButton } from '@/partner-application';+import { getServerI18n } from '@/platform/i18n/get-server-i18n';+import { LocalizedLink } from '@/platform/i18n/LocalizedLink';+import {+ color,+ fontFamily,+ mediaUp,+ radius,+ semanticColor,+ spacing,+ typeRampDeclarations,+} from '@/tokens';+import { Body, Heading, SectionShell } from '@/ui';++const BecomeRow = styled.div`+ align-items: center;+ background-color: ${color('white')};+ border: 1px solid ${semanticColor.line};+ border-radius: ${radius(2)};+ column-gap: ${spacing(6)};+ display: flex;+ flex-direction: column;+ padding: ${spacing(6)};+ row-gap: ${spacing(4)};++ ${mediaUp('sm')} {+ flex-direction: row;+ justify-content: space-between;+ }+`;++const BecomeCopy = styled.div`+ max-width: 520px;++ & > * + * {+ margin-top: ${spacing(1.5)};+ }+`;++const LearnMoreLink = styled(LocalizedLink)`+ color: ${semanticColor.inkMuted};+ display: inline-block;+ font-family: ${fontFamily('sans')};+ text-decoration: underline;+ text-underline-offset: 2px;+ ${typeRampDeclarations('bodySm')}++ &:hover {+ color: ${semanticColor.ink};+ }+`;++export function PartnerBecomeStrip() {+ const i18n = getServerI18n();++ return (+ <SectionShell rhythm="section" scheme="muted">+ <BecomeRow>+ <BecomeCopy>+ <Heading as="h2" size="xs" weight="regular">+ {i18n._(msg`Want to *offer* Twenty services?`)}+ </Heading>+ <Body muted size="sm">+ {i18n._(+ msg`Agencies and freelancers can apply to join the certified directory.`,+ )}+ </Body>+ <LearnMoreLink href="/partners/become">+ {i18n._(msg`Learn more about the partner program`)}+ </LearnMoreLink>+ </BecomeCopy>+ <BecomePartnerButton label={msg`Become a partner`} variant="outlined" />+ </BecomeRow>+ </SectionShell>+ );+}diff --git a/packages/twenty-website/src/sections/partner-lead/PartnerDirectory.tsx b/packages/twenty-website/src/sections/partner-lead/PartnerDirectory.tsxnew file mode 100644index 00000000000..05d2feb6142--- /dev/null+++ b/packages/twenty-website/src/sections/partner-lead/PartnerDirectory.tsx@@ -0,0 +1,50 @@+import { msg } from '@lingui/core/macro';+import { styled } from '@linaria/react';+import { type ReactNode } from 'react';++import { getServerI18n } from '@/platform/i18n/get-server-i18n';+import { PARTNER_DIRECTORY_ANCHOR_ID } from '@/platform/routing/partner-directory-anchor-id';+import { spacing } from '@/tokens';+import { Body, Eyebrow, Heading, SectionShell } from '@/ui';++const ZoneHeader = styled.div`+ max-width: 640px;+ /* Clears the fixed menu: without it an anchor jump parks the heading+ underneath the bar. */+ scroll-margin-top: ${spacing(22)};++ & > * + * {+ margin-top: ${spacing(4)};+ }+`;++type PartnerDirectoryProps = {+ children: ReactNode;+};++// The header stays outside the streamed slot: the anchor is a cross-page+// contract (the hero jump, the profile back link) and must be in the first+// paint, not only once the partners API resolves.+export function PartnerDirectory({ children }: PartnerDirectoryProps) {+ const i18n = getServerI18n();++ return (+ <SectionShell rhythm="section" scheme="light">+ {/* tabIndex -1 makes the zone a programmatic focus target, so the hero's+ "Browse partners" anchor moves the reading position and not just the+ viewport. */}+ <ZoneHeader id={PARTNER_DIRECTORY_ANCHOR_ID} tabIndex={-1}>+ <Eyebrow>{i18n._(msg`Directory`)}</Eyebrow>+ <Heading as="h2" size="lg" weight="light">+ {i18n._(msg`Browse the *certified partners*`)}+ </Heading>+ <Body muted size="md">+ {i18n._(+ msg`Filter by region, language, and specialty, then read a profile and book a call with the partner yourself.`,+ )}+ </Body>+ </ZoneHeader>+ {children}+ </SectionShell>+ );+}diff --git a/packages/twenty-website/src/sections/partner-lead/PartnerDirectoryPanel.tsx b/packages/twenty-website/src/sections/partner-lead/PartnerDirectoryPanel.tsxnew file mode 100644index 00000000000..3943f253254--- /dev/null+++ b/packages/twenty-website/src/sections/partner-lead/PartnerDirectoryPanel.tsx@@ -0,0 +1,65 @@+'use client';++import { styled } from '@linaria/react';+import { useMemo } from 'react';++import { MarketplaceEmptyState } from '@/partners-marketplace/EmptyState';+import { filterPartners } from '@/partners-marketplace/filter-partners';+import { FilterBar } from '@/partners-marketplace/FilterBar';+import { type MarketplacePartner } from '@/partners-marketplace/marketplace-partner';+import { MarketplaceGrid } from '@/partners-marketplace/MarketplaceGrid';+import { useMarketplaceFilterState } from '@/partners-marketplace/use-marketplace-filter-state';+import { spacing } from '@/tokens';++const Filters = styled.div`+ margin-top: ${spacing(10)};+`;++const Results = styled.div`+ margin-top: ${spacing(6)};+`;++type PartnerDirectoryPanelProps = {+ partners: readonly MarketplacePartner[];+};++export function PartnerDirectoryPanel({+ partners,+}: PartnerDirectoryPanelProps) {+ const {+ criteria,+ hasAnyFilter,+ toggleRegion,+ toggleLanguage,+ toggleCategory,+ clearAll,+ } = useMarketplaceFilterState();++ const filteredPartners = useMemo(+ () => filterPartners(partners, criteria),+ [partners, criteria],+ );++ return (+ <>+ <Filters>+ <FilterBar+ criteria={criteria}+ hasAnyFilter={hasAnyFilter}+ onClearAll={clearAll}+ onToggleCategory={toggleCategory}+ onToggleLanguage={toggleLanguage}+ onToggleRegion={toggleRegion}+ totalCount={partners.length}+ visibleCount={filteredPartners.length}+ />+ </Filters>+ <Results>+ <MarketplaceGrid partners={filteredPartners} />+ {filteredPartners.length === 0 && partners.length > 0 && (+ <MarketplaceEmptyState onClearFilters={clearAll} />+ )}+ </Results>+ </>+ );+}diff --git a/packages/twenty-website/src/sections/partner-lead/PartnerServicesExplainer.tsx b/packages/twenty-website/src/sections/partner-lead/PartnerServicesExplainer.tsxnew file mode 100644index 00000000000..1506e963f9e--- /dev/null+++ b/packages/twenty-website/src/sections/partner-lead/PartnerServicesExplainer.tsx@@ -0,0 +1,122 @@+import { msg } from '@lingui/core/macro';+import { styled } from '@linaria/react';++import { getServerI18n } from '@/platform/i18n/get-server-i18n';+import {+ color,+ DURATION,+ FONT_WEIGHT,+ fontFamily,+ fontSize,+ mediaUp,+ radius,+ REDUCED_MOTION,+ semanticColor,+ SHADOW,+ spacing,+} from '@/tokens';+import { Body, Eyebrow, Heading, SectionShell } from '@/ui';++import { PARTNER_SERVICES } from './partner-services.data';++const ExplainerGrid = styled.div`+ column-gap: ${spacing(10)};+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ row-gap: ${spacing(8)};++ ${mediaUp('md')} {+ grid-template-columns: 340px minmax(0, 1fr);+ }+`;++const ExplainerAside = styled.div`+ & > * + * {+ margin-top: ${spacing(4)};+ }++ ${mediaUp('md')} {+ align-self: start;+ position: sticky;+ top: ${spacing(24)};+ }+`;++const ExplainerStack = styled.div`+ display: flex;+ flex-direction: column;+ gap: ${spacing(3)};+`;++const ExplainerCard = styled.div`+ align-items: flex-start;+ background-color: ${color('white')};+ border: 1px solid ${semanticColor.line};+ border-radius: ${radius(2)};+ column-gap: ${spacing(4)};+ display: grid;+ grid-template-columns: auto minmax(0, 1fr);+ padding: ${spacing(5)} ${spacing(6)};+ transition: box-shadow ${DURATION.xs} ease;++ &:hover {+ box-shadow: ${SHADOW.card};+ }++ ${REDUCED_MOTION} {+ transition: none;+ }+`;++const ExplainerMarker = styled.span`+ background-color: ${color('blue')};+ border-radius: 1px;+ height: 7px;+ margin-top: ${spacing(2)};+ width: 14px;+`;++const ExplainerTitle = styled.h3`+ color: ${semanticColor.ink};+ font-family: ${fontFamily('sans')};+ font-size: ${fontSize(4.5)};+ font-weight: ${FONT_WEIGHT.medium};+ letter-spacing: -0.01em;+ line-height: 1.3;+ margin-bottom: ${spacing(1)};+`;++export function PartnerServicesExplainer() {+ const i18n = getServerI18n();++ return (+ <SectionShell rhythm="section" scheme="muted">+ <ExplainerGrid>+ <ExplainerAside>+ <Eyebrow>{i18n._(msg`Services`)}</Eyebrow>+ <Heading as="h2" size="sm" weight="light">+ {i18n._(msg`What a Twenty partner does`)}+ </Heading>+ <Body muted size="sm">+ {i18n._(+ msg`Four kinds of work, delivered by teams that build on Twenty every day.`,+ )}+ </Body>+ </ExplainerAside>+ <ExplainerStack>+ {PARTNER_SERVICES.map((service) => (+ <ExplainerCard key={service.title.id}>+ <ExplainerMarker aria-hidden />+ <div>+ <ExplainerTitle>{i18n._(service.title)}</ExplainerTitle>+ <Body muted size="sm">+ {i18n._(service.body)}+ </Body>+ </div>+ </ExplainerCard>+ ))}+ </ExplainerStack>+ </ExplainerGrid>+ </SectionShell>+ );+}diff --git a/packages/twenty-website/src/sections/partner-lead/index.ts b/packages/twenty-website/src/sections/partner-lead/index.tsnew file mode 100644index 00000000000..3d795cccdee--- /dev/null+++ b/packages/twenty-website/src/sections/partner-lead/index.ts@@ -0,0 +1,4 @@+export { PartnerBecomeStrip } from './PartnerBecomeStrip';+export { PartnerDirectory } from './PartnerDirectory';+export { PartnerDirectoryPanel } from './PartnerDirectoryPanel';+export { PartnerServicesExplainer } from './PartnerServicesExplainer';diff --git a/packages/twenty-website/src/sections/partner-lead/partner-services.data.ts b/packages/twenty-website/src/sections/partner-lead/partner-services.data.tsnew file mode 100644index 00000000000..ec5552c4be9--- /dev/null+++ b/packages/twenty-website/src/sections/partner-lead/partner-services.data.ts@@ -0,0 +1,26 @@+import { type MessageDescriptor } from '@lingui/core';+import { msg } from '@lingui/core/macro';++export type PartnerService = {+ title: MessageDescriptor;+ body: MessageDescriptor;+};++export const PARTNER_SERVICES: readonly PartnerService[] = [+ {+ title: msg`Migration`,+ body: msg`Move your data out of Salesforce, HubSpot or spreadsheets.`,+ },+ {+ title: msg`Customization & apps`,+ body: msg`Custom objects, workflows and apps built on the platform.`,+ },+ {+ title: msg`Self-hosted operations`,+ body: msg`Deploy, upgrade and operate Twenty on your own infrastructure.`,+ },+ {+ title: msg`Training & RevOps`,+ body: msg`Onboard your team and design your sales process.`,+ },+];diff --git a/packages/twenty-website/src/sections/partner-signoff/PartnerSignoff.tsx b/packages/twenty-website/src/sections/partner-signoff/PartnerSignoff.tsxindex d921ea5e080..f5a41f2a5d2 100644--- a/packages/twenty-website/src/sections/partner-signoff/PartnerSignoff.tsx+++ b/packages/twenty-website/src/sections/partner-signoff/PartnerSignoff.tsx@@ -2,7 +2,7 @@ import { msg } from '@lingui/core/macro';import { BecomePartnerButton } from '@/partner-application';import { getServerI18n } from '@/platform/i18n/get-server-i18n';-import { Button, Signoff } from '@/ui';+import { Signoff } from '@/ui';export function PartnerSignoff() {const i18n = getServerI18n();@@ -10,13 +10,12 @@ export function PartnerSignoff() {return (<Signoffbody={i18n._(- msg`Join our partner ecosystem and help businesses take control of their CRM.`,+ msg`We certify real builders only. Every application is reviewed against a shipped Twenty project — send yours with proof.`,)}heading={i18n._(msg`Ready to grow *with Twenty?*`)}scheme="light">- <BecomePartnerButton label={msg`Become a partner`} variant="outlined" />- <Button href="/partners/list" label={i18n._(msg`Find a partner`)} />+ <BecomePartnerButton label={msg`Become a partner`} /></Signoff>);}diff --git a/packages/twenty-website/src/sections/pricing-engagement-band/PricingEngagementBand.tsx b/packages/twenty-website/src/sections/pricing-engagement-band/PricingEngagementBand.tsxindex ed55d9971ef..ce21f350189 100644--- a/packages/twenty-website/src/sections/pricing-engagement-band/PricingEngagementBand.tsx+++ b/packages/twenty-website/src/sections/pricing-engagement-band/PricingEngagementBand.tsx@@ -12,9 +12,7 @@ export function PricingEngagementBand() {body={i18n._(msg`Find the right partner to implement, customize, and tailor Twenty to your team.`,)}- actions={- <Button href="/partners/list" label={i18n._(msg`Browse partners`)} />- }+ actions={<Button href="/partners" label={i18n._(msg`Browse partners`)} />}/>);}diff --git a/packages/twenty-website/src/ui/Button.tsx b/packages/twenty-website/src/ui/Button.tsxindex 42e19ae3a10..3c75a9631da 100644--- a/packages/twenty-website/src/ui/Button.tsx+++ b/packages/twenty-website/src/ui/Button.tsx@@ -1,5 +1,5 @@import { css } from '@linaria/core';-import { type ReactNode } from 'react';+import { type MouseEvent, type ReactNode } from 'react';import { LocalizedLink } from '@/platform/i18n/LocalizedLink';import {@@ -174,7 +174,7 @@ export type ButtonProps = {size?: ButtonSize;type?: 'button' | 'submit';variant?: ButtonVariant;- onClick?: () => void;+ onClick?: (event: MouseEvent<HTMLElement>) => void;};export function Button({@@ -193,8 +193,14 @@ export function Button({const isProtocolLink =href !== undefined &&(href.startsWith('mailto:') || href.startsWith('tel:'));+ // An in-page jump stays on the current document: it must keep its href so+ // the target is focusable and reachable without JS, and must never open a tab.+ const isHashLink = href !== undefined && href.startsWith('#');const isExternal =- href !== undefined && !href.startsWith('/') && !isProtocolLink;+ href !== undefined &&+ !href.startsWith('/') &&+ !isProtocolLink &&+ !isHashLink;const inner = (<>@@ -231,9 +237,9 @@ export function Button({);}- if (isProtocolLink) {+ if (isProtocolLink || isHashLink) {return (- <a {...sharedAttributes} href={href}>+ <a {...sharedAttributes} href={href} onClick={onClick}>{inner}</a>);@@ -244,6 +250,7 @@ export function Button({<a{...sharedAttributes}href={href}+ onClick={onClick}rel="noopener noreferrer"target="_blank">@@ -255,7 +262,7 @@ export function Button({// Internal links route through LocalizedLink so an unprefixed href ("/x")// carries the active locale (/fr/x), and the source locale stays unprefixed.return (- <LocalizedLink {...sharedAttributes} href={href}>+ <LocalizedLink {...sharedAttributes} href={href} onClick={onClick}>{inner}</LocalizedLink>);