Skip to content

Commit 4c2390c

Browse files
committed
feat: add "new" banner notification
1 parent 7439542 commit 4c2390c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/intl/en/page-resources.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,7 @@
8181
"page-resources-contribute-description": "This dashboard is a living page that requires frequent updates. Help find the best resources to give an overview of the Ethereum ecosystem.",
8282
"page-resources-suggest-resource": "Suggest a resource",
8383
"page-resources-found-bug": "Found a bug",
84-
"page-resources-whats-on-this-page": "What's on this page"
84+
"page-resources-whats-on-this-page": "What's on this page",
85+
"page-resources-banner-notification-message": "Resources dashboard is new!",
86+
"page-resources-share-feedback": "Please share your feedback with us"
8587
}

src/pages/[locale]/resources.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { FaGithub } from "react-icons/fa6"
44

55
import type { BasePageProps, Lang, Params } from "@/lib/types"
66

7+
import BannerNotification from "@/components/Banners/BannerNotification"
78
import { HubHero } from "@/components/Hero"
89
import StackIcon from "@/components/icons/stack.svg"
910
import MainArticle from "@/components/MainArticle"
@@ -12,6 +13,7 @@ import { ResourceItem, ResourcesContainer } from "@/components/Resources"
1213
import { useResources } from "@/components/Resources/useResources"
1314
import Translation from "@/components/Translation"
1415
import { ButtonLink } from "@/components/ui/buttons/Button"
16+
import Link from "@/components/ui/Link"
1517
import { Section } from "@/components/ui/section"
1618

1719
import { cn } from "@/lib/utils/cn"
@@ -93,6 +95,18 @@ const ResourcesPage = ({ txCostsMedianUsd }) => {
9395
image="/images/heroes/guides-hub-hero.jpg"
9496
/>
9597

98+
<BannerNotification shouldShow>
99+
{t("page-resources-banner-notification-message")}{" "}
100+
<Link
101+
href={new URL(
102+
"issues/new?title=Resource%20dashboard%20feedback",
103+
GITHUB_REPO_URL
104+
).toString()}
105+
>
106+
{t("page-resources-share-feedback")}
107+
</Link>
108+
</BannerNotification>
109+
96110
<HubHero
97111
title={t("page-resources-hero-title")}
98112
header={t("page-resources-hero-header")}

0 commit comments

Comments
 (0)