Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React week1 #18

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
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
68 changes: 68 additions & 0 deletions app/about_us/OurCrew.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import styles from "./page.module.css";

const crewMembers = [
{
name: "Captain Sarah Vega",
title: "Astronaut",
description:
"A former NASA astronaut with over 15 years of experience, Captain Vega leads our missions with unparalleled expertise and a passion for space exploration.",
image: "crew/image-anousheh-ansari.png",
alt: "Captain Sarah Vega - Astronaut",
},
{
name: "Dr. Leo Redding",
title: "Chief Astrophysicist",
description:
"Our chief astrophysicist, Dr. Redding, is a renowned scientist who has contributed to major space discoveries. He ensures that every journey is as educational as it is exhilarating.",
image: "crew/image-douglas-hurley.png",
alt: "Dr. Leo Redding - Chief Astrophysicist",
},
{
name: "Alex Santos",
title: "Mission Specialist",
description:
"As a mission specialist, Alex’s job is to ensure that every aspect of the journey runs smoothly. With a background in both science and adventure tourism, Alex is the perfect guide for our space travelers.",
image: "crew/image-victor-glover.png",
alt: "Alex Santos - Mission Specialist",
},
{
name: "Maya Patel",
title: "Crew Member",
description:
"Maya brings a unique blend of technical skills and customer service experience to the team. She’s always ready to assist with any needs and to make sure every traveler has an unforgettable experience.",
image: "crew/image-mark-shuttleworth.png",
alt: "Maya Patel - Crew Member",
},
{
name: "Hana Lee",
title: "Chief Engineer",
description:
"With her extensive background in aerospace engineering, Hana Lee is responsible for the state-of-the-art technology that powers our spacecraft. Her innovation ensures that our travelers are always in safe hands.",
image: "crew/image-anousheh-ansari.png",
alt: "Hana Lee - Chief Engineer",
},
];

export const OurCrew = () => {
return (
<section>
<p className={styles.text_crew}>
Our crew is the heart and soul of Galactica. We are a diverse team of
seasoned space explorers, engineers, and visionaries who are united by a
common goal: to make space travel accessible and exciting for all.
</p>
<div className={styles.container_crew}>
{crewMembers.map((member, index) => (
<div className={styles.item_crew} key={index}>
<div className={styles.image_crew}>
<img src={member.image} alt={member.alt} />
</div>
<div className={styles.name_crew}>{member.name}</div>
<div className={styles.title_crew}>{member.title}</div>
<p className={styles.description_crew}>{member.description}</p>
</div>
))}
</div>
</section>
);
};
70 changes: 70 additions & 0 deletions app/about_us/OurPartners.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import styles from "./page.module.css";

export const OurPartners = () => {
return (
<section>
<p className={styles.text_partners}>
We collaborate with some of the most respected names in the space and
technology industries to make every journey extraordinary.
</p>
<div className={styles.container_partners}>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/alphabet-logo.png"}
alt={"Alphabet company logo"}
/>
</div>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/amazon_logo.png"}
alt={"Amazon company logo"}
/>
</div>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/CBC_Logo_White.png"}
alt={"CBC Logo in White"}
/>
</div>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/Microsoft-Logo-white.png"}
alt={"Microsoft Logo in white"}
/>
</div>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/nyu-logo.png"}
alt={"NYU logo"}
/>
</div>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/QueensLogo_white.png"}
alt={"Queens University logo in white"}
/>
</div>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/samsung-logo.png"}
alt={"Samsung company logo"}
/>
</div>
<div className={styles.item_partners}>
<img
className={styles.image_partners}
src={"business_partners/sodexo-logo.png"}
alt={"Sodexo company logo"}
/>
</div>
</div>
</section>
);
};
44 changes: 44 additions & 0 deletions app/about_us/OurValues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import styles from "./page.module.css";

const values = [
{
number: 1,
title: "Exploration",
description:
"We are driven by a deep-seated desire to explore the unknown. We believe that the pursuit of discovery is at the heart of human nature, and we are committed to pushing the boundaries of what is possible.",
},
{
number: 2,
title: "Innovation",
description:
"At Galactica, we prioritize cutting-edge technology and innovation. We are constantly evolving our spacecraft, safety protocols, and services to ensure that our travelers experience the most advanced and secure space journeys available.",
},
{
number: 3,
title: "Sustainability",
description:
"We are committed to making space exploration sustainable for future generations. Our space missions are designed to minimize environmental impact, both on Earth and in space, and to foster a spirit of responsibility towards our universe.",
},
{
number: 4,
title: "Community",
description:
"We believe in the power of collective exploration. Our journeys are not just about reaching new destinations; they are about building a community of space enthusiasts who share a passion for the stars.",
},
];

export const OurValues = () => {
return (
<div className={styles.container}>
{values.map((value) => (
<div className={styles.item} key={value.number}>
<div className={styles.number}>{value.number}</div>
<div>
<h3>{value.title}</h3>
<p className={styles.text}>{value.description}</p>
</div>
</div>
))}
</div>
);
};
54 changes: 10 additions & 44 deletions app/about_us/page.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
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 { OurPartners } from "@/app/about_us/OurPartners";
import { OurCrew } from "@/app/about_us/OurCrew";
import { OurValues } from "@/app/about_us/OurValues";

export const Crew = () => {
return (
Expand All @@ -45,18 +9,20 @@ export const Crew = () => {
<h1>About us</h1>
<section className="card">
<h2>Our Values</h2>
<OurValues/>
<OurValues />
</section>
<section className="card">
<h2>The crew</h2>
<OurCrew/>
<OurCrew />
</section>

{/* TASK - React 1 week 1 */}
{/* Add in the "OurPartners" component here */}
<section className="card">
<h2>Our Partners</h2>
<OurPartners />
</section>
</main>
</div>
);
}
};

export default Crew;
86 changes: 86 additions & 0 deletions app/about_us/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,89 @@
width: 100vw;
height: 100vh;
}
/* Our Values */
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 20px;
padding: 20px;
}

.item {
flex: 1 1 calc(50% - 20px);
padding: 20px;
border-radius: 8px;
}

.number {
font-size: 40px;
color: gray;
}

.text {
font-size: 1rem;
color: white;
}

/* Our Crew */
.text_crew,
.text_partners {
width: 700px;
line-height: 22px;
padding-top: 10px;
margin: 12px 0 0 33px;
}

.container_crew {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 3rem;
padding: 2rem;
}
.item_crew {
display: flex;
flex-direction: column;
width: 280px;
}
.image_crew {
margin-bottom: 20px;
}
.image_crew img {
object-fit: cover;
display: block;
background-color: white;
height: 350px;
width: 280px;
border-radius: 20px;
}
.title_crew {
margin-top: 5px;
font-size: 14px;
color: gray;
}
.name_crew {
font-weight: bold;
}
.description_crew {
margin-top: 20px;
font-size: 14px;
font-style: italic;
line-height: 20px;
}

/* Our Partners */
.container_partners {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 2rem;
padding: 2rem;
align-items: center;
}
.item_partners {
display: flex;
justify-content: center;
}
.image_partners {
max-width: 70%;
}
8 changes: 3 additions & 5 deletions app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ 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>
);
}
};

export default RootLayout;
export default RootLayout;
Loading