Skip to content

Commit f826b96

Browse files
committed
Update page.tsx
1 parent 07c9856 commit f826b96

1 file changed

Lines changed: 36 additions & 6 deletions

File tree

apps/docs/app/page.tsx

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ export default function HomePage() {
99
<main className="flex min-h-screen flex-col items-center justify-center text-center px-4 py-16 sm:py-24 md:py-32 overflow-hidden bg-background text-foreground selection:bg-primary/20">
1010

1111
{/* Hero Section */}
12-
<div className="relative z-10 max-w-4xl space-y-8">
12+
<div className="relative z-10 max-w-5xl space-y-8">
1313
<div className="inline-flex items-center rounded-full border border-fd-primary/20 bg-fd-primary/5 px-3 py-1 text-sm text-fd-primary backdrop-blur-sm transition-colors hover:bg-fd-primary/10 hover:border-fd-primary/30">
1414
<span className="flex h-2 w-2 rounded-full bg-fd-primary mr-2 animate-pulse"></span>
1515
v1.0 Public Draft
1616
</div>
1717

18-
<h1 className="text-4xl font-extrabold tracking-tight sm:text-6xl md:text-7xl bg-gradient-to-br from-foreground to-foreground/60 bg-clip-text text-transparent pb-2">
19-
The Post-SaaS <br/> Operatings System
18+
<h1 className="text-5xl font-extrabold tracking-tight sm:text-7xl md:text-8xl bg-gradient-to-br from-foreground via-foreground/90 to-fd-primary/60 bg-clip-text text-transparent pb-4">
19+
The Post-SaaS <br/> Operating System
2020
</h1>
2121

2222
<p className="mx-auto max-w-2xl text-lg text-fd-muted-foreground sm:text-xl leading-relaxed">
23-
ObjectStack is an open-standard protocol for defining enterprise software.
23+
Infrastructure as Code for Enterprise Applications.
2424
<br className="hidden sm:inline" />
25-
Metadata-driven. Local-first. AI-native.
25+
<span className="text-fd-foreground font-medium">Metadata-driven. Local-first. AI-native.</span>
2626
</p>
2727

2828
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 pt-4">
@@ -36,11 +36,41 @@ export default function HomePage() {
3636
href="https://github.com/objectstack-ai/spec"
3737
target="_blank"
3838
rel="noreferrer"
39-
className="inline-flex h-12 items-center justify-center rounded-lg border border-fd-border bg-fd-background/50 px-8 text-sm font-medium shadow-sm transition-all hover:bg-fd-accent hover:text-fd-accent-foreground backdrop-blur-sm hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring disabled:pointer-events-none disabled:opacity-50"
39+
className="inline-flex h-12 items-center justify-center rounded-lg border border-fd-border bg-fd-card/50 px-8 text-sm font-medium shadow-sm transition-all hover:bg-fd-accent hover:text-fd-accent-foreground backdrop-blur-sm hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring disabled:pointer-events-none disabled:opacity-50"
4040
>
4141
View on GitHub
4242
</a>
4343
</div>
44+
45+
{/* Code Preview Decorator */}
46+
<div className="relative mx-auto mt-12 w-full max-w-3xl transform rounded-xlbg-gradient-to-br from-fd-border/50 to-fd-border/10 p-2 opacity-90 transition-all hover:scale-[1.01] hover:opacity-100 sm:mt-16">
47+
<div className="overflow-hidden rounded-xl border border-fd-border bg-fd-card shadow-2xl">
48+
<div className="flex items-center gap-2 border-b border-fd-border bg-fd-muted/50 px-4 py-3">
49+
<div className="h-3 w-3 rounded-full bg-red-500/80" />
50+
<div className="h-3 w-3 rounded-full bg-yellow-500/80" />
51+
<div className="h-3 w-3 rounded-full bg-green-500/80" />
52+
<div className="ml-2 text-xs font-medium text-fd-muted-foreground font-mono">
53+
project-tracker.schema.ts
54+
</div>
55+
</div>
56+
<div className="overflow-x-auto p-6 text-left">
57+
<pre className="font-mono text-sm leading-6">
58+
<span className="text-purple-400">import</span> <span className="text-fd-foreground">{'{'}</span> <span className="text-yellow-300">ObjectSchema</span> <span className="text-fd-foreground">{'}'}</span> <span className="text-purple-400">from</span> <span className="text-green-300">'@objectstack/spec'</span>;<br/><br/>
59+
<span className="text-purple-400">export const</span> <span className="text-blue-300">Project</span> <span className="text-purple-400">=</span> <span className="text-yellow-300">ObjectSchema</span>.<span className="text-blue-300">create</span>(<span className="text-fd-foreground">{'{'}</span><br/>
60+
&nbsp;&nbsp;name: <span className="text-green-300">'project_tracker'</span>,<br/>
61+
&nbsp;&nbsp;fields: <span className="text-fd-foreground">{'{'}</span><br/>
62+
&nbsp;&nbsp;&nbsp;&nbsp;title: <span className="text-yellow-300">Field</span>.<span className="text-blue-300">text</span>(),<br/>
63+
&nbsp;&nbsp;&nbsp;&nbsp;status: <span className="text-yellow-300">Field</span>.<span className="text-blue-300">select</span>([<span className="text-green-300">'draft'</span>, <span className="text-green-300">'active'</span>, <span className="text-green-300">'done'</span>]),<br/>
64+
&nbsp;&nbsp;&nbsp;&nbsp;owner: <span className="text-yellow-300">Field</span>.<span className="text-blue-300">lookup</span>(<span className="text-green-300">'user'</span>)<br/>
65+
&nbsp;&nbsp;<span className="text-fd-foreground">{'}'}</span>,<br/>
66+
&nbsp;&nbsp;enable: <span className="text-fd-foreground">{'{'}</span> <span className="text-blue-300">api</span>: <span className="text-red-300">true</span>, <span className="text-blue-300">audit</span>: <span className="text-red-300">true</span> <span className="text-fd-foreground">{'}'}</span><br/>
67+
<span className="text-fd-foreground">{'}'}</span>);
68+
</pre>
69+
</div>
70+
</div>
71+
{/* Glow Effect behind Code */}
72+
<div className="absolute -inset-4 -z-10 bg-fd-primary/20 blur-3xl opacity-30 rounded-[50%]" />
73+
</div>
4474
</div>
4575

4676
{/* Grid Pattern Background */}

0 commit comments

Comments
 (0)