diff --git a/src/app/notes/[id]/page.tsx b/src/app/notes/[id]/page.tsx index 59c9fd1..da6fc8d 100644 --- a/src/app/notes/[id]/page.tsx +++ b/src/app/notes/[id]/page.tsx @@ -1,6 +1,7 @@ import { notFound } from 'next/navigation'; +import { BaseCard } from '@src/components/common/BaseCard'; import Header from '@src/components/header/Header'; -import RatingWidget from '@src/components/sections/RatingWidget'; +import NoteInfoPanel from '@src/components/sections/NoteInfoPanel'; import { api } from '@src/trpc/server'; type NotePageProps = { @@ -13,54 +14,21 @@ export default async function NotePage({ params }: NotePageProps) { if (!file) notFound(); return ( - <> +
-
-

{file.name}

-

{file.description || 'No provided description.'}

+
+ {/* Info panel pinned to the top, floats over the PDF */} + -
-

- Course: {file.section?.prefix}{' '} - {file.section?.number} -

-

- Section: {file.section?.sectionCode} -

-

- Professor: {file.section?.profFirst}{' '} - {file.section?.profLast} -

-

- Author:{' '} - {file.author - ? `${file.author.firstName} ${file.author.lastName}` - : 'Unknown'} -

-

- Last Updated:{' '} - {file.updatedAt?.toLocaleDateString()} -

-
- -
- -
- -
-

PDF

- {file.publicUrl ? ( -