refactor(gui): Improve nextjs scaffolding

This commit is contained in:
2026-07-16 08:14:46 +05:30
parent ce8b9176d3
commit c55c7e222a
4 changed files with 23 additions and 18 deletions

View File

@@ -1,18 +1,5 @@
"use client";
import { BuilderView } from "@/components/builder/BuilderView";
export default function BuilderPage() {
return (
<div className="flex-1 overflow-y-auto w-full">
<div className="mx-auto max-w-[800px] px-10 py-12">
<h1 className="mb-6 text-headline-lg text-primary animate-fade-in">
Scenario Builder
</h1>
<div className="border border-border/30 bg-card p-6 shadow-[2px_2px_0_0_var(--border)] min-h-[300px] flex flex-col items-center justify-center">
<p className="text-body-md text-muted-foreground font-mono text-center">
Scenario builder interface coming soon...
</p>
</div>
</div>
</div>
);
return <BuilderView />;
}

View File

@@ -1,5 +1,5 @@
import { DashboardView } from "@/components/play/DashboardView";
import { HomeView } from "@/components/home/HomeView";
export default function Home() {
return <DashboardView />;
return <HomeView />;
}

View File

@@ -0,0 +1,18 @@
"use client";
export function BuilderView() {
return (
<div className="flex-1 overflow-y-auto w-full">
<div className="mx-auto max-w-[800px] px-10 py-12">
<h1 className="mb-6 text-headline-lg text-primary animate-fade-in">
Scenario Builder
</h1>
<div className="border border-border/30 bg-card p-6 shadow-[2px_2px_0_0_var(--border)] min-h-[300px] flex flex-col items-center justify-center">
<p className="text-body-md text-muted-foreground font-mono text-center">
Scenario builder interface coming soon...
</p>
</div>
</div>
</div>
);
}

View File

@@ -34,7 +34,7 @@ import {
SelectValue,
} from "@/components/ui/select";
export function DashboardView() {
export function HomeView() {
const router = useRouter();
const [loading, setLoading] = useState(false);
const [loadingData, setLoadingData] = useState(true);