From 01be75571ffdcf19b1492b7da3dec25914f575fb Mon Sep 17 00:00:00 2001 From: Murtadha Date: Fri, 13 Dec 2024 12:01:27 -0500 Subject: [PATCH] v0.12.5 Remove download button from publications --- src/components/publications/Publications.jsx | 6 ++-- src/utils/dataFetcher.js | 35 +++++++++++++++++++- version.txt | 2 +- 3 files changed, 38 insertions(+), 5 deletions(-) diff --git a/src/components/publications/Publications.jsx b/src/components/publications/Publications.jsx index 9b21cd9..deb64ea 100644 --- a/src/components/publications/Publications.jsx +++ b/src/components/publications/Publications.jsx @@ -10,7 +10,7 @@ const publicationsData = [ year: 2024, doi: "10.1109/CCECE59415.2024.10667089", link: "https://ieeexplore.ieee.org/document/10667089", - pdfLink: "/assets/papers/sem_com01.pdf", + // pdfLink: "/assets/papers/sem_com01.pdf", }, // Add more publications as needed ]; @@ -32,9 +32,9 @@ const Publications = () => { Read Publication - + {/* Download PDF - + */} ))} diff --git a/src/utils/dataFetcher.js b/src/utils/dataFetcher.js index 5298702..ac389a9 100644 --- a/src/utils/dataFetcher.js +++ b/src/utils/dataFetcher.js @@ -2,7 +2,40 @@ export const fetchEducationData = async () => { const response = await fetch("/assets/data/educationData.json"); return await response.json(); }; - + +// import axios from 'axios'; + +// export const educationService = { +// async getEducation() { +// try { +// const response = await axios.get('/api/portfolio/education'); + +// // Transform the API response to match your component's expected format +// return response.data.map(({ education, achievements, skills, techStack }) => ({ +// id: education.id, +// title: education.title, +// organization: education.organization, +// logo: education.logo, +// location: education.location, +// duration: education.duration, +// description: education.description, +// // Convert achievements array of objects to array of strings +// achievements: achievements.map(a => a.description), +// // Convert skills array of objects to array of strings +// skills: skills.map(s => s.name), +// // Convert techStack array of objects to array of strings +// techStack: techStack.map(t => t.name), +// skillsTitle: education.skillsTitle, +// techStackTitle: education.techStackTitle +// })); + +// } catch (error) { +// console.error('Error fetching education data:', error); +// throw error; +// } +// } +// }; + export const fetchExperienceData = async () => { const response = await fetch("/assets/data/experienceData.json"); return await response.json(); diff --git a/version.txt b/version.txt index e01e0dd..43c2417 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.12.4 +0.12.5