These lines in your code in Work.js are the issue.
You are importing images with absolute paths.
import BusinessCard from "/Users/kendrickizaguirre_1/kendricks-portfolio/src/BusinessCard.jpg"
import pizza from "/Users/kendrickizaguirre_1/kendricks-portfolio/src/components/pizza.jpg"
import madstat2 from "/Users/kendrickizaguirre_1/kendricks-portfolio/src/components/madstat2.jpg”
A cleaner approach (without using a library) will be to.
- Make an
images folder inside src.
- Copy all images you are importing in js components inside this folder. or with meaningful subfolders inside the
image folder.
- Finally import the images in the components with the relative path.
So if I change your package structure as below.
└── Personal-portfolio
├── README.md
├── package-lock.json
├── package.json
├── public
│ ├── index.html
│ └── manifest.json
└── src
├── App.css
├── App.js
├── components
│ ├── About.js
│ ├── Contact.js
│ ├── Header.js
│ ├── Navigation.js
│ └── Work.js
├── images
│ ├── BusinessCard.jpg
│ ├── abstract.jpg
│ ├── kenny.jpg
│ ├── madstat.jpg
│ ├── madstat2.jpg
│ └── pizza.jpg
├── index.css
└── index.js
Then import in Work.js will look like this
import BusinessCard from “../images/BusinessCard.jpg"
import pizza from "../images/pizza.jpg"
import madstat2 from "../images/madstat2.jpg”