mango-v4-ui/pages/index.tsx

54 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-04-12 13:48:22 -07:00
import type { NextPage } from 'next'
2022-07-14 16:36:31 -07:00
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
2022-09-01 10:33:29 -07:00
import AccountPage from '../components/account/AccountPage'
2023-12-12 18:58:35 -08:00
import Head from 'next/head'
2022-08-10 23:23:18 -07:00
2022-07-14 16:36:31 -07:00
export async function getStaticProps({ locale }: { locale: string }) {
return {
props: {
...(await serverSideTranslations(locale, [
2023-01-16 20:59:51 -08:00
'account',
2023-01-11 19:52:56 -08:00
'activity',
2023-12-02 03:55:19 -08:00
'close-account',
'common',
2023-10-17 04:28:43 -07:00
'explore',
'governance',
'notifications',
2022-11-12 02:26:43 -08:00
'onboarding',
'onboarding-tours',
2022-11-12 02:26:43 -08:00
'profile',
2023-01-10 18:46:18 -08:00
'search',
2022-12-16 03:26:42 -08:00
'settings',
'swap',
2023-07-03 20:24:13 -07:00
'stats',
2023-01-11 19:52:56 -08:00
'token',
2022-10-06 18:57:47 -07:00
'trade',
])),
2022-07-14 16:36:31 -07:00
},
}
}
2022-04-12 13:48:22 -07:00
2023-12-12 18:58:35 -08:00
const metaTitle = 'Mango Markets | High-Performance Crypto Exchange'
const metaDescription =
'Margin trade your favorite crypto assets on-chain. Groundbreaking risk management to keep your funds safe. A powerful DEX, powered by Solana.'
2022-07-14 16:36:31 -07:00
const Index: NextPage = () => {
2022-09-13 23:24:26 -07:00
return (
2023-12-12 18:58:35 -08:00
<>
<Head>
<title>Mango Markets</title>
<meta name="description" content={metaDescription} />
<meta property="og:title" content={metaTitle} />
<meta name="og:description" content={metaDescription} />
<meta name="twitter:title" content={metaTitle} />
<meta name="twitter:description" content={metaDescription} />
</Head>
2024-01-02 18:28:26 -08:00
<div className="min-h-[calc(100vh-64px)]">
2023-12-12 18:58:35 -08:00
<AccountPage />
</div>
</>
2022-09-13 23:24:26 -07:00
)
2022-04-12 13:48:22 -07:00
}
export default Index