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
Binary file removed client/public/resume.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions client/src/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ const Hero: React.FC = () => {
};

const handleResumeDownload = () => {
// Direct link to the resume in the public folder
window.open('/resume.pdf', '_blank');
// Use full backend URL to avoid frontend routing issues
window.open('http://localhost:5000/api/resume', '_blank');
};

const handleContactScroll = () => {
Expand Down
7 changes: 6 additions & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const portfolioData = {
phone: "+91 (800) 123-4567",
location: "Hyderabad, India",
bio: "Passionate full-stack developer specializing in React, Node.js, and database technologies. I craft seamless web and mobile experiences with modern technologies, focusing on clean code and innovative solutions.",
resume: "/assets/resume.pdf",
resume: "/api/resume",
profileImage: "/assets/profile-photo.jpg"
},
skills: [
Expand Down Expand Up @@ -158,6 +158,11 @@ const portfolioData = {
};

// Routes
// Serve UpdatedResume.pdf from src/components
app.get('/api/resume', (req, res) => {
const filePath = require('path').resolve(__dirname, '../client/src/components/UpdatedResume.pdf');
res.sendFile(filePath);
});
app.get('/api/portfolio', (req, res) => {
res.json(portfolioData);
});
Expand Down