Added PDF Manuals

This commit is contained in:
Joao Ramos
2024-03-21 10:56:56 +00:00
parent a5c1286748
commit 0a24cb9978
4 changed files with 9 additions and 0 deletions

Binary file not shown.

BIN
public/manuals/student.pdf Normal file

Binary file not shown.

BIN
public/manuals/teacher.pdf Normal file

Binary file not shown.

View File

@@ -276,6 +276,8 @@ function UserProfile({user, mutateUser}: Props) {
</div>
);
const manualDownloadLink = ['student', 'teacher', 'corporate'].includes(user.type) ? `/manuals/${user.type}.pdf` : '';
return (
<Layout user={user}>
<section className="w-full flex flex-col gap-4 md:gap-8 px-4 py-8">
@@ -535,6 +537,13 @@ function UserProfile({user, mutateUser}: Props) {
/>
</div>
)}
{manualDownloadLink && (
<a href={manualDownloadLink} className="max-w-[200px] self-end w-full" download>
<Button color="purple" variant="outline" className="max-w-[200px] self-end w-full">
Download Manual
</Button>
</a>
)}
</div>
</div>
<div className="flex flex-col gap-4 mt-8 mb-20">