Skip to content

Commit 0dec558

Browse files
update fonts
1 parent ad2e68c commit 0dec558

3 files changed

Lines changed: 83 additions & 9 deletions

File tree

app/layout.tsx

Lines changed: 78 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,83 @@
11
import { Providers } from '@/components/Providers'
22
import { AppLayout } from '@/components/AppLayout'
3+
import type { Metadata, Viewport } from 'next'
4+
import { Poppins } from 'next/font/google'
35

4-
export const metadata = {
5-
title: 'Persistence Docs',
6-
description: 'Documentation for Persistence One ecosystem',
6+
const poppins = Poppins({
7+
subsets: ['latin'],
8+
weight: ['100', '200', '300', '400', '500', '600', '700', '800', '900'],
9+
style: ['normal', 'italic'],
10+
display: 'swap',
11+
variable: '--font-poppins',
12+
})
13+
14+
export const viewport: Viewport = {
15+
width: 'device-width',
16+
initialScale: 1,
17+
maximumScale: 5,
18+
themeColor: [
19+
{ media: '(prefers-color-scheme: light)', color: '#ffffff' },
20+
{ media: '(prefers-color-scheme: dark)', color: '#1a1a1a' },
21+
],
22+
}
23+
24+
export const metadata: Metadata = {
25+
metadataBase: new URL('https://docs.persistence.one'),
26+
title: {
27+
default: 'Persistence Docs',
28+
template: '%s | Persistence Docs',
29+
},
30+
description: 'Comprehensive documentation for Persistence One ecosystem. Learn how to participate, build, integrate, and validate on Persistence Chain. Explore Persistence DEX, Bitcoin Cross-Chain Swaps, XPRT staking, and more.',
31+
other: {
32+
'preconnect-googleapis': 'https://fonts.googleapis.com',
33+
'preconnect-gstatic': 'https://fonts.gstatic.com',
34+
},
35+
keywords: [
36+
'Persistence',
37+
'Persistence One',
38+
'Persistence Chain',
39+
'XPRT',
40+
'Cosmos',
41+
'blockchain',
42+
'documentation',
43+
'Persistence DEX',
44+
'Bitcoin Cross-Chain Swaps',
45+
'BTCFi',
46+
'staking',
47+
'validators',
48+
'nodes',
49+
'CosmWasm',
50+
'smart contracts',
51+
'IBC',
52+
'relayers',
53+
],
54+
authors: [{ name: 'Persistence Labs' }],
55+
creator: 'Persistence Labs',
56+
publisher: 'Persistence Labs',
57+
robots: {
58+
index: true,
59+
follow: true,
60+
googleBot: {
61+
index: true,
62+
follow: true,
63+
'max-video-preview': -1,
64+
'max-image-preview': 'large',
65+
'max-snippet': -1,
66+
},
67+
},
768
icons: {
869
icon: '/favicon.ico',
970
shortcut: '/favicon.ico',
1071
apple: '/favicon.ico',
1172
},
73+
manifest: '/manifest.json',
1274
openGraph: {
13-
title: 'Persistence Docs',
14-
description: 'Documentation for Persistence One ecosystem',
1575
type: 'website',
76+
locale: 'en_US',
1677
url: 'https://docs.persistence.one',
1778
siteName: 'Persistence Docs',
79+
title: 'Persistence Docs',
80+
description: 'Comprehensive documentation for Persistence One ecosystem. Learn how to participate, build, integrate, and validate on Persistence Chain.',
1881
images: [
1982
{
2083
url: '/images/header_image.jpg',
@@ -27,9 +90,16 @@ export const metadata = {
2790
twitter: {
2891
card: 'summary_large_image',
2992
title: 'Persistence Docs',
30-
description: 'Documentation for Persistence One ecosystem',
93+
description: 'Comprehensive documentation for Persistence One ecosystem',
3194
images: ['/images/header_image.jpg'],
95+
creator: '@persistence_one',
96+
site: '@persistence_one',
97+
},
98+
alternates: {
99+
canonical: 'https://docs.persistence.one',
32100
},
101+
category: 'technology',
102+
classification: 'Documentation',
33103
}
34104

35105
export default function RootLayout({
@@ -38,8 +108,8 @@ export default function RootLayout({
38108
children: React.ReactNode
39109
}) {
40110
return (
41-
<html lang="en" style={{ height: '100%' }}>
42-
<body style={{ height: '100%', margin: 0, overflow: 'hidden' }}>
111+
<html lang="en" style={{ height: '100%' }} className={poppins.variable}>
112+
<body style={{ height: '100%', margin: 0, overflow: 'hidden' }} className={poppins.className}>
43113
<Providers>
44114
<AppLayout>
45115
{children}

app/security/audits/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ In addition, a Financial Audit was also conducted by Halborn. Check out the repo
4747
<Box flex="1" bg={themeColors.body.bg} overflowY="auto" overflowX="hidden" data-scroll-container>
4848
<Container maxW="5xl" py={{ base: 4, md: 8 }} px={{ base: 4, md: 7 }}>
4949
{hideFirstHeading && (
50-
<Link as={NextLink} href={pathname} _hover={{ textDecoration: 'none' }}><ChakraHeading as="h1" size={{ base: "xl", md: "2xl" }} mb={4}>
50+
<Link as={NextLink} href={pathname} _hover={{ textDecoration: 'none' }}><ChakraHeading as="h1" size={{ base: "xl", md: "2xl" }} mb={4} color={themeColors.text[700]}>
5151
Audits
5252
</ChakraHeading></Link>
5353
)}

theme/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export const theme = extendTheme({
1818
},
1919
}),
2020
},
21+
fonts: {
22+
heading: `var(--font-poppins), 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,
23+
body: `var(--font-poppins), 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,
24+
},
2125
components: {
2226
Heading: {
2327
baseStyle: {

0 commit comments

Comments
 (0)