Skip to content

Commit 1c777ba

Browse files
basic StaticHeader working
1 parent a3698c1 commit 1c777ba

3 files changed

Lines changed: 96 additions & 0 deletions

File tree

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: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
"use client";
2+
3+
import { ThemeToggleButton } from "@/components/common/ThemeToggleButton";
4+
import Image from "next/image";
5+
import Link from "next/link";
6+
import React from "react";
7+
8+
const StaticHeader: React.FC = () => {
9+
return (
10+
<header className="sticky top-0 z-50 w-full border-b border-gray-200 bg-white/80 backdrop-blur-md dark:border-gray-800 dark:bg-gray-900/80">
11+
<div className="flex items-center justify-between px-4 py-3 sm:px-6 lg:px-8">
12+
{/* Logo */}
13+
<Link href="/" className="flex items-center gap-2">
14+
<Image
15+
width={32}
16+
height={32}
17+
src="/images/logo/logo.svg"
18+
alt="Logo"
19+
className="dark:hidden"
20+
/>
21+
<Image
22+
width={32}
23+
height={32}
24+
src="/images/logo/logo-dark.svg"
25+
alt="Logo Dark"
26+
className="hidden dark:block"
27+
/>
28+
<span className="text-lg font-semibold text-gray-900 dark:text-white">
29+
Study Assistant
30+
</span>
31+
</Link>
32+
33+
{/* Right Side Actions */}
34+
<div className="flex items-center gap-3">
35+
<Link
36+
href="/login"
37+
className="rounded-md border border-gray-300 px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-100 dark:border-gray-700 dark:text-gray-200 dark:hover:bg-gray-800"
38+
>
39+
Log in
40+
</Link>
41+
<Link
42+
href="/signup"
43+
className="rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-indigo-700 dark:bg-indigo-500 dark:hover:bg-indigo-600"
44+
>
45+
Get Started
46+
</Link>
47+
<ThemeToggleButton />
48+
</div>
49+
</div>
50+
</header>
51+
);
52+
};
53+
54+
export default StaticHeader;

0 commit comments

Comments
 (0)