Skip to content

Commit 86abafd

Browse files
Merge pull request #23 from monicasmith463/feature/frontend-exam-generate
Feature: frontend Dropzone uploader page
2 parents 14e6d0e + 9d3f30d commit 86abafd

File tree

21 files changed

+216
-0
lines changed

21 files changed

+216
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"use client";
2+
3+
import StaticHeader from "@/layout/StaticHeader";
4+
import Backdrop from "@/layout/Backdrop";
5+
import React from "react";
6+
7+
export default function AdminLayout({
8+
children,
9+
}: {
10+
children: React.ReactNode;
11+
}) {
12+
13+
return (
14+
<div className="min-h-screen xl:flex">
15+
{/* Sidebar and Backdrop */}
16+
<Backdrop />
17+
{/* Main Content Area */}
18+
<div
19+
className={`flex-1 transition-all duration-300 ease-in-out`}
20+
>
21+
{/* Header */}
22+
<StaticHeader />
23+
{/* Page Content */}
24+
<div className="p-4 mx-auto md:p-6">{children}</div>
25+
</div>
26+
</div>
27+
);
28+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// src/app/landing/page.tsx
2+
import React from "react";
3+
4+
export default function LandingPage() {
5+
return (
6+
<div className="text-center space-y-6">
7+
<h2 className="text-3xl font-bold">Welcome to Study Assistant</h2>
8+
<p>Upload documents, generate exams, and start practicing!</p>
9+
<button className="px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition">
10+
Upload Docs & Generate Exam
11+
</button>
12+
</div>
13+
);
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
import DocumentDropzoneComponent from "@/components/form/form-elements/DocumentDropZone";
3+
import { Metadata } from "next";
4+
5+
export const metadata: Metadata = {
6+
title: "Upload Page",
7+
description: "This is Next.js Upload Page",
8+
};
9+
10+
export default function Upload() {
11+
return <DocumentDropzoneComponent />;
12+
}

0 commit comments

Comments
 (0)