Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Merge pull request #13256 from atomantic/fix/page-layout-consistency

[._.]/a1b7f2b645e7
diff --cc client/src/pages/CodeAnimation.jsx
index e4f92979fe,f21ba3d4be..2b00b023fb
--- a/client/src/pages/CodeAnimation.jsx
+++ b/client/src/pages/CodeAnimation.jsx
@@@ -1,6 -1,7 +1,7 @@@
+ import PageLayout from '../components/PageLayout';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { Copy, FileCode2, GitFork, Film, Globe, Images, ImagePlus, LoaderCircle, Music2, PenLine, Sparkles, Wand2, X } from 'lucide-react';
-import { useLocation, useNavigate, useParams, useSearchParams } from 'react-router';
+import { Navigate, useLocation, useNavigate, useParams, useSearchParams } from 'react-router';
import PageHeader from '../components/PageHeader';
import RouteTabsHeader from '../components/ui/RouteTabsHeader';
import ProviderModelSelector from '../components/ProviderModelSelector';
@@@ -896,21 -873,20 +898,20 @@@ export default function CodeAnimation(
icon={FileCode2}
title="Code Animation"
subtitle="Prompt an LLM to code an animated film, with no assets, in a universe's style, then preview it and record it to video."
- />
-
- <RouteTabsHeader
- ariaLabel="Animation mode"
- activeTab={mode}
- tabs={[
- { id: 'fast', label: 'Fast HTML', to: '/code-animation', icon: FileCode2 },
- { id: 'gallery', label: 'Gallery', to: '/code-animation/gallery', icon: Images },
- { id: 'production', label: 'Production', to: '/code-animation/production', icon: Film },
- ]}
- />
- <div className="flex-1 min-h-0 overflow-auto p-4 md:p-6">
+ />}
+ navigation={<RouteTabsHeader
+ ariaLabel="Animation mode"
+ activeTab={mode}
+ tabs={[
+ { id: 'fast', label: 'Fast HTML', to: '/code-animation', icon: FileCode2 },
+ { id: 'gallery', label: 'Gallery', to: '/code-animation/gallery', icon: Images },
+ { id: 'production', label: 'Production', to: '/code-animation/production', icon: Film },
+ ]}
+ />}
+ >
<div className="mx-auto max-w-7xl">
- {mode === 'production' ? <ProductionProjects /> : mode === 'gallery' ? <CodeAnimationGallery /> : <FastCodeAnimation />}
+ {mode === 'production' ? <ProductionProjects /> : mode === 'gallery' ? <CodeAnimationGallery /> : pathname === '/code-animation' && !new URLSearchParams(search).get('job') ? <NewCodeAnimation /> : <FastCodeAnimation />}
</div>
- </div>
- </div>;
+ </PageLayout>
+ );
}