-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| const OurCrew = () => { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Be cautious! |
||
| 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 commentThe 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 :) |
||
| { name: "Jordan Smith", role: "Engineer", image: "D:\HYF\Homework\class30-homework\react\react1\week1\react-1-hw\app\about_us\D52_5662.jpg" }, | ||
| { name: "Taylor Lee", role: "Navigator", image: "D:\HYF\Homework\class30-homework\react\react1\week1\react-1-hw\app\about_us\Taylor-Lee-scaled.jpg" }, | ||
| { name: "Morgan Davis", role: "Communications", image: "D:\HYF\Homework\class30-homework\react\react1\week1\react-1-hw\app\about_us\Morgan.webp"}, | ||
| ]; | ||
|
|
||
| return ( | ||
| <section className="Crews"> | ||
| <div> | ||
| {crewMembers.map((member, index) => ( | ||
| <div key={index}> | ||
| <img | ||
| src={member.image} | ||
| alt={member.name} | ||
| /> | ||
| <h3>{member.name}</h3> | ||
| <p>{member.role}</p> | ||
| </div> | ||
| ))} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good job using the .map array methods here! |
||
| </div> | ||
| </section> | ||
| ); | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| const OurPartners = () => { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attention! |
||
| const partners = [ | ||
| { name: "TechCorp", logo: "/partners/techcorp.png" }, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| { name: "InnovateX", logo: "/partners/innovatex.png" }, | ||
| ]; | ||
|
|
||
| return ( | ||
| <section className="partners"> | ||
| <div> | ||
| {partners.map((partner, index) => ( | ||
| <div key={index}> | ||
| <img | ||
| src={partner.logo} | ||
| alt={partner.name} | ||
|
|
||
| /> | ||
| <h3>{partner.name}</h3> | ||
| </div> | ||
| ))}; | ||
| </div> | ||
| </section> | ||
| ); | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| const OurValues = () => { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even here you're encoutering the same export problem! |
||
| const values = [ | ||
| { title: "Integrity", description: "We uphold the highest standards of honesty and ethics in all we do." }, | ||
| { title: "Innovation", description: "We embrace creativity and strive for continuous improvement." }, | ||
| { title: "Collaboration", description: "We work together to achieve more than we could alone." }, | ||
| { title: "Customer Focus", description: "Our customers are at the center of everything we do." }, | ||
| ]; | ||
| return ( | ||
| <section className="values"> | ||
| <div> | ||
| {values.map((value, index) => ( | ||
| <div key={index}> | ||
| <h3>{value.title}</h3> | ||
| <p>{value.description}</p> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| </section> | ||
| ); | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,8 +24,9 @@ export const Footer = () => { | |
| </div> */} | ||
| {/* Docs for the Link: https://nextjs.org/docs/pages/api-reference/components/link */} | ||
|
|
||
| {/* 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 commentThe reason will be displayed to describe this comment to others. Learn more. This
|
||
| <a href="https://linkedin.com">LinkedIn</a> | ||
| </li> | ||
| <div className={styles.footerLinks}> | ||
| <h3>Follow us</h3> | ||
| <ul className={styles.footerList}> | ||
|
|
||
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.