Skip to content

Commit 6c6d80c

Browse files
authored
Merge pull request #11005 from ethereum/dappPageChanges
Dapp page changes
2 parents dc38798 + 671b105 commit 6c6d80c

File tree

3 files changed

+30
-66
lines changed

3 files changed

+30
-66
lines changed

src/assets/dapps/ens.png

-2.64 KB
Loading

src/intl/en/page-dapps.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"page-dapps-axie-infinity-logo-alt": "Axie Infinity logo",
1212
"page-dapps-balancer-logo-alt": "Balancer logo",
1313
"page-dapps-brave-logo-alt": "Brave logo",
14-
"page-dapps-category-arts": "Digital art",
14+
"page-dapps-beginner-friendly-description": "A few dapps that are good for beginners. Explore more dapps below.",
15+
"page-dapps-beginner-friendly-header": "Beginner friendly",
16+
"page-dapps-category-arts": "Art and fashion",
1517
"page-dapps-category-browsers": "Browsers",
1618
"page-dapps-category-code-marketplaces": "Code marketplaces",
1719
"page-dapps-category-collectibles": "Digital collectibles",
@@ -140,9 +142,7 @@
140142
"page-dapps-desc": "Find an Ethereum application to try.",
141143
"page-dapps-doge-img-alt": "Illustration of a doge using a computer",
142144
"page-dapps-editors-choice-dark-forest": "Play against others to conquer planets and try out bleeding-edge Ethereum scaling/privacy technology. Maybe one for those already familiar with Ethereum.",
143-
"page-dapps-editors-choice-description": "A few dapps the ethereum.org team are loving right now. Explore more dapps below.",
144145
"page-dapps-editors-choice-foundation": "Invest in culture. Buy, trade, and sell unique digital artwork and fashion from some incredible artists, musicians, and brands.",
145-
"page-dapps-editors-choice-header": "Editors' choices",
146146
"page-dapps-editors-choice-pooltogether": "Buy a ticket for the no-loss lottery. Each week, the interest generated from the entire ticket pool is sent to one lucky winner. Get your money back whenever you like.",
147147
"page-dapps-editors-choice-uniswap": "Swap your tokens with ease. A community favourite that allows you to trade tokens with folks across the network.",
148148
"page-dapps-ens-logo-alt": "Ethereum Name Service logo",

src/pages-conditional/dapps.tsx

Lines changed: 27 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -316,29 +316,6 @@ const RightColumn = (props: ChildOnlyProp) => (
316316
<Box w="full" m={{ base: "auto 0", lg: 0 }} ml={{ lg: 8 }} {...props} />
317317
)
318318

319-
const AddDapp = (props: ChildOnlyProp) => (
320-
<Flex
321-
direction={{ base: "column", sm: "row" }}
322-
justify="space-between"
323-
align={{ base: "flex-start", sm: "center" }}
324-
borderRadius="base"
325-
border="1px solid"
326-
borderColor="border"
327-
p={6}
328-
mt={6}
329-
{...props}
330-
/>
331-
)
332-
333-
const AddDappButton = (props: ComponentPropsWithRef<typeof ButtonLink>) => (
334-
<ButtonLink
335-
variant="outline"
336-
mt={{ base: 8, sm: 0 }}
337-
ml={{ base: 0, md: 8 }}
338-
{...props}
339-
/>
340-
)
341-
342319
const StyledCallout = (props: ComponentPropsWithRef<typeof Callout>) => (
343320
<Callout flex="1 1 416px" minH="full" mt={{ base: 48, lg: 32 }} {...props} />
344321
)
@@ -1198,33 +1175,33 @@ const DappsPage = ({
11981175
pillColor: "tagMint",
11991176
},
12001177
{
1201-
name: "Dark Forest",
1202-
description: t("page-dapps-editors-choice-dark-forest"),
1203-
url: "https://zkga.me",
1204-
image: getImage(data.darkforestec),
1205-
alt: t("page-dapps-dark-forest-logo-alt"),
1206-
background: "#080808",
1207-
type: CategoryType.GAMING,
1208-
pillColor: "tagOrange",
1209-
},
1210-
{
1211-
name: "Foundation",
1212-
description: t("page-dapps-editors-choice-foundation"),
1213-
url: "https://foundation.app",
1214-
image: getImage(data.foundationec),
1215-
alt: t("page-dapps-foundation-logo-alt"),
1216-
background: "#ffffff",
1178+
name: "OpenSea",
1179+
description: t("page-dapps-dapp-description-opensea"),
1180+
url: "https://opensea.io/",
1181+
image: getImage(data.opensea),
1182+
alt: t("page-dapps-opensea-logo-alt"),
1183+
background: "#181b21",
12171184
type: CategoryType.COLLECTIBLES,
12181185
pillColor: "tagBlue",
12191186
},
12201187
{
1221-
name: "PoolTogether",
1222-
description: t("page-dapps-editors-choice-pooltogether"),
1223-
url: "https://pooltogether.com",
1224-
image: getImage(data.pooltogetherec),
1225-
alt: t("page-dapps-pooltogether-logo-alt"),
1226-
background: "#7e4cf2",
1227-
type: CategoryType.FINANCE,
1188+
name: "Gods Unchained",
1189+
description: t("page-dapps-dapp-description-gods-unchained"),
1190+
url: "https://godsunchained.com/",
1191+
image: getImage(data.gods),
1192+
alt: t("page-dapps-gods-unchained-logo-alt"),
1193+
background: "#111c25",
1194+
type: CategoryType.GAMING,
1195+
pillColor: "tagOrange",
1196+
},
1197+
{
1198+
name: "Ethereum Name Service",
1199+
description: t("page-dapps-dapp-description-ens"),
1200+
url: "https://ens.domains/",
1201+
image: getImage(data.ens),
1202+
alt: t("page-dapps-ens-logo-alt"),
1203+
background: "#fff",
1204+
type: CategoryType.SOCIAL,
12281205
pillColor: "tagMint",
12291206
},
12301207
]
@@ -1238,7 +1215,7 @@ const DappsPage = ({
12381215
buttons: [
12391216
{
12401217
content: t("page-dapps-explore-dapps-title"),
1241-
to: "#explore",
1218+
to: "#beginner",
12421219
matomo: {
12431220
eventCategory: "dapp hero buttons",
12441221
eventAction: "click",
@@ -1343,12 +1320,12 @@ const DappsPage = ({
13431320
</StepBox>
13441321
</StepBoxContainer>
13451322
</Row>
1346-
<H3>
1347-
<Translation id="page-dapps-editors-choice-header" />{" "}
1323+
<H3 id="beginner">
1324+
<Translation id="page-dapps-beginner-friendly-header" />{" "}
13481325
<Emoji text=":+1:" />
13491326
</H3>
13501327
<Text>
1351-
<Translation id="page-dapps-editors-choice-description" />
1328+
<Translation id="page-dapps-beginner-friendly-description" />
13521329
</Text>
13531330
<StyledCardGrid>
13541331
{editorChoices.map((choice, idx) => (
@@ -1749,19 +1726,6 @@ const DappsPage = ({
17491726
)}
17501727
{/* General content for all categories */}
17511728
<Content>
1752-
<AddDapp>
1753-
<Box>
1754-
<StyledH2>
1755-
<Translation id="page-dapps-add-title" />
1756-
</StyledH2>
1757-
<Text mb={0} mr={4}>
1758-
<Translation id="listing-policy-disclaimer" />{" "}
1759-
</Text>
1760-
</Box>
1761-
<AddDappButton to="https://github.com/ethereum/ethereum-org-website/issues/new?assignees=&labels=Type%3A+Feature&template=suggest_dapp.yaml&title=">
1762-
<Translation id="page-dapps-add-button" />
1763-
</AddDappButton>
1764-
</AddDapp>
17651729
<CenterDivider />
17661730
{categories[selectedCategory].benefits && (
17671731
<Box mt={12}>

0 commit comments

Comments
 (0)