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

Added meet our team section #6

Open
wants to merge 1 commit 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
Binary file added public/team/anthony-gonzalez.png
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 public/team/jennifer-yu.png
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 public/team/lina-palaka.png
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 public/team/marina-hu.png
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 public/team/murou-wang.png
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 public/team/osheen-tikku.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import Image from 'next/image';
import styles from './style.module.scss';
import Typography from '@/components/Typography';
import MeetTeam from '@/sections/about/MeetTeam';
import Hero from '@/sections/about/Hero';

const About: React.FC = () => {
return (
<main className={styles.main}>
<Hero />
<MeetTeam />
</main>
);
};

export default About;
17 changes: 17 additions & 0 deletions src/app/about/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@use 'src/styles/vars.scss' as vars;

.main {
padding: 9.25rem 0;
gap: 9.25rem;
width: 80%;
margin: auto;
display: flex;
align-items: center;
flex-wrap: wrap;

@media screen and (width < vars.$breakpoint) {
width: auto;
padding: 3.5rem 2rem;
gap: 3.5rem;
}
}
5 changes: 3 additions & 2 deletions src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ interface EventCardProps {
image: string;
children: ReactNode;
className?: string;
aspectRatio?: number;
}

const Card = ({ image, children, className }: EventCardProps) => {
const Card = ({ image, children, className, aspectRatio }: EventCardProps) => {
return (
<div className={`${styles.card} ${className || ''}`}>
<div className={styles.picture}>
<div className={styles.picture} style={{aspectRatio}}>
<Image src={image} alt="Event image" objectFit="cover" fill />
</div>
<div className={styles.cardContent}>{children}</div>
Expand Down
24 changes: 24 additions & 0 deletions src/components/TeamCard/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Image from 'next/image';
import styles from './style.module.scss';
import Typography from '../Typography';
import Card from '../Card';

interface TeamCardProps {
image: string;
team: { title: string; position: string};
}

const TeamCard = ({ image, team: { title, position } }: TeamCardProps ) => {
return (
<Card image={image} className={styles.card} aspectRatio={9 / 8}>
<Typography variant="body" className={styles.heading}>
{title}
</Typography>
<Typography variant="label" className={styles.date}>
{position}
</Typography>
</Card>
);
};

export default TeamCard;
24 changes: 24 additions & 0 deletions src/components/TeamCard/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.card {
width: 22.5rem;
}

.teamCard {
display: flex;
flex-direction: column;
flex: none;
width: 22.5rem;
border-radius: 0.75rem;
border: 1px solid #c3c6cf;
background-color: #faf9fc;
overflow: hidden;

.picture {
aspect-ratio: 9 / 8;
position: relative;
}

.cardContent {
padding: 1rem;
}
}

15 changes: 15 additions & 0 deletions src/sections/about/Hero/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Typography from '@/components/Typography';
import styles from './style.module.scss';

export default function Hero() {
return (
<div className={styles.container}>
<div className={styles.description}>
<Typography variant="display/medium">Hello World!</Typography>
<Typography variant="subheading">
Join us in our endeavor to empower the next generation of programmers, builders, and leaders.
</Typography>
</div>
</div>
);
}
23 changes: 23 additions & 0 deletions src/sections/about/Hero/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@use 'src/styles/vars.scss' as vars;

.container {
display: flex;
grid-template-columns: 1fr minmax(auto, 400px);
align-items: center;
grid-gap: 3rem;

@media screen and (width < 1100px) {
grid-template-columns: 1fr;
justify-items: center;

grid-gap: 2rem;
}
}

.description {
display: flex;
flex-direction: column;
grid-area: description;
gap: 1rem;
}

22 changes: 22 additions & 0 deletions src/sections/about/MeetTeam/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Typography from '@/components/Typography';
import styles from './style.module.scss';
import Image from 'next/image';
import team from './team';
import TeamCard from '@/components/TeamCard';

export default function MeetTeam() {
return (
<div className={styles.container}>
<div className={styles.description}>
<Typography variant="display/medium">Meet Our Team</Typography>
</div>
<div className={styles.wrapper}>
<div className={styles.teamGrid}>
{team.map((item, index) => (
<TeamCard key={index} {...item} />
))}
</div>
</div>
</div>
);
}
34 changes: 34 additions & 0 deletions src/sections/about/MeetTeam/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@use 'src/styles/vars.scss' as vars;

.container {
display: flex;
flex-direction: column;
gap: 1.5rem;
align-self: flex-start;
width: 100%;

.description {
display: flex;
flex-direction: column;
gap: 1rem;
}

.wrapper {
display: flex;
overflow: hidden;

.teamGrid {
display: grid;

@media screen and (width < vars.$breakpoint) {
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
}

grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
padding: 1rem 0;
gap: 1rem;
}
}
}
46 changes: 46 additions & 0 deletions src/sections/about/MeetTeam/team.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
const team = [
{
image: '/team/murou-wang.png',
team: {
title: 'Murou Wang',
position: 'Vice President Outreach',
},
},
{
image: '/team/lina-palaka.png',
team: {
title: 'Lina Palaka',
position: 'Logistics Lead',
},
},
{
image: '/team/marina-hu.png',
team: {
title: 'Marina Hu',
position: 'Logistics Lead',
},
},
{
image: '/team/anthony-gonzalez.png',
team: {
title: 'Anthony Gonzalez',
position: 'Content Director',
},
},
{
image: '/team/jennifer-yu.png',
team: {
title: 'Jennifer Yu',
position: 'Content Director',
},
},
{
image: '/team/osheen-tikku.png',
team: {
title: 'Osheen Tikku',
position: 'Content Director',
},
},
];

export default team;
Loading