Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion app/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ function Icon({
);
}

function QuestionMarkIcon() {
return (
<svg
viewBox="0 0 24 24"
className="h-6 w-6"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
aria-hidden="true"
>
<path d="M9.09 9A3 3 0 0 1 15 9c0 2-3 2.25-3 5" />
<path d="M12 17h.01" />
</svg>
);
}

export default function AdminPage() {
return (
<div className="min-h-screen bg-zinc-50 flex flex-col">
Expand Down Expand Up @@ -72,7 +90,7 @@ export default function AdminPage() {
<h2 className="text-sm font-semibold text-zinc-900">Quick Actions</h2>
<div className="mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
<FeatureCard
icon={<Icon d="M12 20h9" />}
icon={<QuestionMarkIcon />}
title="Manage Questions"
description="Create and edit coding questions"
href="/admin/questions"
Expand Down
5 changes: 5 additions & 0 deletions app/admin/questions/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import QuestionBankPage from "@/app/pages/QuestionBankPage";

export default function AdminQuestionsPage() {
return <QuestionBankPage />;
}
Loading