chore: import upstream snapshot with attribution
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
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
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
import { cn } from '@sim/emcn'
|
||||
import {
|
||||
PlatformCardRow,
|
||||
PlatformHero,
|
||||
PlatformLogosRow,
|
||||
PlatformStructuredData,
|
||||
} from '@/app/(landing)/components/platform-page/components'
|
||||
import { PLATFORM_SPACING } from '@/app/(landing)/components/platform-page/constants'
|
||||
import type { PlatformPageConfig } from '@/app/(landing)/components/platform-page/types'
|
||||
|
||||
/**
|
||||
* The reusable platform-page content stack - the single component six routes
|
||||
* (Workflows, Tables, Files, Knowledge Base, Scheduled Tasks, Logs) consume with
|
||||
* near-zero ceremony. A route renders the shared shell and drops in one
|
||||
* `<PlatformPage config={…} />`.
|
||||
*
|
||||
* 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 (`PLATFORM_SPACING.gutter`), and the inter-section
|
||||
* vertical rhythm (`PLATFORM_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) → platform 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 PlatformPageProps {
|
||||
/** The complete page content - identity, hero, and ordered card rows. */
|
||||
config: PlatformPageConfig
|
||||
}
|
||||
|
||||
export function PlatformPage({ config }: PlatformPageProps) {
|
||||
return (
|
||||
<>
|
||||
<PlatformStructuredData config={config} />
|
||||
<main
|
||||
id='main-content'
|
||||
className={cn(
|
||||
'mx-auto flex w-full max-w-[1460px] flex-col',
|
||||
PLATFORM_SPACING.sectionRhythm,
|
||||
PLATFORM_SPACING.gutter
|
||||
)}
|
||||
>
|
||||
<PlatformHero hero={config.hero} />
|
||||
<PlatformLogosRow />
|
||||
{config.rows.map((row) => (
|
||||
<PlatformCardRow key={row.id} row={row} />
|
||||
))}
|
||||
</main>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user