Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@react-three/drei": "^10.7.7",
"@react-three/fiber": "9.0.0-rc.1",
"@react-three/rapier": "^2.2.0",
"@scure/bip39": "^2.0.1",
"@serwist/next": "^9.5.6",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand Down
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions public/mnemonic/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions src/app/(locale)/[locale]/mnemonic/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { msg } from '@lingui/core/macro'
import { generateMetadataWithI18n } from '~/i18n'
import { getLangUrl } from '~/i18n/get-lang-url'
import { SEO } from './seo'
import type { Metadata } from 'next/types'
import type { ReactNode } from 'react'

export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const i18n = await generateMetadataWithI18n(params)
const locale = getLangUrl(i18n.locale)

return {
title: i18n._(msg`mnemonic generator`),
description: i18n._(
msg`generate and validate BIP-39 mnemonic phrases locally in your browser`,
),
icons: ['/mnemonic/icon.svg'],
alternates: {
canonical: `${locale}/mnemonic`,
languages: {
en: `/mnemonic`,
zh: `/zh/mnemonic`,
},
},
}
}

export default function Layout({ children }: { children: ReactNode }) {
return (
<>
{children}
<SEO className='mx-auto mt-10 max-w-2xl px-4' />
</>
)
}
Loading
Loading