diff --git a/src/assets/images/bridge-image.png b/src/assets/images/bridge-image.png deleted file mode 100644 index 20d319554..000000000 Binary files a/src/assets/images/bridge-image.png and /dev/null differ diff --git a/src/assets/images/nostr-image.png b/src/assets/images/nostr-image.png deleted file mode 100644 index 0dabde24f..000000000 Binary files a/src/assets/images/nostr-image.png and /dev/null differ diff --git a/src/features/explorer/components/explorer-cards.tsx b/src/features/explorer/components/explorer-cards.tsx index 5a9f2e2d2..fa9f7ce1e 100644 --- a/src/features/explorer/components/explorer-cards.tsx +++ b/src/features/explorer/components/explorer-cards.tsx @@ -3,8 +3,6 @@ import rocketIcon from '@tabler/icons/outline/rocket.svg'; import { useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; -import bridgeImg from 'soapbox/assets/images/bridge-image.png'; -import nostrImg from 'soapbox/assets/images/nostr-image.png'; import HStack from 'soapbox/components/ui/hstack.tsx'; import IconButton from 'soapbox/components/ui/icon-button.tsx'; import Stack from 'soapbox/components/ui/stack.tsx'; @@ -13,11 +11,9 @@ import Text from 'soapbox/components/ui/text.tsx'; const messages = defineMessages({ welcomeTitle: { id: 'column.explorer.welcome_card.title', defaultMessage: 'Welcome to Explorer' }, - welcomeText: { id: 'column.explorer.welcome_card.text', defaultMessage: 'Explore the world of decentralized social media, dive into Nostr or cross the bridge to other networks, and connect with a global community. All in one place.' }, - nostrTitle: { id: 'column.explorer.nostr_card.title', defaultMessage: 'Nostr' }, - nostrText: { id: 'column.explorer.nostr_card.text', defaultMessage: 'Wondering about Nostr? Click here' }, - bridgeTitle: { id: 'column.explorer.bridge_card.title', defaultMessage: 'Bridge' }, - bridgeText: { id: 'column.explorer.bridge_card.text', defaultMessage: 'Curious about Bridges? Click here' }, + welcomeText: { id: 'column.explorer.welcome_card.text', defaultMessage: 'Explore the world of decentralized social media, dive into {nostrLink} or cross {bridgeLink} to other networks, and connect with a global community. All in one place.' }, + nostrTitle: { id: 'column.explorer.nostr', defaultMessage: 'Nostr' }, + bridgeTitle: { id: 'column.explorer.bridge', defaultMessage: 'Bridges' }, }); const ExplorerCards = () => { @@ -27,7 +23,7 @@ const ExplorerCards = () => { @@ -48,59 +44,11 @@ const ExplorerCards = () => { {intl.formatMessage(messages.welcomeText, { - span: (node) => {node}, + nostrLink: {intl.formatMessage(messages.nostrTitle)}, + bridgeLink: {intl.formatMessage(messages.bridgeTitle)}, })} - - - {/* Nostr */} - - - {/* Title */} - -

- {intl.formatMessage(messages.nostrTitle)} -

- - {intl.formatMessage(messages.nostrText, { - a: (node) => {node}, - })} - -
- -
- -
-
-
- - {/* Bridge */} - - - {/* Title */} - -

{intl.formatMessage(messages.bridgeTitle)}

- - {intl.formatMessage(messages.bridgeText, { - a: (node) => {node}, - })} - -
- -
- -
-
-
-
); }; diff --git a/src/locales/en.json b/src/locales/en.json index 26e439175..d8405ed12 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -369,8 +369,7 @@ "column.event_participants": "Event participants", "column.events": "Events", "column.explorer": "Explorer", - "column.explorer.bridge_card.text": "Curious about Bridges? Click here", - "column.explorer.bridge_card.title": "Bridge", + "column.explorer.bridge": "Bridges", "column.explorer.filters": "Filters:", "column.explorer.filters.add_filter": "Add Filter", "column.explorer.filters.bluesky": "Bluesky", @@ -381,15 +380,14 @@ "column.explorer.filters.filter_by_words": "Filter by this/these words", "column.explorer.filters.include": "Include", "column.explorer.filters.language": "Language:", + "column.explorer.filters.no_replies": "No Replies:", "column.explorer.filters.nostr": "Nostr", "column.explorer.filters.platforms": "Platforms:", - "column.explorer.filters.show_replies": "Show replies:", "column.explorer.filters.show_text_posts": "Just text posts:", "column.explorer.filters.show_video_posts": "Just posts with video:", - "column.explorer.nostr_card.text": "Wondering about Nostr? Click here", - "column.explorer.nostr_card.title": "Nostr", + "column.explorer.nostr": "Nostr", "column.explorer.popular_accounts": "Popular Accounts", - "column.explorer.welcome_card.text": "Explore the world of decentralized social media, dive into Nostr or cross the bridge to other networks, and connect with a global community. All in one place.", + "column.explorer.welcome_card.text": "Explore the world of decentralized social media, dive into {nostrLink} or cross {bridgeLink} to other networks, and connect with a global community. All in one place.", "column.explorer.welcome_card.title": "Welcome to Explorer", "column.export_data": "Export data", "column.familiar_followers": "People you know following {name}",