11import type { Metadata } from 'next' ;
22import type { FC , ReactNode } from 'react' ;
33
4+ import { Raleway , Source_Sans_3 } from 'next/font/google' ;
5+ import localFont from 'next/font/local' ;
46import {
57 LastUpdated ,
68 Layout ,
@@ -11,6 +13,32 @@ import { getPageMap } from 'nextra/page-map';
1113import themeConfig from '@/theme.config' ;
1214import './styles.css' ;
1315
16+ const raleway = Raleway ( {
17+ weight : [ '300' , '400' , '700' ] ,
18+ subsets : [ 'latin' ] ,
19+ display : 'swap' ,
20+ variable : '--font-raleway' ,
21+ } ) ;
22+
23+ const sourceSans = Source_Sans_3 ( {
24+ weight : [ '300' , '400' , '700' ] ,
25+ subsets : [ 'latin' ] ,
26+ display : 'swap' ,
27+ variable : '--font-source-sans' ,
28+ } ) ;
29+
30+ const pragmataPro = localFont ( {
31+ src : [
32+ {
33+ path : '../../public/fonts/logo-font.woff2' ,
34+ weight : 'normal' ,
35+ style : 'normal' ,
36+ } ,
37+ ] ,
38+ display : 'swap' ,
39+ variable : '--font-pragmata-pro' ,
40+ } ) ;
41+
1442export const metadata : Metadata = {
1543 description :
1644 'ConnectBot is a secure shell client for the Android platform.' ,
@@ -45,7 +73,7 @@ const RootLayout: FC<LayoutProps> = async ({ children }) => {
4573 ) ;
4674
4775 return (
48- < html lang = "en" suppressHydrationWarning >
76+ < html lang = "en" suppressHydrationWarning className = { ` ${ raleway . variable } ${ sourceSans . variable } ${ pragmataPro . variable } ` } >
4977 < Head
5078 backgroundColor = { {
5179 dark : 'rgb(15,23,42)' ,
0 commit comments