Files
wehub-resource-sync d25d482dc2
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:20:55 +08:00

64 lines
2.5 KiB
TypeScript

import { cn } from '@sim/emcn'
import {
SolutionsCardRow,
SolutionsHero,
SolutionsLogosRow,
SolutionsStructuredData,
} from '@/app/(landing)/components/solutions-page/components'
import { SOLUTIONS_SPACING } from '@/app/(landing)/components/solutions-page/constants'
import type { SolutionsPageConfig } from '@/app/(landing)/components/solutions-page/types'
/**
* The reusable solutions-page content stack - the single component every
* solution route (IT, Engineering, Finance, Compliance, HR) consumes with
* near-zero ceremony. A route renders the shared shell and drops in one
* `<SolutionsPage config={…} />`.
*
* Structurally this mirrors `PlatformPage` today; the two are deliberately
* separate so the solutions layout and its components can diverge from the
* platform layout without coupling.
*
* This component owns the entire `<main>`: the shared `max-w-[1460px]` content
* column (centered with `mx-auto`, matching the navbar and landing sections), the
* one horizontal gutter (`SOLUTIONS_SPACING.gutter`), and the inter-section
* vertical rhythm (`SOLUTIONS_SPACING.sectionRhythm`, the `<main>` flex gap). The
* hero, the logos row, and every card row carry no gutter and no inter-section
* margin of their own, so spacing is uniform and unreachable from a consumer
* page - the config is pure content (strings + `ReactNode` visual slots), with no
* layout knob anywhere in its tree.
*
* The order is fixed: structured data first (before visible content, derived
* from the same config so it never drifts) → solutions hero (the page's only
* `<h1>`) → centered logos row → the configured card rows in array order. The
* heading outline is strict H1 → H2 (per card row) → H3 (per card), never
* skipped. Server Component only - no client island lives here; the page
* supplies its own islands through the `visual` slots in the config.
*/
interface SolutionsPageProps {
/** The complete page content - identity, hero, and ordered card rows. */
config: SolutionsPageConfig
}
export function SolutionsPage({ config }: SolutionsPageProps) {
return (
<>
<SolutionsStructuredData config={config} />
<main
id='main-content'
className={cn(
'mx-auto flex w-full max-w-[1460px] flex-col',
SOLUTIONS_SPACING.sectionRhythm,
SOLUTIONS_SPACING.gutter
)}
>
<SolutionsHero hero={config.hero} />
<SolutionsLogosRow />
{config.rows.map((row) => (
<SolutionsCardRow key={row.id} row={row} />
))}
</main>
</>
)
}