Skip to content

Commit 8571f77

Browse files
fat pr
1 parent 594cf73 commit 8571f77

27 files changed

+1002
-260
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
"@radix-ui/react-dialog": "^1.1.2",
1515
"@radix-ui/react-icons": "^1.3.0",
1616
"@radix-ui/react-popover": "^1.1.2",
17+
"@radix-ui/react-select": "^2.1.2",
1718
"@radix-ui/react-separator": "^1.1.0",
1819
"@radix-ui/react-slot": "^1.1.0",
20+
"@radix-ui/react-switch": "^1.1.1",
1921
"@t3-oss/env-nextjs": "^0.10.1",
2022
"@types/mongoose": "^5.11.97",
2123
"axios": "^1.7.2",
@@ -39,6 +41,7 @@
3941
"multer": "1.4.5-lts.1",
4042
"next": "^14.2.1",
4143
"next-cloudinary": "^6.6.2",
44+
"next-themes": "^0.3.0",
4245
"node-fetch": "^3.3.2",
4346
"nodemailer": "^6.9.13",
4447
"pdf-compressor": "^1.0.5",

pnpm-lock.yaml

Lines changed: 181 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/jostfont.ttf

132 KB
Binary file not shown.

public/phonkfont.otf

186 KB
Binary file not shown.

src/app/adminupload/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface PostPDFToCloudinary {
2626
status: boolean;
2727
}
2828

29-
const Upload: React.FC = () => {
29+
function Upload() {
3030
const router = useRouter();
3131
const [subject, setSubject] = useState<string>("Digital Logic and Microprocessors[BITE202L]");
3232
const [slot, setSlot] = useState<string>("A1");

src/app/catalogue/page.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22

33
import CatalogueContent from "@/components/CatalogueContent";
44
import { Suspense } from "react";
5+
import Navbar from "@/components/Navbar";
56

67
const Catalogue = () => {
78
return (
8-
<Suspense fallback={<div>Loading catalogue...</div>}>
9-
<CatalogueContent />
10-
</Suspense>
9+
<>
10+
<Navbar />
11+
<Suspense fallback={<div>Loading catalogue...</div>}>
12+
<CatalogueContent />
13+
</Suspense>
14+
</>
1115
);
1216
};
1317

src/app/layout.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import "@/styles/globals.css";
2-
import {Toaster} from "react-hot-toast";
2+
import { Toaster } from "react-hot-toast";
3+
import { ThemeProvider } from "@/components/theme-provider";
34
import { GeistSans } from "geist/font/sans";
45

56
export const metadata = {
@@ -15,13 +16,17 @@ export default function RootLayout({
1516
}) {
1617
return (
1718
<html lang="en" className={`${GeistSans.variable}`}>
18-
19-
2019
<body>
21-
<Toaster position="top-right" reverseOrder={false} />
22-
23-
{children}
24-
</body>
20+
<ThemeProvider
21+
attribute="class"
22+
defaultTheme="system"
23+
enableSystem
24+
disableTransitionOnChange
25+
>
26+
<Toaster position="top-right" reverseOrder={false} />
27+
{children}
28+
</ThemeProvider>
29+
</body>
2530
</html>
2631
);
2732
}

src/app/page.tsx

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,58 @@
11
import SearchBar from "@/components/searchbar";
2+
import Navbar from "@/components/Navbar";
3+
import { Button } from "@/components/ui/button";
4+
import StoredPapers from "@/components/StoredPapers";
5+
import Footer from "@/components/Footer";
26

37
const HomePage = () => {
48
return (
59
<div>
6-
<SearchBar />
10+
<div>
11+
<Navbar />
12+
</div>
13+
<div className="mt-2 flex flex-col items-center justify-center gap-y-6">
14+
<div className="w-full max-w-2xl space-y-6 text-center">
15+
<h1 className="phonk text-2xl md:text-3xl font-bold tracking-wider">
16+
Built by students for students
17+
</h1>
18+
<p className="text-base font-semibold">
19+
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Placeat
20+
praesentium maxime sit dolorem corrupti perspiciatis corporis
21+
cupiditate earum recusandae voluptates nostrum at iusto aliquam
22+
facilis id, pariatur reprehenderit eos esse?
23+
</p>
24+
<div className="flex flex-wrap justify-center gap-4">
25+
<Button
26+
variant="outline"
27+
className="rounded-full px-6 py-6 text-xs font-semibold"
28+
>
29+
NO SIGN UP REQUIRED
30+
</Button>
31+
<Button
32+
variant="outline"
33+
className="rounded-full px-6 py-6 text-xs font-semibold"
34+
>
35+
FILTERED SEARCH
36+
</Button>
37+
<Button
38+
variant="outline"
39+
className="rounded-full px-6 py-6 text-xs font-semibold"
40+
>
41+
FLEXIBLE DOWNLOAD
42+
</Button>
43+
</div>
44+
</div>
45+
<div className="z-20 w-full max-w-xl">
46+
<SearchBar />
47+
</div>
48+
<div className="max-3xl w-full">
49+
<p className="mb-4 text-center font-semibold">
50+
Recently Viewed Papers
51+
</p>
52+
<StoredPapers />
53+
</div>
54+
</div>
55+
<Footer />
756
</div>
857
);
958
};

0 commit comments

Comments
 (0)