navbar improvements + page re-organization
This commit is contained in:
18
app/code/[id]/page.tsx
Normal file
18
app/code/[id]/page.tsx
Normal 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
5
app/code/page.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import { redirect } from "next/navigation"
|
||||
|
||||
export default function Page() {
|
||||
redirect("/")
|
||||
}
|
Reference in New Issue
Block a user