diff --git a/ui/src/app/dashboard/page.tsx b/ui/src/app/dashboard/page.tsx index 94394919..2d989a18 100644 --- a/ui/src/app/dashboard/page.tsx +++ b/ui/src/app/dashboard/page.tsx @@ -1,12 +1,20 @@ 'use client'; import GpuMonitor from '@/components/GPUMonitor'; +import { TopBar, MainContent } from '@/components/layout'; export default function Dashboard() { return ( -
Loading...
} {status === 'error' &&Error fetching images
} {status === 'success' && ( @@ -78,7 +79,7 @@ export default function DatasetPage({ params }: { params: { datasetName: string ))}Loading...
} {status === 'error' &&Error fetching datasets
} {status === 'success' && ( @@ -79,7 +80,7 @@ export default function Datasets() { ))}Training saved successfully!
} - {status === 'error' &&Error saving training. Please try again.
} - -Training saved successfully!
} + {status === 'error' &&Error saving training. Please try again.
} + + + > ); } diff --git a/ui/src/components/layout.tsx b/ui/src/components/layout.tsx new file mode 100644 index 00000000..a23cc45b --- /dev/null +++ b/ui/src/components/layout.tsx @@ -0,0 +1,27 @@ +import classNames from 'classnames'; + +interface Props { + className?: string; + children?: React.ReactNode; +} + +export const TopBar: React.FC