WIP: New User Guide (#3984)

* initial commit

* Theme setup on twenty-website package

* Left bar, Content done

* Content added, useDeviceType hook added

* useDeviceType file renamed

* Responsiveness introduced

* Mobile responsiveness fix

* TOC layout

* PR fixes

* PR changes 2

* PR changes #3
This commit is contained in:
Kanav Arora
2024-02-23 21:09:48 +05:30
committed by GitHub
parent 35a2178cde
commit 4b22c0404e
33 changed files with 914 additions and 161 deletions

View File

@ -1,5 +1,5 @@
import { Metadata } from 'next';
import { Gabarito } from 'next/font/google';
import { Gabarito, Inter } from 'next/font/google';
import { HeaderMobile } from '@/app/components/HeaderMobile';
@ -16,10 +16,19 @@ export const metadata: Metadata = {
};
const gabarito = Gabarito({
weight: ['400', '500'],
weight: ['400', '500', '600', '700'],
subsets: ['latin'],
display: 'swap',
adjustFontFallback: false,
variable: '--font-gabarito',
});
const inter = Inter({
weight: ['400', '500', '600', '700'],
subsets: ['latin'],
display: 'swap',
adjustFontFallback: false,
variable: '--font-inter',
});
export default function RootLayout({
@ -28,7 +37,7 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en" className={gabarito.className}>
<html lang="en" className={`${gabarito.className} ${inter.className}`}>
<body>
<EmotionRootStyleRegistry>
<HeaderDesktop />