Skip to content

Commit 9c05ee4

Browse files
authored
Merge pull request #12908 from ethereum/contributor-quiz
Contributors quiz callout banner
2 parents ceff526 + 0a6d823 commit 9c05ee4

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

public/content/contributing/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ Before contributing, make sure you're familiar with:
6868
- our [style guide](/contributing/style-guide/)
6969
- our [code of conduct](/community/code-of-conduct)
7070

71+
<ContributorsQuizBanner mt={16} mb={8} />
72+
7173
## How decisions about the site are made {#how-decisions-about-the-site-are-made}
7274

7375
Decisions about individual PRs, design evolution and major upgrades are made by a team from across the Ethereum ecosystem. This team includes project managers, developers, designers, marketing and communications, and subject matter experts. Community input informs every decision: so please raise questions in issues, submit PRs, or contact the team:

public/people-learning.png

289 KB
Loading
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import { Box, Flex, FlexProps, Heading, Text } from "@chakra-ui/react"
2+
3+
import { Image } from "@/components/Image"
4+
5+
import { ButtonLink } from "../Buttons"
6+
7+
import PeopleLearning from "@/public/people-learning.png"
8+
9+
// TODO: refactor to use CalloutBanner component
10+
function ContributorsQuizBanner(props: FlexProps) {
11+
return (
12+
<Flex
13+
as="aside"
14+
flexDir={{ base: "column", md: "row-reverse" }}
15+
bg="layer2Gradient"
16+
borderRadius="base"
17+
{...props}
18+
>
19+
<Flex
20+
flex="1 1 50%"
21+
position="relative"
22+
justify={{ base: "center", md: "end" }}
23+
align="end"
24+
minH={{ base: 200, md: "auto" }}
25+
px={{ base: 8, md: 0 }}
26+
>
27+
<Image
28+
position="absolute"
29+
src={PeopleLearning}
30+
alt="People learning about Ethereum"
31+
w="full"
32+
maxH="120%"
33+
style={{
34+
objectFit: "contain",
35+
}}
36+
/>
37+
<Box hideFrom="md" borderBottom="1px solid #D3C5F1" w="full" />
38+
</Flex>
39+
<Flex
40+
flex="1 1 50%"
41+
flexDir="column"
42+
gap="8"
43+
py="8"
44+
ps="8"
45+
pe={{ base: 8, lg: 0 }}
46+
>
47+
<Flex gap="2" flexDir="column">
48+
<Heading size="lg">Unsure where to start?</Heading>
49+
<Text size="lg" color="body.base">
50+
Take a quick quiz and find out how you can contribute on
51+
ethereum.org.
52+
</Text>
53+
</Flex>
54+
<Box>
55+
<ButtonLink href="https://ethdotorg.typeform.com/contributor">
56+
Take a quiz
57+
</ButtonLink>
58+
</Box>
59+
</Flex>
60+
</Flex>
61+
)
62+
}
63+
64+
export default ContributorsQuizBanner

src/components/MdComponents.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { mdxTableComponents } from "@/components/Table"
3232
import TooltipLink from "@/components/TooltipLink"
3333
import YouTube from "@/components/YouTube"
3434

35+
import ContributorsQuizBanner from "./Banners/ContributorsQuizBanner"
3536
import GlossaryTooltip from "./Glossary/GlossaryTooltip"
3637
import { StandaloneQuizWidget } from "./Quiz/QuizWidget"
3738
import Card from "./Card"
@@ -269,6 +270,7 @@ export const reactComponents = {
269270
Card,
270271
ContentContainer,
271272
Contributors,
273+
ContributorsQuizBanner,
272274
Divider,
273275
DocLink,
274276
Emoji,

0 commit comments

Comments
 (0)