navbar improvements + page re-organization

This commit is contained in:
Ishaan Dey
2024-04-09 00:26:22 -04:00
parent dce7166a91
commit 5c4d114f14
9 changed files with 97 additions and 19 deletions

18
app/code/[id]/page.tsx Normal file
View File

@ -0,0 +1,18 @@
import Navbar from "@/components/navbar"
import dynamic from "next/dynamic"
import Image from "next/image"
const CodeEditor = dynamic(() => import("@/components/editor"), {
ssr: false,
})
export default function CodePage() {
return (
<div className="w-screen flex flex-col h-screen bg-background">
<Navbar />
<div className="w-screen flex grow">
<CodeEditor />
</div>
</div>
)
}

5
app/code/page.tsx Normal file
View File

@ -0,0 +1,5 @@
import { redirect } from "next/navigation"
export default function Page() {
redirect("/")
}