Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

React1 week1/parisa#42

Open
SeyedehParisaMousaviamiri wants to merge 3 commits intoHackYourFuture-CPH:mainfrom
SeyedehParisaMousaviamiri:react1-week1/Parisa
Open

React1 week1/parisa#42
SeyedehParisaMousaviamiri wants to merge 3 commits intoHackYourFuture-CPH:mainfrom
SeyedehParisaMousaviamiri:react1-week1/Parisa

Conversation

@SeyedehParisaMousaviamiri
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

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.

Comment thread app/about_us/OurCrew.js
<h3>{member.name}</h3>
<p>{member.role}</p>
</div>
))}
Copy link
Copy Markdown

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!

Comment thread app/about_us/OurCrew.js
@@ -0,0 +1,25 @@
const OurCrew = () => {
Copy link
Copy Markdown

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.

Comment thread app/about_us/OurCrew.js
@@ -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" },
Copy link
Copy Markdown

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 = () => {
Copy link
Copy Markdown

@desafree desafree Mar 30, 2025

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" },
Copy link
Copy Markdown

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

Comment thread app/about_us/OurValues.js
@@ -0,0 +1,20 @@
const OurValues = () => {
Copy link
Copy Markdown

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!

Comment thread components/ui/Footer.js

{/* TASK - React 1 week 1 */}
{/* Add a new list item for LINKEDIN */}
<li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This

  • element is outside the
      element. Consider moving it inside the ul after the last item to make it look cleaner!

  • Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants