46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import { Tiles } from '@components/tiles/Tiles';
|
|
import { cn } from '@utils/cn';
|
|
import type { Metadata } from 'next';
|
|
import { Inter as FontSans } from 'next/font/google';
|
|
import Script from 'next/script';
|
|
import './globals.css';
|
|
|
|
export const metadata: Metadata = {
|
|
title: `Hackernews newsletter by ${process.env.NEXT_PUBLIC_BRAND_NAME}`,
|
|
description:
|
|
'Newsletter delivering the best posts from the Hacker News forum',
|
|
keywords: 'newsletter, hackernews, technology, coding, programming, news'
|
|
};
|
|
|
|
export const fontSans = FontSans({
|
|
subsets: ['latin'],
|
|
variable: '--font-sans'
|
|
});
|
|
|
|
export default function RootLayout({
|
|
children
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang='en'>
|
|
<head />
|
|
<body
|
|
className={cn(
|
|
'flex justify-center bg-background font-sans antialiased',
|
|
fontSans.variable
|
|
)}
|
|
>
|
|
<Tiles>
|
|
<div className='z-10'>{children}</div>
|
|
</Tiles>
|
|
</body>
|
|
<Script
|
|
defer
|
|
src='https://analytics.frompixels.com/script.js'
|
|
data-website-id='588e7b7d-e9cd-4b96-94bf-8269c499b0a2'
|
|
/>
|
|
</html>
|
|
);
|
|
}
|