Customizing the Project Card Component

1. Customizing Project Card Layout:

  • Open the ProjectCard component file (ProjectCard.js or ProjectCard.jsx).

  • Adjust the structure and layout of the project card according to your preferences.

<div className={styles.container}>
   <img
      src={getImageUrl(imageSrc)}
      alt={`Image of ${title}`}
      className={styles.image}
   />
   <h3 className={styles.title}>{title}</h3>
   <p className={styles.description}>{description}</p>
   <ul className={styles.skills}>
      {skills.map((skill, id) => {
         return (
            <li key={id} className={styles.skill}>
               {skill}
            </li>
         );
      })}
   </ul>
   <div className={styles.links}>
      <a href={demo} className={styles.link}>
         Demo
      </a>
      <a href={source} className={styles.link}>
         Source
      </a>
   </div>
</div>

2. Updating Project Data:

  • Ensure the ProjectCard component is receiving the necessary props (title, imageSrc, description, skills, demo, source) correctly.

  • If needed, adjust the data structure or add more properties to suit your project requirements.

<ProjectCard
   title="[Replace this with your project title]"
   imageSrc="[Replace this with the path to your project image]"
   description="[Replace this with a brief description of your project]"
   skills={["Skill 1", "Skill 2", "Skill 3"]} // Replace with your project skills
   demo="[Replace this with the link to your project demo]"
   source="[Replace this with the link to your project source code]"
/>

3. Customizing Styles:

  • Open the associated CSS file (ProjectCard.module.css) to customize the styles of the project card.

  • Modify the CSS classes and properties to match your desired design.

4. Previewing Changes:

  • After making desired customizations, save the files.

  • Preview your website to ensure the changes are reflected as intended.

Last updated