diff --git a/src/app/(app)/page.tsx b/src/app/(app)/page.tsx index 5328ccb..509e6e7 100644 --- a/src/app/(app)/page.tsx +++ b/src/app/(app)/page.tsx @@ -1,16 +1,5 @@ -import CodeEditor from "@/components/code-editor"; -import { DEFAULT_PROBLEM } from "@/config/problem"; -import MdxPreview from "@/components/problem-description"; +import { redirect } from "next/navigation"; export default function HomePage() { - return ( -
-
- -
-
- -
-
- ); + redirect("/playground"); } diff --git a/src/app/(app)/playground/@problemDescription/page.tsx b/src/app/(app)/playground/@problemDescription/page.tsx new file mode 100644 index 0000000..10ab28c --- /dev/null +++ b/src/app/(app)/playground/@problemDescription/page.tsx @@ -0,0 +1,6 @@ +import MdxPreview from "@/components/mdx-preview"; +import { DEFAULT_PROBLEM } from "@/config/problem"; + +export default function ProblemDescriptionPage() { + return ; +} diff --git a/src/app/(app)/playground/layout.tsx b/src/app/(app)/playground/layout.tsx new file mode 100644 index 0000000..282e98d --- /dev/null +++ b/src/app/(app)/playground/layout.tsx @@ -0,0 +1,27 @@ +import { + ResizableHandle, + ResizablePanel, + ResizablePanelGroup, +} from "@/components/ui/resizable"; + +interface PlaygroundLayoutProps { + children: React.ReactNode; + problemDescription: React.ReactNode; +} + +export default function PlaygroundLayout({ + children, + problemDescription, +}: PlaygroundLayoutProps) { + return ( + + + {problemDescription} + + + + {children} + + + ); +} diff --git a/src/app/(app)/playground/page.tsx b/src/app/(app)/playground/page.tsx new file mode 100644 index 0000000..95a4454 --- /dev/null +++ b/src/app/(app)/playground/page.tsx @@ -0,0 +1,5 @@ +import CodeEditor from "@/components/code-editor"; + +export default function PlaygroundPage() { + return ; +}