Skip to content

Commit ca9c902

Browse files
committed
chore: add sponsor
1 parent 381531e commit ca9c902

File tree

2 files changed

+48
-34
lines changed

2 files changed

+48
-34
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323

2424
<br>
2525

26-
> **Note**
27-
>
28-
> wagmi is participating in [Gitcoin Grant Round 15](https://wagmi.sh/gitcoin) until September 22. Contributions are matched with [Quadratic Funding](https://finematics.com/quadratic-funding-explained/) (e.g. $1 turns into $27). If you find wagmi useful, please consider supporting development [here](https://wagmi.sh/gitcoin). Thank you 🙏
29-
3026
## Features
3127

3228
- 🚀 20+ hooks for working with wallets, ENS, contracts, transactions, signing, etc.
@@ -135,6 +131,12 @@ If you find wagmi useful, please consider supporting development. Thank you 🙏
135131
<img alt="context logo" src="https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/context-light.svg" width="auto" height="50">
136132
</picture>
137133
</a>
134+
<a href="https://walletconnect.com">
135+
<picture>
136+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/walletconnect-dark.svg">
137+
<img alt="WalletConnect logo" src="https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/walletconnect-light.svg" width="auto" height="50">
138+
</picture>
139+
</a>
138140

139141
## Contributing
140142

docs/components/docs/Sponsors.tsx

+42-30
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,55 @@
11
import { useTheme } from 'next-themes'
22

3-
const sponsors = {
4-
family: {
5-
dark: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/family-dark.svg',
6-
light:
7-
'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/family-light.svg',
3+
const sponsors = [
4+
{
5+
id: 'family',
6+
name: 'Family',
7+
href: 'https://twitter.com/family',
8+
logo: {
9+
dark: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/family-dark.svg',
10+
light:
11+
'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/family-light.svg',
12+
},
813
},
9-
context: {
10-
dark: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/context-dark.svg',
11-
light:
12-
'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/context-light.svg',
14+
{
15+
id: 'context',
16+
name: 'Context',
17+
href: 'https://twitter.com/context',
18+
logo: {
19+
dark: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/context-dark.svg',
20+
light:
21+
'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/context-light.svg',
22+
},
1323
},
14-
} as const
24+
{
25+
id: 'walletconnect',
26+
name: 'WalletConnect',
27+
href: 'https://walletconnect.com',
28+
logo: {
29+
dark: 'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/walletconnect-dark.svg',
30+
light:
31+
'https://raw.githubusercontent.com/wagmi-dev/.github/main/content/sponsors/walletconnect-light.svg',
32+
},
33+
},
34+
] as const
1535

1636
export function Sponsors() {
1737
const { resolvedTheme } = useTheme()
1838
const mode = (resolvedTheme ?? 'dark') as 'dark' | 'light'
1939
return (
2040
<div className="flex my-5 gap-2">
21-
<a href="https://twitter.com/family">
22-
<picture>
23-
<img
24-
alt="family logo"
25-
src={sponsors.family[mode]}
26-
width="auto"
27-
className="h-12"
28-
/>
29-
</picture>
30-
</a>
31-
<a href="https://twitter.com/context">
32-
<picture>
33-
<img
34-
alt="context logo"
35-
src={sponsors.context[mode]}
36-
width="auto"
37-
className="h-12"
38-
/>
39-
</picture>
40-
</a>
41+
{sponsors.map((sponsor) => (
42+
<a href={sponsor.href} key={sponsor.id}>
43+
<picture>
44+
<img
45+
alt={sponsor.name}
46+
src={sponsor.logo[mode]}
47+
width="auto"
48+
className="h-12"
49+
/>
50+
</picture>
51+
</a>
52+
))}
4153
</div>
4254
)
4355
}

0 commit comments

Comments
 (0)