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

React1 week1/gayathri #235

Open
wants to merge 9 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
1 change: 1 addition & 0 deletions nodejs/week2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 2 additions & 0 deletions nodejs/week3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env
5 changes: 5 additions & 0 deletions react/react1/week1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
node_modules
.next
jsconfig.json
next.config.mjs
47 changes: 47 additions & 0 deletions react/react1/week1/app/about_us/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# TASK 1

Let's finish the "About Us" page!

## Content to use

### Our Mission

At Galactica, our mission is to unlock the wonders of the universe for everyone. We believe that space is the final frontier and that the opportunity to explore it should be within everyone’s reach. Our journeys are designed to inspire, educate, and provide a once-in-a-lifetime experience that transcends the ordinary.

### Our Values

Exploration: 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.

Innovation: 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.

Sustainability: 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.

Community: 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.


### Our Crew

#### Description
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.

Captain Sarah Vega: A former NASA astronaut with over 15 years of experience, Captain Vega leads our missions with unparalleled expertise and a passion for space exploration.

Dr. Leo Redding: 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.

Chief Engineer Hana Lee: 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.

Mission Specialist Alex Santos: 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.

Crew Member Maya Patel: 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.

#### Content

Use the content saved in the `/public/crew` folder!

### Our Partners

We collaborate with some of the most respected names in the space and technology industries to make every journey extraordinary.

#### Content

Use the content saved in the `/public/business_partners` folder!
56 changes: 56 additions & 0 deletions react/react1/week1/app/about_us/ourCrew.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import styles from "./page.module.css";

const crew = [
{
img: "/crew/image-douglas-hurley.webp",
name: "Captain Douglas Hurley",
description:
"A former NASA astronaut with over 15 years of experience, Captain Douglas leads our missions with unparalleled expertise and a passion for space exploration.",
},
{
img: "/crew/image-anousheh-ansari.webp",
name: "Chief Engineer Anousheh Ansari",
description:
"With her extensive background in aerospace engineering, Anousheh is responsible for the state-of-the-art technology that powers our spacecraft. Her innovation ensures that our travelers are always in safe hands.",
},
{
img: "/crew/image-mark-shuttleworth.webp",
name: "Crew Member Mark Shuttleworth",
description:
"Mark brings a unique blend of technical skills and customer service experience to the team. He's always ready to assist with any needs and to make sure every traveler has an unforgettable experience",
},
{
img: "/crew/image-victor-glover.webp",
name: "Mission Specialist Victor Glover",
description:
"As a mission specialist, Victor's job is to ensure that every aspect of the journey runs smoothly. With a background in both science and adventure tourism, Victor is the perfect guide for our space travelers.",
},
];

const OurCrew = () => {
return (
<section className={styles.ourCrew}>
<h2>Meet our talented crew</h2>
<p>
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.crewList}>
{crew.map((member, index) => (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good use of map

<div key={index} className={styles.crewMember}>
<img
src={member.img}
alt={member.name}
className={styles.crewImage}
/>
<h3 style={{ color: "black" }}>{member.name}</h3>
<p style={{ color: "black" }}>{member.description}</p>
</div>
))}
</div>
</section>
);
};

export default OurCrew;
39 changes: 39 additions & 0 deletions react/react1/week1/app/about_us/ourPartners.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import styles from "@/app/about_us/page.module.css";

const partners = [
{ name: "alphabet", img: "/business_partners/alphabet-logo.png" },
{ name: "amazon", img: "/business_partners/amazon_logo.png" },
{ name: "cbc", img: "/business_partners/CBC_Logo_White.png" },
{ name: "microsoft", img: "/business_partners/Microsoft-Logo-white.png" },
{ name: "nyu", img: "/business_partners/nyu-logo.png" },
{ name: "queen", img: "/business_partners/QueensLogo_white.png" },
{ name: "samsung", img: "/business_partners/samsung-logo.png" },
{ name: "sodexo", img: "/business_partners/sodexo-logo.png" },
];

const OurPartners = () => {
return (
<section className={styles.ourPartners}>
<h2 style={{ textAlign: "left", fontSize: "20px" }}>OUR PARTNERS</h2>
<h3 style={{ fontSize: "32px", fontWeight: "bold", maxWidth: "400px" }}>
We collaborate with some of the most respected names in the space and
technology industries to make every journey extraordinary.
</h3>
<div className={styles.gridStyle}>
{partners.map((partner, index) => {
return (
<div key={index} className={styles.logoContainer}>
<img
src={partner.img}
alt={partner.name}
className={styles.imageStyle}
/>
</div>
);
})}
</div>
</section>
);
};

export default OurPartners;
28 changes: 28 additions & 0 deletions react/react1/week1/app/about_us/ourValues.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const values = [
{
number: "01",
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: "02",
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: "03",
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: "04",
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 default values;
45 changes: 45 additions & 0 deletions react/react1/week1/app/about_us/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import styles from "./page.module.css";
import values from "./OurValues";
import OurCrew from "./ourCrew.js";
import OurPartners from "./ourPartners";

const OurValues = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this function should be in it's own file, but it's okay

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for you valuable feedback Lucas :)

return (
<section className={styles.OurValues}>
<h2 style={{ textAlign: "center", color: "#fff", padding: "2rem" }}>
Our Values
</h2>
<div className={styles.grid}>
{values.map((value, index) => (
<div key={index} className={styles.card}>
<span className={styles.number}>{value.number}</span>
<h4 className={styles.title}>{value.title}</h4>
<p className={styles.description}>{value.description}</p>
<div className={styles.divider}></div>
</div>
))}
</div>
</section>
);
};

export const Crew = () => {
return (
<div className="fullBGpicture">
<main className="mainContent">
<h1>About us</h1>
<section className="card">
<OurValues />
</section>
<section className="card">
<OurCrew />
</section>
<section className="card">
<OurPartners />
</section>
</main>
</div>
);
};

export default Crew;
134 changes: 134 additions & 0 deletions react/react1/week1/app/about_us/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
.app {
background-color: black;
width: 100vw;
height: 100vh;
}

.OurValues {
background-color: #121212;
color: #fff;
padding: 4rem 2rem;
text-align: center;
}
.OurValues h2 {
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
opacity: 0.8;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
max-width: 900px;
margin: 0 auto;
}

.card {
text-align: left;
padding: 2rem;
background-color: #1a1a1a;
border-radius: 8px;
position: relative;
}

.number {
font-size: 3rem;
font-weight: bold;
display: block;
margin-bottom: 1rem;
}

.title {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 0.5rem;
}

.description {
font-size: 1rem;
opacity: 0.8;
}

.divider {
width: 100%;
height: 1px;
background-color: #333;
margin-top: 2rem;
}

.card:hover {
transform: scale(1.02);
transition: transform 0.3s ease-in-out;
}

.ourCrew {
padding: 2rem;
text-align: center;
background-color: #111;
}

.ourCrew p {
padding: 2rem;
}

.crewList {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
justify-items: center;
}

.crewMember {
background-color: #f9f9f9;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out;
max-width: 250px;
}

.crewMember:hover {
transform: scale(1.05);
}

.crewImage {
width: 180px;
height: 180px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 10px;
align-self: center;
}

.ourPartners {
background-color: #111;
padding: 50px;
color: white;
}

.gridStyle {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 60px;
align-items: center;
justify-content: center;
padding: 50px;
text-align: center;
}

.logoContainer {
display: flex;
align-items: center;
justify-content: center;
height: 100px;
}

.imageStyle {
max-width: 120px;
max-height: 80px;
object-fit: contain;
filter: brightness(0) invert(1);
}
13 changes: 13 additions & 0 deletions react/react1/week1/app/destination/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Descriptions for the planets

### Europa
Europa, one of Jupiter’s moons, is an icy world with a hidden ocean beneath its surface. This mysterious moon is a prime candidate for the search for extraterrestrial life, making it a thrilling destination for space explorers.

### Mars
Mars, the Red Planet, is a barren yet fascinating world with vast deserts, towering volcanoes, and the deepest canyon in the solar system. As humanity’s next frontier, Mars invites us to dream of colonization and the possibilities of life beyond Earth.

### Moon
Our closest celestial neighbor, the Moon, is a silent witness to Earth's history. With its stunning craters and desolate landscapes, the Moon offers a unique glimpse into space exploration's past and future, making it a perfect destination for lunar adventurers.

### Titan
Titan, Saturn's largest moon, is a world of dense atmosphere and liquid methane lakes. This enigmatic moon is shrouded in a thick orange haze, concealing a landscape that is both alien and strangely familiar, beckoning explorers to uncover its secrets.
Loading