Browse Source

remove playground

Chris Tate 5 tháng trước cách đây
mục cha
commit
7ddbc78d74
3 tập tin đã thay đổi với 3 bổ sung25 xóa
  1. 3 8
      apps/web/app/page.tsx
  2. 0 11
      apps/web/components/demo.tsx
  3. 0 6
      apps/web/components/header.tsx

+ 3 - 8
apps/web/app/page.tsx

@@ -157,14 +157,9 @@ export const catalog = createCatalog({
           <pre className="inline-block text-left mb-8 text-sm">
             <code>npm install @json-render/core @json-render/react</code>
           </pre>
-          <div className="flex gap-3 justify-center">
-            <Button asChild>
-              <Link href="/docs">Documentation</Link>
-            </Button>
-            <Button variant="outline" asChild>
-              <Link href="/playground">Playground</Link>
-            </Button>
-          </div>
+          <Button asChild>
+            <Link href="/docs">Documentation</Link>
+          </Button>
         </div>
       </section>
     </>

+ 0 - 11
apps/web/components/demo.tsx

@@ -113,17 +113,6 @@ export function Demo() {
     return () => clearInterval(interval);
   }, [phase]);
 
-  // Auto-restart
-  useEffect(() => {
-    if (phase !== "complete") return;
-
-    const timeout = setTimeout(() => {
-      reset();
-    }, 8000);
-
-    return () => clearTimeout(timeout);
-  }, [phase, reset]);
-
   const handleAction = () => {
     setActionFired(true);
     setTimeout(() => setActionFired(false), 2000);

+ 0 - 6
apps/web/components/header.tsx

@@ -14,12 +14,6 @@ export function Header() {
           >
             Docs
           </Link>
-          <Link
-            href="/playground"
-            className="text-muted-foreground hover:text-foreground transition-colors"
-          >
-            Playground
-          </Link>
           <a
             href="https://github.com/vercel-labs/json-render"
             target="_blank"