From 07ecd3ab41c2efbb310baba71276ac649863e956 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 2 Mar 2026 23:13:00 +0000 Subject: [PATCH 1/4] Add src/app/dashboard/page.tsx --- src/app/dashboard/page.tsx | 168 +++++++++++++++++++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 src/app/dashboard/page.tsx diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx new file mode 100644 index 0000000..d346134 --- /dev/null +++ b/src/app/dashboard/page.tsx @@ -0,0 +1,168 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered"; +import { useState } from "react"; +import { Upload, Music, BookOpen, Download, Play, Plus } from "lucide-react"; + +export default function DashboardPage() { + const [uploadedFiles, setUploadedFiles] = useState>([ + { id: "1", name: "Calculus I - Chapter 3.pdf", status: "ready", audioUrl: "/audio/calculus-3.mp3" }, + { id: "2", name: "Biology Notes - Photosynthesis.docx", status: "processing" }, + ]); + + const [materials, setMaterials] = useState>([ + { id: "m1", title: "Physics Fundamentals", creator: "Prof. James Chen", subject: "Physics", downloads: 1250 }, + { id: "m2", title: "History of Africa", creator: "Dr. Amara Okonkwo", subject: "History", downloads: 892 }, + { id: "m3", title: "Advanced Chemistry", creator: "Prof. Sarah Kipchoge", subject: "Chemistry", downloads: 654 }, + { id: "m4", title: "Literature Analysis", creator: "Dr. Kwesi Mensah", subject: "Literature", downloads: 456 }, + ]); + + const handleFileUpload = (e: React.ChangeEvent) => { + const files = e.target.files; + if (files) { + Array.from(files).forEach((file) => { + setUploadedFiles([...uploadedFiles, { + id: Date.now().toString(), + name: file.name, + status: "processing" + }]); + }); + } + }; + + return ( + + + +
+
+ {/* Header */} +
+

Your Learning Dashboard

+

Upload lecture notes and access materials from creators and artists

+
+ + {/* Upload Section */} +
+
+ +

Generate Audio from Your Notes

+
+
+ + +
+
+ + {/* My Uploads */} +
+
+ +

My Uploaded Materials

+
+
+ {uploadedFiles.map((file) => ( +
+
+
+ +
+
+

{file.name}

+

+ {file.status === "processing" ? "Processing..." : "Ready to listen"} +

+
+
+
+ {file.status === "ready" && file.audioUrl && ( + <> + + + + )} + {file.status === "processing" && ( +
+ +
+ )} +
+
+ ))} +
+
+ + {/* Online Materials */} +
+
+
+ +

Online Materials from Creators

+
+ +
+
+ {materials.map((material) => ( +
+
+ +
+

{material.title}

+

{material.creator}

+
+ {material.subject} + {material.downloads} downloads +
+
+ ))} +
+
+
+
+
+ ); +} -- 2.49.1 From d7703fc3e0682129cadda561dfc745bf90108926 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 2 Mar 2026 23:13:01 +0000 Subject: [PATCH 2/4] Update src/app/layout.tsx --- src/app/layout.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index e3f832e..a111c28 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,11 +1,12 @@ import type { Metadata } from "next"; -import { Inter } from "next/font/google"; +import { Poppins } from "next/font/google"; import "./globals.css"; import { ServiceWrapper } from "@/components/ServiceWrapper"; import Tag from "@/tag/Tag"; -const inter = Inter({ - variable: "--font-inter", subsets: ["latin"], +const poppins = Poppins({ + variable: "--font-poppins", subsets: ["latin"], + weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], }); export const metadata: Metadata = { @@ -26,7 +27,7 @@ export default function RootLayout({ {children} -- 2.49.1 From b751fc88d0603b1d2f24badc74b2f33a1fc89fd6 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 2 Mar 2026 23:13:01 +0000 Subject: [PATCH 3/4] Update src/app/page.tsx --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 309e0de..e3959e7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -31,7 +31,7 @@ export default function LandingPage() { { name: "Features", id: "features" }, { name: "How It Works", id: "how-it-works" }, { name: "Testimonials", id: "testimonials" }, - { name: "Pricing", id: "pricing" }, + { name: "Dashboard", id: "/dashboard" }, { name: "Contact", id: "contact" }, ]} button={{ text: "Start Learning Free", href: "contact" }} @@ -244,7 +244,7 @@ export default function LandingPage() { title: "Product", items: [ { label: "Features", href: "#features" }, { label: "How It Works", href: "#how-it-works" }, - { label: "Pricing", href: "#pricing" }, + { label: "Dashboard", href: "/dashboard" }, { label: "FAQ", href: "#faq" }, ], }, -- 2.49.1 From be65b36d95902c0bb1881258f2fd289bdaccd42b Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 2 Mar 2026 23:13:02 +0000 Subject: [PATCH 4/4] Update src/app/styles/base.css --- src/app/styles/base.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/styles/base.css b/src/app/styles/base.css index 34aea07..0f9f89d 100644 --- a/src/app/styles/base.css +++ b/src/app/styles/base.css @@ -11,7 +11,7 @@ html { body { background-color: var(--background); color: var(--foreground); - font-family: var(--font-inter), sans-serif; + font-family: var(--font-poppins), sans-serif; position: relative; min-height: 100vh; overscroll-behavior: none; @@ -24,5 +24,5 @@ h3, h4, h5, h6 { - font-family: var(--font-inter), sans-serif; + font-family: var(--font-poppins), sans-serif; } -- 2.49.1