This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81d6e8b
commit 5e0ca78
Showing
5 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 { YouTubeEmbed } from './YouTubeEmbed' | ||
import { InfoSectipn } from './InfoSection' | ||
|
||
export const Founder = ({ | ||
name, | ||
title, | ||
videoId, | ||
description, | ||
isReverse = false, | ||
}) => { | ||
return ( | ||
<div> | ||
{isReverse ? ( | ||
<div className="mt-10 flex flex-col gap-10 pb-10 md:flex-row"> | ||
<InfoSectipn title={title} name={name} description={description} /> | ||
<YouTubeEmbed videoId={videoId} className="flex-grow-2" /> | ||
</div> | ||
) : ( | ||
<div className="mt-10 flex flex-col gap-10 md:flex-row"> | ||
<YouTubeEmbed | ||
videoId={videoId} | ||
className="flex-grow-2 order-2 md:order-1" | ||
/> | ||
<InfoSectipn | ||
title={title} | ||
name={name} | ||
description={description} | ||
className="order-1 md:order-2" | ||
/> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} |
This file contains 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,45 @@ | ||
import { Container } from '@/components/Container' | ||
import { H2 } from '@/components/Headings' | ||
import { Founder } from './Founder' | ||
|
||
const founders = [ | ||
{ | ||
name: 'Eddie Jaoude', | ||
title: 'Why EddieHub was founded', | ||
videoId: 'RnH9udLsAKk', | ||
description: | ||
'"Collaboration First, Code Second quickly became what the community members live by"', | ||
}, | ||
{ | ||
name: 'Sara Jaoude', | ||
title: "Find out about EddieHub's aims", | ||
videoId: 'eWetvRusfUU', | ||
description: '"Open Source is our hobby, our passion - not just our job"', | ||
}, | ||
] | ||
|
||
export function Founders() { | ||
return ( | ||
<section | ||
id="founders" | ||
aria-label="founders" | ||
className="bg-primary-600 pb-16 pt-20 text-white" | ||
> | ||
<Container> | ||
<div className="md:text-center"> | ||
<H2>EddieHub Founders</H2> | ||
{founders.map((founder, id) => ( | ||
<Founder | ||
key={id} | ||
name={founder.name} | ||
title={founder.title} | ||
videoId={founder.videoId} | ||
description={founder.description} | ||
isReverse={id % 2 === 1} | ||
/> | ||
))} | ||
</div> | ||
</Container> | ||
</section> | ||
) | ||
} |
This file contains 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,12 @@ | ||
import clsx from 'clsx' | ||
export const InfoSectipn = ({ title, name, description, className }) => { | ||
return ( | ||
<div className={clsx('flex-grow-1 flex-1 text-left', className)}> | ||
<h3 className="rounded-full bg-primary-500 p-2 text-xl font-bold"> | ||
{title} | ||
</h3> | ||
<h4 className="my-3 text-lg font-bold">{name}</h4> | ||
<p className="text-lg italic">{description}</p> | ||
</div> | ||
) | ||
} |
This file contains 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,16 @@ | ||
import clsx from 'clsx' | ||
|
||
export const YouTubeEmbed = ({ videoId, className }) => { | ||
return ( | ||
<div className={clsx('my-3 aspect-video md:my-0', className)}> | ||
<iframe | ||
width="100%" | ||
height="110%" | ||
src={`https://www.youtube.com/embed/${videoId}`} | ||
title="YouTube video player" | ||
allowFullScreen | ||
className="mx-auto rounded-2xl" | ||
></iframe> | ||
</div> | ||
) | ||
} |