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
48 lines
1.8 KiB
TypeScript
48 lines
1.8 KiB
TypeScript
import type { ReactNode } from 'react'
|
|
import { cn } from '@sim/emcn'
|
|
import Link from 'next/link'
|
|
import { LogoMark, SimWordmark } from '@/app/(landing)/components/navbar/components'
|
|
|
|
/**
|
|
* The canonical light, logo-only page frame - a Sim wordmark linking home, no
|
|
* marketing menus, on the platform's light tokens (the `light` class pins
|
|
* light mode regardless of visitor theme). It is the shared base for every
|
|
* surface that wants minimal chrome: the global 404, and the `(interfaces)`
|
|
* group (which adds a support footer). The `(auth)` group uses its own
|
|
* `AuthShell` with the same look.
|
|
*
|
|
* Children decide their own layout: pass `center` for a single centered column
|
|
* (404 message, simple gates); omit it for full-width content (the live chat
|
|
* overlay, which covers this frame entirely). An optional `footer`
|
|
* slot renders pinned at the bottom.
|
|
*/
|
|
interface LogoShellProps {
|
|
children: ReactNode
|
|
/** Center content in the viewport (for short messages / forms). Default: full-width. */
|
|
center?: boolean
|
|
/** Optional footer rendered after the content (e.g. a support footer). */
|
|
footer?: ReactNode
|
|
}
|
|
|
|
export function LogoShell({ children, center = false, footer }: LogoShellProps) {
|
|
return (
|
|
<div className='light relative flex min-h-screen flex-col bg-[var(--bg)] text-[var(--text-primary)]'>
|
|
<header>
|
|
<nav className='mx-auto flex w-full max-w-[1460px] items-center px-20 py-4 max-sm:px-5 max-lg:px-8'>
|
|
<Link href='/' aria-label='Sim home' className='flex h-[30px] items-center'>
|
|
<LogoMark>
|
|
<SimWordmark />
|
|
</LogoMark>
|
|
</Link>
|
|
</nav>
|
|
</header>
|
|
<main
|
|
className={cn('flex flex-1 flex-col', center && 'items-center justify-center px-4 pb-16')}
|
|
>
|
|
{children}
|
|
</main>
|
|
{footer}
|
|
</div>
|
|
)
|
|
}
|