-
Notifications
You must be signed in to change notification settings - Fork 20
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
491da8d
commit 15d18e2
Showing
28 changed files
with
2,610 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,7 @@ node_modules | |
.vercel | ||
yarn-error.log | ||
.env.local | ||
.env | ||
robots.txt | ||
sitemap.xml | ||
sitemap.xml | ||
|
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,4 @@ | ||
declare module "*.gql" { | ||
const content: any; | ||
export default content; | ||
} |
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,38 @@ | ||
import Highlight, { defaultProps } from "prism-react-renderer"; | ||
import theme from "prism-react-renderer/themes/vsDark"; | ||
|
||
const Code = ({ language, value, children, className, ...rest }) => { | ||
if (className && className.startsWith("language-")) { | ||
language = className.replace("language-", ""); | ||
} | ||
|
||
return ( | ||
<Highlight | ||
{...defaultProps} | ||
{...rest} | ||
code={value ?? children} | ||
language={language} | ||
theme={theme}> | ||
{({ tokens, getLineProps, getTokenProps }) => ( | ||
<pre className="codeblock-pre-container"> | ||
{tokens.map((line, i) => { | ||
// Workaround for MDX rendering trailing lines on everything | ||
const lastLine = i === tokens.length - 1; | ||
return ( | ||
<div key={i} {...getLineProps({ line, key: i })}> | ||
{line.map((token, key) => { | ||
if (lastLine && token.empty) { | ||
return null; | ||
} | ||
return <span key={key} {...getTokenProps({ token, key })} />; | ||
})} | ||
</div> | ||
); | ||
})} | ||
</pre> | ||
)} | ||
</Highlight> | ||
); | ||
}; | ||
|
||
export default Code; |
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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ type Prefooter = | |
| { | ||
type: "subscribe"; | ||
} | ||
| { type: "jobs"; cta?: { label: string; href: string; asPath?: string } } | ||
| { type: "faqs"; cta?: { label: string; href: string; asPath?: string } }; | ||
|
||
export type FooterProps = { | ||
|
@@ -101,6 +102,21 @@ const Footer = ({ | |
}, | ||
], | ||
}, | ||
{ | ||
title: t("nav-about-livepeer"), | ||
items: [ | ||
{ label: t("nav-about"), href: "/about" }, | ||
{ label: "Jobs", href: "/jobs" }, | ||
{ | ||
label: t("nav-privacy-policy"), | ||
href: "/privacy-policy", | ||
}, | ||
{ | ||
label: t("nav-contact"), | ||
href: "mailto:[email protected]", | ||
}, | ||
], | ||
}, | ||
]; | ||
return ( | ||
<Box as="footer" bg={isDark ? "text" : "background"}> | ||
|
@@ -122,10 +138,13 @@ const Footer = ({ | |
"minmax(auto, 184px)", | ||
null, | ||
null, | ||
"repeat(4, minmax(auto, 184px))", | ||
"repeat(5, minmax(auto, 184px))", | ||
]} | ||
gap={[5, null, null, 0]} | ||
sx={{ justifyContent: ["center", null, null, "space-between"] }}> | ||
sx={{ | ||
mb: 5, | ||
justifyContent: ["center", null, null, "space-between"], | ||
}}> | ||
{lists.map((list) => ( | ||
<FooterList key={`footer-list-${list.title}`} {...list} /> | ||
))} | ||
|
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,70 @@ | ||
import { Container, Heading, Text, Box, Link as A } from "theme-ui"; | ||
import PrefooterSvg from "components/svgs/prefooter"; | ||
import Link from "next/link"; | ||
|
||
const PrefooterJobsBanner = ({ | ||
cta = { label: "View Open Positions", href: "/jobs" }, | ||
}: { | ||
cta?: { label: string; href: string; asPath?: string }; | ||
}) => ( | ||
<Box sx={{ px: 3, pt: [4, "80px"], pb: "80px", mb: [0, "80px"] }}> | ||
<Container | ||
sx={{ | ||
bg: "text", | ||
py: [4, 5], | ||
px: [4, null, null, "96px"], | ||
position: "relative", | ||
overflow: "hidden", | ||
borderRadius: "lg", | ||
boxShadow: "magical", | ||
}}> | ||
<Box | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: ["center", null, null, "flex-start"], | ||
mx: ["auto", null, null, 0], | ||
zIndex: "general", | ||
position: "relative", | ||
}}> | ||
<Heading | ||
variant="heading.3" | ||
sx={{ | ||
textAlign: ["center", null, null, "left"], | ||
color: "background", | ||
maxWidth: "xl", | ||
}}> | ||
Join us. | ||
<br /> | ||
From anywhere. | ||
</Heading> | ||
<Text | ||
variant="normal" | ||
sx={{ | ||
mt: "18px", | ||
mb: "40px", | ||
textAlign: ["center", null, null, "left"], | ||
color: "lightGray", | ||
maxWidth: "30ch", | ||
}}> | ||
Help us build the world's open video infrastructure. | ||
</Text> | ||
<Link href={cta.href} as={cta.asPath} passHref> | ||
<A variant="buttons.primary">{cta.label}</A> | ||
</Link> | ||
</Box> | ||
<Box | ||
sx={{ | ||
position: "absolute", | ||
right: "-336px", | ||
top: ["unset", null, null, "50%"], | ||
bottom: ["-232px", "-190px", null, "unset"], | ||
transform: ["none", null, null, "translateY(-50%)"], | ||
}}> | ||
<PrefooterSvg fill="primary" /> | ||
</Box> | ||
</Container> | ||
</Box> | ||
); | ||
|
||
export default PrefooterJobsBanner; |
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,28 @@ | ||
import { Container, Grid } from "@theme-ui/components"; | ||
import TeamMember from "./member"; | ||
|
||
const TeamSection = ({ teamMembers }) => { | ||
return ( | ||
<Container> | ||
<Grid | ||
columns={[1, 2, 3, null, 4]} | ||
gap={3} | ||
sx={{ maxWidth: 1200, textAlign: "center", margin: "0 auto" }}> | ||
{teamMembers.map((t, i) => ( | ||
<TeamMember | ||
key={i} | ||
fullname={t.fullname} | ||
role={t.role} | ||
image={t.image} | ||
twitter={t.twitter} | ||
linkedin={t.linkedin} | ||
github={t.github} | ||
medium={t.medium} | ||
/> | ||
))} | ||
</Grid> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default TeamSection; |
Oops, something went wrong.
15d18e2
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.
Successfully deployed to the following URLs: