This repository was archived by the owner on Oct 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
React week2/amin #62
Open
Amin1245
wants to merge
2
commits into
HackYourFuture-CPH:main
Choose a base branch
from
Amin1245:react-week2/amin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
React week2/amin #62
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| import Image from "next/image"; | ||
| import styles from "./about_us.module.css"; | ||
|
|
||
| const OurCrew = () => { | ||
| return ( | ||
| <div className={styles.crewGrid}> | ||
| <div> | ||
| <Image | ||
| src="/crew/image-anousheh-ansari.png" | ||
| alt="Anousheh Ansari" | ||
| width={150} | ||
| height={150} | ||
| /> | ||
| <h4>Anousheh Ansari</h4> | ||
| <p>First Iranian woman in space. Brings global vision and inspiration to our missions.</p> | ||
| </div> | ||
|
|
||
| <div> | ||
| <Image | ||
| src="/crew/image-douglas-hurley.png" | ||
| alt="Douglas Hurley" | ||
| width={150} | ||
| height={150} | ||
| /> | ||
| <h4>Douglas Hurley</h4> | ||
| <p>Former NASA astronaut and spacecraft commander. Ensures safe operations and mission success.</p> | ||
| </div> | ||
|
|
||
| <div> | ||
| <Image | ||
| src="/crew/image-mark-shuttleworth.png" | ||
| alt="Mark Shuttleworth" | ||
| width={150} | ||
| height={150} | ||
| /> | ||
| <h4>Mark Shuttleworth</h4> | ||
| <p>Entrepreneur and space tourist. Shares his passion for discovery and adventure.</p> | ||
| </div> | ||
|
|
||
| <div> | ||
| <Image | ||
| src="/crew/image-victor-glover.png" | ||
| alt="Victor Glover" | ||
| width={150} | ||
| height={150} | ||
| /> | ||
| <h4>Victor Glover</h4> | ||
| <p>Pilot and engineer with hands-on space mission experience. Focused on innovation and safety.</p> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default OurCrew; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import Image from "next/image"; | ||
| import styles from "./about_us.module.css"; | ||
|
|
||
| const OurPartners = () => { | ||
| const partners = [ | ||
| { name: "Alphabet", logo: "/business_partners/alphabet-logo.png" }, | ||
| { name: "Amazon", logo: "/business_partners/amazon_logo.png" }, | ||
| { name: "CBC", logo: "/business_partners/CBC_Logo_White.png" }, | ||
| { name: "Microsoft", logo: "/business_partners/Microsoft-Logo-white.png" }, | ||
| { name: "NYU", logo: "/business_partners/nyu-logo.png" }, | ||
| { name: "Queens University", logo: "/business_partners/QueensLogo_white.png" }, | ||
| { name: "Samsung", logo: "/business_partners/samsung-logo.png" }, | ||
| { name: "Sodexo", logo: "/business_partners/sodexo-logo.png" }, | ||
| ]; | ||
|
|
||
| return ( | ||
| <div className={styles.partnerGrid}> | ||
| {partners.map((partner) => ( | ||
| <div key={partner.name} className={styles.partnerItem}> | ||
| <Image | ||
| src={partner.logo} | ||
| alt={`${partner.name} Logo`} | ||
| width={120} | ||
| height={60} | ||
| style={{ objectFit: "contain" }} | ||
| /> | ||
| <p>{partner.name}</p> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default OurPartners; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import styles from "./about_us.module.css"; | ||
|
|
||
| const OurValues = () => { | ||
| return ( | ||
| <ul className="our-values-list"> | ||
| <li> | ||
| <strong>Exploration:</strong> We are driven by a desire to explore the unknown and expand our understanding of the universe. | ||
| </li> | ||
| <li> | ||
| <strong>Innovation:</strong> We use the latest technology to ensure our missions are advanced, safe, and meaningful. | ||
| </li> | ||
| <li> | ||
| <strong>Sustainability:</strong> We’re committed to responsible space travel that protects both Earth and space for future generations. | ||
| </li> | ||
| <li> | ||
| <strong>Community:</strong> We build a global community of explorers who share a passion for the stars. | ||
| </li> | ||
| </ul> | ||
| ); | ||
| }; | ||
|
|
||
| export default OurValues; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
|
|
||
| .our-values-list li { | ||
| background-color: #f9f9f9; | ||
| border-radius: 8px; | ||
| padding: 15px 20px 20px 15px; | ||
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | ||
| color: #333; | ||
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
| line-height: 1.6; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| .crewGrid { | ||
| display: grid; | ||
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); | ||
| gap: 1.5rem; | ||
| margin-top: 1rem; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .crewGrid h4 { | ||
| margin: 0.5rem 0 0.25rem; | ||
| } | ||
|
|
||
| .crewGrid p { | ||
| font-size: 0.9rem; | ||
| color: #ccc; | ||
| } | ||
|
|
||
|
|
||
| .partnerGrid { | ||
| display: grid; | ||
| grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); | ||
| gap: 1rem; | ||
| margin-top: 1rem; | ||
| align-items: center; | ||
| justify-items: center; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .partnerItem img { | ||
| max-width: 100%; | ||
| } | ||
|
|
||
| .partnerItem p { | ||
| margin-top: 0.5rem; | ||
| font-size: 0.9rem; | ||
| color: #ccc; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,62 +1,38 @@ | ||
| 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"; | ||
| import OurCrew from "./OurCrew"; | ||
| import OurPartners from "./OurPartners"; | ||
| import styles from './about_us.module.css'; | ||
|
|
||
| export const Crew = () => { | ||
| return ( | ||
| <div className="fullBGpicture"> | ||
| <main className="mainContent"> | ||
| <h1>About us</h1> | ||
|
|
||
| <section className="card"> | ||
| <h2>Our Values</h2> | ||
| <OurValues/> | ||
| <OurValues /> | ||
| </section> | ||
|
|
||
| <section className="card"> | ||
| <h2>The crew</h2> | ||
| <OurCrew/> | ||
| <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> | ||
| ); | ||
| } | ||
| }; | ||
|
|
||
| <section className="card"> | ||
| <h2>Our Partners</h2> | ||
| <OurPartners /> | ||
| </section> | ||
|
|
||
|
|
||
| export default Crew; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import styles from "./destination.module.css"; | ||
|
|
||
| export default function PlanetCard({ | ||
| name, | ||
| description, | ||
| thumbnail, | ||
| isSelected, | ||
| onAddOrRemovePlanet, | ||
| }) { | ||
| return ( | ||
| <div className={styles.planetCard}> | ||
| <img className={styles.planetThumbnail} src={thumbnail} alt={name} /> | ||
| <div className={styles.planetDescription}> | ||
| <h2> | ||
| {name.toUpperCase()} {isSelected ? "- SELECTED" : ""} | ||
| </h2> | ||
| <p>{description}</p> | ||
| </div> | ||
| <button className="roundButton" onClick={() => onAddOrRemovePlanet(name)}> | ||
| {isSelected ? "REMOVE" : "ADD PLANET"} | ||
| </button> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| .planetGrid { | ||
|
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. CSS class names should be kebab case. It does not affect functionality but since it's the convention used among developers, it's better to follow it here as well 😉 |
||
| display: grid; | ||
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | ||
| gap: 1.5rem; | ||
| margin-top: 1rem; | ||
| } | ||
|
|
||
| .planetCard { | ||
| background-color: #14213d; | ||
| color: white; | ||
| padding: 1rem; | ||
| border-radius: 8px; | ||
| text-align: center; | ||
| box-shadow: 0 4px 10px rgba(0,0,0,0.2); | ||
| } | ||
|
|
||
| .planetThumbnail { | ||
| width: 100%; | ||
| max-width: 180px; | ||
| border-radius: 4px; | ||
| } | ||
|
|
||
| .planetDescription { | ||
| margin: 1rem 0; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| const destinations = [ | ||
| { | ||
| name: "Europa", | ||
| description: "Europa is an icy moon of Jupiter with a hidden ocean.", | ||
| thumbnail: "/destination/image-europa.png" | ||
| }, | ||
| { | ||
| name: "Moon", | ||
| description: "The Moon is Earth's natural satellite and our closest neighbor.", | ||
| thumbnail: "/destination/image-moon.png" | ||
| }, | ||
| { | ||
| name: "Mars", | ||
| description: "Mars is the red planet with dusty landscapes and big dreams.", | ||
| thumbnail: "/destination/image-mars.png" | ||
| }, | ||
| { | ||
| name: "Titan", | ||
| description: "Titan is Saturn's largest moon, with a thick atmosphere and methane lakes.", | ||
| thumbnail: "/destination/image-titan.png" | ||
| } | ||
| ]; | ||
|
|
||
| export default destinations; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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!
Just a quick comment while I'm here: JSX can’t be outside the component — this likely needs to be moved inside to work properly