Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions apps/site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# fumadocs
.source
24 changes: 24 additions & 0 deletions apps/site/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { source } from '@/lib/source';
import { notFound } from 'next/navigation';

export const dynamicParams = true;
export const dynamic = 'force-dynamic';

export default async function Page(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();

const MDX = (page.data as any).exports?.default;

return (
<div className="container mx-auto px-4 py-8 max-w-4xl">
<h1 className="text-3xl font-bold mb-4">{page.data.title || 'Untitled'}</h1>
<div className="prose prose-gray max-w-none">
{MDX && <MDX />}
</div>
</div>
);
}
28 changes: 28 additions & 0 deletions apps/site/app/docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { source } from '@/lib/source';
import type { ReactNode } from 'react';

export default function Layout({ children }: { children: ReactNode }) {
return (
<div>
<nav className="border-b">
<div className="container mx-auto px-4 py-4">
<a href="/" className="text-xl font-bold">ObjectOS</a>
</div>
</nav>
<div className="container mx-auto px-4">
<div className="flex">
<aside className="w-64 py-8">
{/* Sidebar navigation would go here */}
<div className="text-sm">
<a href="/docs/guide" className="block py-1">Guide</a>
<a href="/docs/spec" className="block py-1">Specifications</a>
</div>
</aside>
<main className="flex-1">
{children}
</main>
</div>
</div>
</div>
);
}
10 changes: 10 additions & 0 deletions apps/site/app/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
}
}
26 changes: 26 additions & 0 deletions apps/site/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import './global.css';
import { RootProvider } from 'fumadocs-ui/provider';
import { Inter } from 'next/font/google';
import type { ReactNode } from 'react';

const inter = Inter({
subsets: ['latin'],
});

export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={inter.className} suppressHydrationWarning>
<body>
<RootProvider>{children}</RootProvider>
</body>
</html>
);
}

export const metadata = {
title: {
default: 'ObjectOS',
template: '%s | ObjectOS',
},
description: 'The Business Operating System - Orchestrate Identity, Workflows, and Local-First Sync',
};
34 changes: 34 additions & 0 deletions apps/site/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Link from 'next/link';

export default function HomePage() {
return (
<main className="flex flex-col items-center justify-center min-h-screen p-8 bg-gradient-to-b from-background to-muted/20">
<div className="max-w-4xl mx-auto text-center space-y-8">
<h1 className="text-6xl font-bold tracking-tight">
Object<span className="text-primary">OS</span>
</h1>
<p className="text-2xl text-muted-foreground font-medium">
The Business Operating System
</p>
<p className="text-xl text-muted-foreground max-w-2xl mx-auto">
Orchestrate Identity, Workflows, and Local-First Sync in one unified runtime.
The Kernel for your Enterprise.
</p>
<div className="flex gap-4 justify-center pt-8">
<Link
href="/docs"
className="px-8 py-3 rounded-lg bg-primary text-primary-foreground font-semibold hover:bg-primary/90 transition-colors"
>
Get Started
</Link>
<Link
href="/docs/guide/architecture"
className="px-8 py-3 rounded-lg border border-border font-semibold hover:bg-accent transition-colors"
>
Architecture
</Link>
</div>
</div>
</main>
);
}
Loading
Loading