-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
248 additions
and
2,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { useRouter } from 'next/router' | ||
|
||
const TITLE_WITH_TRANSLATIONS: Record<string, string> = { | ||
'en-US': 'React Hooks for Ethereum', | ||
} | ||
|
||
export const Header = () => { | ||
const { locale, defaultLocale = 'en-US' } = useRouter() | ||
const resolvedLocale = locale || defaultLocale | ||
const title = TITLE_WITH_TRANSLATIONS[resolvedLocale] | ||
|
||
return ( | ||
<header className="mb-10"> | ||
<h1 className="text-center font-extrabold md:text-5xl mt-8">wagmi</h1> | ||
|
||
<p className="text-center text-lg mb-6 text-gray-500 md:!text-2xl"> | ||
{title} | ||
</p> | ||
|
||
<div className="flex gap-4 justify-center"> | ||
<a aria-label="Stars" href="https://github.com/tmm/wagmi"> | ||
<img | ||
alt="" | ||
src="https://img.shields.io/github/stars/tmm/wagmi?colorA=292929&colorB=3c82f6" | ||
/> | ||
</a> | ||
<a aria-label="Downloads" href="https://www.npmjs.com/package/wagmi"> | ||
<img | ||
alt="" | ||
src="https://img.shields.io/npm/dm/wagmi?colorA=292929&colorB=3c82f6" | ||
/> | ||
</a> | ||
<a aria-label="Sponsors" href="https://github.com/sponsors/tmm"> | ||
<img | ||
alt="" | ||
src="https://img.shields.io/github/sponsors/tmm?colorA=292929&colorB=3c82f6" | ||
/> | ||
</a> | ||
</div> | ||
</header> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Header } from './Header' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
const withNextra = require('nextra')({ | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.js', | ||
unstable_stork: false, | ||
unstable_contentDump: true, | ||
unstable_flexsearch: true, | ||
unstable_staticImage: true, | ||
}) | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const config = { | ||
// i18n: { | ||
// locales: ['en-US'], | ||
// defaultLocale: 'en-US', | ||
// }, | ||
i18n: { | ||
locales: ['en-US'], | ||
defaultLocale: 'en-US', | ||
}, | ||
reactStrictMode: true, | ||
redirects: () => { | ||
return [ | ||
{ | ||
source: '/examples', | ||
destination: '/examples/connect-wallet', | ||
statusCode: 302, | ||
}, | ||
] | ||
}, | ||
} | ||
|
||
module.exports = withNextra(config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { locales } from 'nextra/locales' | ||
export const middleware = locales |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.