Skip to content

Commit a3f3540

Browse files
committed
feat: add consistent navigation and disable server-side exports
- Created shared Navigation component for all pages - Added Navigation to all docs pages and playground - Updated homepage tagline to include all v1.0 features Old: Documents + Slides + Spreadsheets New: Documents • Slides • Spreadsheets • Charts • Diagrams • Code - Disabled export buttons in playground with clear messaging - Added warning banner explaining server requirement - Changed buttons to gray/disabled state - Added CLI installation instructions - Hover tooltips show CLI commands - All pages now have consistent header navigation - Added pt-24 padding to all pages for fixed nav - No more 'lost' feeling when navigating between sections
1 parent e638362 commit a3f3540

File tree

11 files changed

+54
-9
lines changed

11 files changed

+54
-9
lines changed

app/docs/api-reference/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
'use client';
22

3+
import Navigation from '@/components/Navigation';
34
import { Code, Package, Wrench } from 'phosphor-react';
45

56
export default function APIReferencePage() {
67
return (
78
<div className="min-h-screen bg-black text-white">
8-
<div className="container mx-auto px-4 py-12 max-w-4xl">
9+
<Navigation />
10+
<div className="container mx-auto px-4 py-12 pt-24 max-w-4xl">
911
{/* Header */}
1012
<div className="mb-8">
1113
<div className="flex items-center gap-4 mb-4">

app/docs/getting-started/installation/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
// Why: Help users get started with OSF quickly
44
// Related: app/docs/getting-started/first-document/page.tsx
55

6+
'use client';
7+
8+
import Navigation from '@/components/Navigation';
9+
610
export default function InstallationPage() {
711
return (
812
<div className="min-h-screen bg-black text-white">
9-
<div className="container mx-auto px-4 py-12 max-w-4xl">
13+
<Navigation />
14+
<div className="container mx-auto px-4 py-12 max-w-4xl pt-24">
1015
<h1 className="text-5xl font-bold mb-4 border-b-4 border-white pb-4">Installation</h1>
1116
<p className="text-xl text-gray-300 mb-12">
1217
Get OmniScript Format up and running in minutes.

app/docs/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
'use client';
77

8+
import Navigation from '@/components/Navigation';
89
import { Rocket, Book, Sparkle, Wrench, Lightbulb, BookOpen, PresentationChart } from 'phosphor-react';
910

1011
export default function DocsPage() {
1112
return (
1213
<div className="min-h-screen bg-black text-white">
13-
<div className="container mx-auto px-4 py-12 max-w-6xl">
14+
<Navigation />
15+
<div className="container mx-auto px-4 py-12 max-w-6xl pt-24">
1416
<h1 className="text-5xl font-bold mb-6 border-b-4 border-white pb-4">
1517
OmniScript Format Documentation
1618
</h1>

app/docs/releases/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
'use client';
77

8+
import Navigation from '@/components/Navigation';
89
import { CheckCircle, Warning, RocketLaunch, GitBranch } from 'phosphor-react';
910

1011
export default function ReleasesPage() {
1112
return (
1213
<div className="min-h-screen bg-black text-white">
13-
<div className="container mx-auto px-4 py-12 max-w-4xl">
14+
<Navigation />
15+
<div className="container mx-auto px-4 py-12 pt-24 max-w-4xl">
1416
<h1 className="text-5xl font-bold mb-6 border-b-4 border-white pb-4">
1517
Release Notes
1618
</h1>

app/docs/releases/v1-0/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
'use client';
77

8+
import Navigation from '@/components/Navigation';
89
import { Rocket, ChartBar, FlowArrow, Code, CheckCircle, Warning, Star, Confetti } from 'phosphor-react';
910

1011
export default function V1ReleaseNotesPage() {
1112
return (
1213
<div className="min-h-screen bg-black text-white">
13-
<div className="container mx-auto px-4 py-12 max-w-4xl">
14+
<Navigation />
15+
<div className="container mx-auto px-4 py-12 pt-24 max-w-4xl">
1416
{/* Header */}
1517
<div className="mb-8">
1618
<div className="flex items-center gap-4 mb-4">

app/docs/user-guide/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
'use client';
22

3+
import Navigation from '@/components/Navigation';
34
import { Book, FileText, PresentationChart, Table, ChartBar, FlowArrow, Code } from 'phosphor-react';
45

56
export default function UserGuidePage() {
67
return (
78
<div className="min-h-screen bg-black text-white">
8-
<div className="container mx-auto px-4 py-12 max-w-4xl">
9+
<Navigation />
10+
<div className="container mx-auto px-4 py-12 pt-24 max-w-4xl">
911
{/* Header */}
1012
<div className="mb-8">
1113
<div className="flex items-center gap-4 mb-4">

app/docs/v1-features/chart-blocks/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
'use client';
77

8+
import Navigation from '@/components/Navigation';
89
import { ChartBar, GameController } from 'phosphor-react';
910

1011
export default function ChartBlocksPage() {
1112
return (
1213
<div className="min-h-screen bg-black text-white">
13-
<div className="container mx-auto px-4 py-12 max-w-4xl">
14+
<Navigation />
15+
<div className="container mx-auto px-4 py-12 pt-24 max-w-4xl">
1416
<h1 className="text-5xl font-bold mb-6 border-b-4 border-blue-500 pb-4">
1517
@chart Blocks
1618
</h1>

app/docs/v1-features/code-blocks/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
'use client';
77

8+
import Navigation from '@/components/Navigation';
89
import { Code, GameController, CheckCircle, Warning } from 'phosphor-react';
910

1011
export default function CodeBlocksPage() {
1112
return (
1213
<div className="min-h-screen bg-black text-white">
13-
<div className="container mx-auto px-4 py-12 max-w-4xl">
14+
<Navigation />
15+
<div className="container mx-auto px-4 py-12 pt-24 max-w-4xl">
1416
<h1 className="text-5xl font-bold mb-6 border-b-4 border-green-500 pb-4">
1517
@code Blocks
1618
</h1>

app/docs/v1-features/diagram-blocks/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
'use client';
77

8+
import Navigation from '@/components/Navigation';
89
import { FlowArrow, GameController } from 'phosphor-react';
910

1011
export default function DiagramBlocksPage() {
1112
return (
1213
<div className="min-h-screen bg-black text-white">
13-
<div className="container mx-auto px-4 py-12 max-w-4xl">
14+
<Navigation />
15+
<div className="container mx-auto px-4 py-12 pt-24 max-w-4xl">
1416
<h1 className="text-5xl font-bold mb-6 border-b-4 border-purple-500 pb-4">
1517
@diagram Blocks
1618
</h1>

app/playground/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import { useState } from 'react';
99
import dynamic from 'next/dynamic';
1010
import { parse } from 'omniscript-parser';
11+
import Navigation from '@/components/Navigation';
1112

1213
const MonacoEditor = dynamic(() => import('@monaco-editor/react'), { ssr: false });
1314

0 commit comments

Comments
 (0)