Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/about_us/D52_5662.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/about_us/Jordan-M-Smith.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/about_us/Morgan.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions app/about_us/OurCrew.js
Original file line number Diff line number Diff line change
@@ -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.

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 :)

{ 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>
))}

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!

</div>
</section>
);
};
24 changes: 24 additions & 0 deletions app/about_us/OurPartners.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const OurPartners = () => {

@desafree desafree Mar 30, 2025

Copy link
Copy Markdown

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 :)

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

{ 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>
);
};

20 changes: 20 additions & 0 deletions app/about_us/OurValues.js
Original file line number Diff line number Diff line change
@@ -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!

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>
);
};
Binary file added app/about_us/Taylor-Lee-scaled.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 7 additions & 40 deletions app/about_us/page.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,7 @@
import styles from './page.module.css';

// TASK - React 1 week 1
// After you are finished with creating the page, move the OurValues, OurCrew, OurPartners components into their own files
// OurValues.js, OurCrew.js, OurPartners.js should live in this folder
// import and use the components from the newly created files

const OurValues = () => {
// TASK - React 1 week 1
// Create the "Our Values" section
// Use the descriptions provided in /app/about_us/README.md
// Some inspiration ideas found in /data/inspiration_about_us
return (
<p> ADD OUR VALUES HERE </p>
);
};

const OurCrew = () => {
// TASK - React 1 week 1
// Create the "Our Crew section"
// Use the descriptions provided in /app/about_us/README.md
// Use the pictures from /public/crew
// Some inspiration ideas found in /data/inspiration_about_us
return (
<p> ADD OUR CREW HERE </p>
);
}

const OurPartners = () => {
// TASK - React 1 week 1
// Create the "Our Crew section"
// Use the descriptions provided in /app/about_us/README.md
// Use the pictures from /public/crew
// Some inspiration ideas found in /data/inspiration_about_us
return (
<p> ADD OUR Partners HERE </p>
);
}
import OurValues from './OurValues.js';
import OurCrew from './OurCrew.js';
import OurPartners from './OurPartners.js';


export const Crew = () => {
Expand All @@ -51,9 +17,10 @@ export const Crew = () => {
<h2>The crew</h2>
<OurCrew/>
</section>

{/* TASK - React 1 week 1 */}
{/* Add in the "OurPartners" component here */}
<section className="card">
<h2>Our Partners</h2>
<OurPartners/>
</section>
</main>
</div>
);
Expand Down
4 changes: 1 addition & 3 deletions app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export const RootLayout = ({ children }) => {
<body className={inter.className}>
<Navbar />
{children}
{/* TASK - React 1 week 1 */}
{/* Import and use the Footer component here */}
{/* Footer found in the ui/Footer.js folder */}
<Footer/>
</body>
</html>
);
Expand Down
5 changes: 3 additions & 2 deletions components/ui/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>

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!

  • <a href="https://linkedin.com">LinkedIn</a>
    </li>
    <div className={styles.footerLinks}>
    <h3>Follow us</h3>
    <ul className={styles.footerList}>
    Expand Down
    Loading