v0.12.5 Remove download button from publications

This commit is contained in:
Murtadha 2024-12-13 12:01:27 -05:00
parent 157905b55d
commit 01be75571f
3 changed files with 38 additions and 5 deletions

View file

@ -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 = () => {
<a href={pub.link} target="_blank" rel="noopener noreferrer" className={styles.readLink}>
Read Publication
</a>
<a href={pub.pdfLink} download className={styles.downloadLink}>
{/* <a href={pub.pdfLink} download className={styles.downloadLink}>
Download PDF
</a>
</a> */}
</div>
</div>
))}

View file

@ -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();

View file

@ -1 +1 @@
0.12.4
0.12.5