Skip to content

Commit

Permalink
Merge pull request ethereum#14401 from ethereum/removeDevconGrantsBanner
Browse files Browse the repository at this point in the history
remove devcon banner and fix broken imageURL for rss feed
  • Loading branch information
corwintines authored Nov 26, 2024
2 parents 378fd29 + 23a5ab1 commit e1badca
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 38 deletions.
29 changes: 0 additions & 29 deletions src/components/DevconGrantsBanner.tsx

This file was deleted.

4 changes: 4 additions & 0 deletions src/components/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ const EventCard: React.FC<EventCardProps> = ({
<img
src={imageUrl}
alt={title}
onError={(e) => {
e.currentTarget.onerror = null
e.currentTarget.src = EventFallback.src
}}
className="max-h-[224px] w-full object-cover xl:h-[124px]"
/>
) : (
Expand Down
26 changes: 20 additions & 6 deletions src/data/wallets/wallet-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import BridgeWalletImage from "@/public/images/wallets/bridge.png"
import ClearWallet from "@/public/images/wallets/clearwallet.png"
import CoinbaseImage from "@/public/images/wallets/coinbase.png"
import CoinWalletImage from "@/public/images/wallets/coinwallet.png"
import CypherockX1Image from "@/public/images/wallets/cypherockx1.png"
import CtrlWalletImage from "@/public/images/wallets/ctrl.png"
import CypherockX1Image from "@/public/images/wallets/cypherockx1.png"
import EnkryptImage from "@/public/images/wallets/enkrypt.png"
import ExodusImage from "@/public/images/wallets/exodus.png"
import FoxWalletImage from "@/public/images/wallets/foxwallet.png"
Expand Down Expand Up @@ -1546,7 +1546,20 @@ export const walletsData: WalletData[] = [
twGradiantBrandColor: "from-[#ffffff]",
url: "https://web3.bitget.com/",
active_development_team: true,
languages_supported: ["en", "zh","zh-tw", "ko", "ja", "vi", "tr", "es", "id", "hi", "ar", "pt"],
languages_supported: [
"en",
"zh",
"zh-tw",
"ko",
"ja",
"vi",
"tr",
"es",
"id",
"hi",
"ar",
"pt",
],
twitter: "https://twitter.com/BitgetWallet",
discord: "https://discord.gg/bitget-wallet",
reddit: "",
Expand Down Expand Up @@ -2102,7 +2115,8 @@ export const walletsData: WalletData[] = [
last_updated: "2024-08-24",
name: "Cypherock X1",
image: CypherockX1Image,
brand_color: "#e9b873",
twBackgroundColor: "bg-[#e9b873]",
twGradiantBrandColor: "from-[#e9b873]",
url: "https://www.cypherock.com/",
active_development_team: true,
languages_supported: ["en", "de", "zh", "ar", "id"],
Expand Down Expand Up @@ -2140,8 +2154,8 @@ export const walletsData: WalletData[] = [
social_recovery: false,
onboard_documentation: "https://www.cypherock.com",
documentation: "https://github.com/Cypherock/x1_wallet_firmware",
},
{
},
{
last_updated: "2024-10-31",
name: "Clear Wallet",
image: ClearWallet,
Expand Down Expand Up @@ -2177,7 +2191,7 @@ export const walletsData: WalletData[] = [
layer_2: true,
gas_fee_customization: true,
ens_support: false,
erc_20_support: true,
erc_20_support: true,
buy_crypto: false,
withdraw_crypto: false,
multisig: false,
Expand Down
2 changes: 0 additions & 2 deletions src/layouts/Static.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type { MdPageContent, StaticFrontmatter } from "@/lib/interfaces"
import Breadcrumbs from "@/components/Breadcrumbs"
import Callout from "@/components/Callout"
import Contributors from "@/components/Contributors"
import DevconGrantsBanner from "@/components/DevconGrantsBanner"
import EnergyConsumptionChart from "@/components/EnergyConsumptionChart"
import FeedbackCard from "@/components/FeedbackCard"
import GlossaryDefinition from "@/components/Glossary/GlossaryDefinition"
Expand Down Expand Up @@ -94,7 +93,6 @@ export const StaticLayout = ({
return (
<div className="w-full">
<TranslatathonBanner pathname={asPath} />
<DevconGrantsBanner pathname={asPath} />
<Flex
className="mx-auto mb-16 w-full justify-between p-8 lg:pt-16"
dir={contentNotTranslated ? "ltr" : "unset"}
Expand Down
14 changes: 13 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,15 @@ const HomePage = ({
>
<CardBanner>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={imgSrc} alt="" loading="lazy" />
<img
src={imgSrc}
alt=""
loading="lazy"
onError={(e) => {
e.currentTarget.onerror = null
e.currentTarget.src = EventFallback.src
}}
/>
</CardBanner>
<CardContent>
<CardTitle>{title}</CardTitle>
Expand Down Expand Up @@ -808,6 +816,10 @@ const HomePage = ({
<img
src={imageUrl}
alt=""
onError={(e) => {
e.currentTarget.onerror = null
e.currentTarget.src = EventFallback.src
}}
className="max-w-full object-cover object-center"
loading="lazy"
/>
Expand Down

0 comments on commit e1badca

Please sign in to comment.