Files
twenty_crm/packages/twenty-website/src/app/layout.tsx
Ahmad 0a2d8056bd 4030 website header for tablet (#4274)
* add use device types

* add header file

* remove use device type

* add tablet view styles

* remove eslint comment

* create shared folder and add header.ts file for all styled elements which used in app header

* refactor header files structure

* Hide linklist on mobile

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2024-03-05 11:07:09 +01:00

50 lines
1.2 KiB
TypeScript

import { Metadata } from 'next';
import { Gabarito, Inter } from 'next/font/google';
import { AppHeader } from '@/app/_components/ui/layout/header';
import { FooterDesktop } from './_components/ui/layout/FooterDesktop';
import EmotionRootStyleRegistry from './emotion-root-style-registry';
import './layout.css';
export const metadata: Metadata = {
title: 'Twenty.com',
description: 'Open Source CRM',
icons: '/images/core/logo.svg',
};
const gabarito = Gabarito({
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({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={`${gabarito.variable} ${inter.variable}`}>
<body>
<EmotionRootStyleRegistry>
<AppHeader />
<div className="container">{children}</div>
<FooterDesktop />
</EmotionRootStyleRegistry>
</body>
</html>
);
}