Skip to content

Commit 0658989

Browse files
authored
Merge pull request #8805 from ethereum/staking-survery-banner
Adds staking survey banner to staking pages [Closes #8654]
2 parents 0949d36 + 061f65d commit 0658989

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react"
2+
import BannerNotification from "../BannerNotification"
3+
import Link from "../Link"
4+
import { Text } from "@chakra-ui/react"
5+
6+
const StakingSurveyBanner: React.FC = () => (
7+
<BannerNotification shouldShow>
8+
<Text m={0} textAlign="center">
9+
Researchers with EthStaker and the Ethereum Foundation are looking for
10+
anonymous feedback from stakers.{" "}
11+
<Link to="https://stakingsurvey.paperform.co/">
12+
Take a quick survey here
13+
</Link>
14+
</Text>
15+
</BannerNotification>
16+
)
17+
18+
export default StakingSurveyBanner

src/pages/staking/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
import FeedbackCard from "../../components/FeedbackCard"
2121
import ExpandableCard from "../../components/ExpandableCard"
2222
import StakingStatsBox from "../../components/Staking/StakingStatsBox"
23+
import StakingSurveyBanner from "../../components/Staking/StakingSurveyBanner"
2324
import StakingHierarchy from "../../components/Staking/StakingHierarchy"
2425
import StakingHomeTableOfContents from "../../components/Staking/StakingHomeTableOfContents"
2526
import StakingCommunityCallout from "../../components/Staking/StakingCommunityCallout"
@@ -344,6 +345,7 @@ const StakingPage = ({
344345
description={translateMessageId("page-staking-meta-description", intl)}
345346
/>
346347
<HeroStatsWrapper>
348+
<StakingSurveyBanner />
347349
<PageHero content={heroContent} />
348350
<StakingStatsBox />
349351
</HeroStatsWrapper>

src/templates/staking.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import StakingHowSoloWorks from "../components/Staking/StakingHowSoloWorks"
4646
import StakingConsiderations from "../components/Staking/StakingConsiderations"
4747
import StakingCommunityCallout from "../components/Staking/StakingCommunityCallout"
4848
import StakingGuides from "../components/Staking/StakingGuides"
49+
import StakingSurveyBanner from "../components/Staking/StakingSurveyBanner"
4950

5051
import { isLangRightToLeft, TranslationKey } from "../utils/translations"
5152
import { Context } from "../types"
@@ -403,6 +404,7 @@ const StakingPage = ({
403404

404405
return (
405406
<Container>
407+
<StakingSurveyBanner />
406408
<HeroContainer>
407409
<TitleCard>
408410
<Breadcrumbs slug={location.pathname} />

0 commit comments

Comments
 (0)