Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions apps/blog/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import { RootProvider } from 'fumadocs-ui/provider/next';
import './global.css';
import { Inter, Barlow } from 'next/font/google';
import { RootProvider } from "fumadocs-ui/provider/next";
import "./global.css";
import { Inter, Barlow } from "next/font/google";
import { FontAwesomeScript } from "@prisma-docs/eclipse";

const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
subsets: ["latin"],
variable: "--font-inter",
});

const barlow = Barlow({
subsets: ['latin'],
weight: ['400', '500', '600', '700'],
variable: '--font-barlow',
subsets: ["latin"],
weight: ["400", "500", "600", "700"],
variable: "--font-barlow",
});

export default function Layout({ children }: LayoutProps<'/'>) {
export default function Layout({ children }: LayoutProps<"/">) {
return (
<html
lang="en"
Expand All @@ -23,6 +24,7 @@ export default function Layout({ children }: LayoutProps<'/'>) {
<head></head>
<body className="flex flex-col min-h-screen">
<RootProvider>{children}</RootProvider>
<FontAwesomeScript />
</body>
</html>
);
Expand Down
32 changes: 17 additions & 15 deletions apps/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
import { Provider } from '@/components/provider';
import { getBaseUrl } from '@/lib/urls';
import './global.css';
import { Inter, Barlow } from 'next/font/google';
import type { Metadata } from 'next';
import type { ReactNode } from 'react';
import Script from 'next/script';
import { Provider } from "@/components/provider";
import { getBaseUrl } from "@/lib/urls";
import "./global.css";
import { Inter, Barlow } from "next/font/google";
import type { Metadata } from "next";
import type { ReactNode } from "react";
import Script from "next/script";
import { FontAwesomeScript } from "@prisma-docs/eclipse";

const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
subsets: ["latin"],
variable: "--font-inter",
});

const barlow = Barlow({
subsets: ['latin'],
weight: ['400', '500', '600', '700'],
variable: '--font-barlow',
subsets: ["latin"],
weight: ["400", "500", "600", "700"],
variable: "--font-barlow",
});

export const metadata: Metadata = {
metadataBase: new URL(getBaseUrl()),
title: {
default: 'Prisma Documentation',
template: '%s | Prisma Documentation',
default: "Prisma Documentation",
template: "%s | Prisma Documentation",
},
description:
'Documentation for Prisma ORM, Prisma Postgres, Prisma Accelerate, and the Prisma ecosystem. Build type-safe database applications with ease.',
"Documentation for Prisma ORM, Prisma Postgres, Prisma Accelerate, and the Prisma ecosystem. Build type-safe database applications with ease.",
};

export default function Layout({ children }: { children: ReactNode }) {
Expand All @@ -46,6 +47,7 @@ export default function Layout({ children }: { children: ReactNode }) {
src="https://cdn-cookieyes.com/client_data/96980f76df67ad5235fc3f0d/script.js"
id="cookieyes"
/>
<FontAwesomeScript />
</body>
</html>
);
Expand Down
Loading
Loading