-
Notifications
You must be signed in to change notification settings - Fork 64
React1 week1/parisa #42
base: main
Are you sure you want to change the base?
React1 week1/parisa #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey 🙂
I noticed you've added some new images. When adding images in a Next.js project, it's best to place them in the /public folder.
However, the task specifically asked you to use the existing images already available in that folder.
To access them, you can simply use the path: /crew/$filename.
| <h3>{member.name}</h3> | ||
| <p>{member.role}</p> | ||
| </div> | ||
| ))} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job using the .map array methods here!
| @@ -0,0 +1,25 @@ | |||
| const OurCrew = () => { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be cautious!
You're currently not exporting anything here, so when you try to import the component elsewhere, the app will crash.
| @@ -0,0 +1,25 @@ | |||
| const OurCrew = () => { | |||
| const crewMembers = [ | |||
| { name: "Alex Johnson", role: "Captain", image: "react-1-hw/app/about_us/Boulder_Worldcup_Vienna_28-05-2010_quali-w100_Alex_Johnson.jpg" }, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are absolute file paths from your local machine, which won't work in a deployed web app. Try to move the images to the public folder to resolve this :)
| @@ -0,0 +1,24 @@ | |||
| const OurPartners = () => { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention!
You are not exporting anything here, when you'll try to import it the app will crash :)
| @@ -0,0 +1,24 @@ | |||
| const OurPartners = () => { | |||
| const partners = [ | |||
| { name: "TechCorp", logo: "/partners/techcorp.png" }, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this path exists? I cannot find the "partner" folder inside the public folder
| @@ -0,0 +1,20 @@ | |||
| const OurValues = () => { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even here you're encoutering the same export problem!
|
|
||
| {/* TASK - React 1 week 1 */} | ||
| {/* Add a new list item for LINKEDIN */} | ||
| <li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
- element. Consider moving it inside the ul after the last item to make it look cleaner!
No description provided.