Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ export function Footer() {
Directory
</Link>
<Link
href="/upload"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Upload Resume
</Link>
<Link
href="/auth/sign-in"
href="/auth/email-link-sign-in"
className="text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Sign In
Expand Down Expand Up @@ -113,11 +107,11 @@ export function Footer() {
<h3 className="text-sm font-semibold">Contact</h3>
<div className="flex flex-col gap-2">
<Link
href="mailto:contact@pointblank.club"
href="mailto:careers@pointblank.club"
className="flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors"
>
<Mail className="h-4 w-4" />
contact@pointblank.club
careers@pointblank.club
</Link>
<p className="text-sm text-muted-foreground">
Have questions? We&apos;re here to help.
Expand Down
12 changes: 5 additions & 7 deletions components/profile/export-profile-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ export function ExportProfileButton({ memberId, memberName, memberEmail }: Expor
throw new Error(data.message || 'Failed to generate resume download');
}

// Trigger browser download
const fileRes = await fetch(data.resumeUrl);
const blob = await fileRes.blob();
const link = document.createElement('a');
link.href = data.resumeUrl;
link.setAttribute('download', data.filename);
link.setAttribute('target', '_blank'); // Optional: open in new tab if not download
document.body.appendChild(link);
link.href = URL.createObjectURL(blob);
link.download = data.filename;
link.click();
document.body.removeChild(link);
} catch (err) {
console.error('Resume download failed:', err);
alert('Failed to download resume.');
Expand Down Expand Up @@ -217,7 +215,7 @@ try {
</DropdownMenuItem>
<DropdownMenuItem onClick={handleExportPDF}>
<Download className="h-4 w-4 mr-2" />
Export as PDF
Download PDF
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem onClick={handleShareProfile}>
Expand Down
15 changes: 10 additions & 5 deletions components/profile/resume-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,17 @@ function ResumeModal({ resumeUrl, fileName, displayName }: {
variant="outline"
size="sm"
className="h-8 ml-4"
asChild
onClick={async () => {
const blob = await (await fetch(resumeUrl)).blob();
const link = Object.assign(document.createElement("a"), {
href: URL.createObjectURL(blob),
download: displayName,
});
link.click();
}}
>
<a href={resumeUrl} download={displayName}>
<Download className="h-3 w-3 mr-1" />
Download
</a>
<Download className="h-3 w-3 mr-1" />
Download
</Button>
</div>
</DialogHeader>
Expand Down