-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy pathlayout.tsx
54 lines (47 loc) · 1.36 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { Inter } from "next/font/google";
import classNames from "classnames";
import localFont from "next/font/local";
import { DeepgramContextProvider } from "./context/DeepgramContextProvider";
import { MicrophoneContextProvider } from "./context/MicrophoneContextProvider";
import "./globals.css";
import type { Metadata, Viewport } from "next";
const inter = Inter({ subsets: ["latin"] });
const favorit = localFont({
src: "./fonts/ABCFavorit-Bold.woff2",
variable: "--font-favorit",
});
export const viewport: Viewport = {
themeColor: "#000000",
initialScale: 1,
width: "device-width",
// maximumScale: 1, hitting accessability
};
export const metadata: Metadata = {
metadataBase: new URL("https://aura-tts-demo.deepgram.com"),
title: "Deepgram AI Agent",
description: `Deepgram's AI Agent Demo shows just how fast Speech-to-Text and Text-to-Speech can be.`,
robots: {
index: false,
follow: false,
},
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className="h-dvh">
<body
className={`h-full dark ${classNames(
favorit.variable,
inter.className
)}`}
>
<MicrophoneContextProvider>
<DeepgramContextProvider>{children}</DeepgramContextProvider>
</MicrophoneContextProvider>
</body>
</html>
);
}