-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
146 lines (141 loc) · 3.7 KB
/
layout.tsx
File metadata and controls
146 lines (141 loc) · 3.7 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
import type { Metadata, Viewport } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { Providers } from "@/providers/providers";
import Script from "next/script";
import { ExtractionIndicator } from "@/components/cards/extraction-indicator";
import { GenerationIndicator } from "@/components/cards/generation-indicator";
import { PomodoroCompletionOverlay } from "@/components/planner/pomodoro/completion-overlay";
import { PomodoroTimerWatcher } from "@/components/planner/pomodoro/timer-watcher";
import { PomodoroIndicator } from "@/components/planner/pomodoro/pomodoro-indicator";
import { EventReminderWatcher } from "@/components/planner/calendar/event-reminder-watcher";
import { AuthInitializer } from "@/components/shared/auth/auth-initializer";
import { BETA_MODE } from "@/lib/config/features";
const inter = Inter({ subsets: ["latin"] });
const siteConfig = {
name: "Synapse",
description:
"Free AI-powered productivity suite with chat, text-to-speech, flashcard generation, and smart planning. No signup required - start instantly with Puter's cloud platform.",
url: "https://puter.com",
ogImage: "/og-image.png",
keywords: [
"AI chat",
"free AI",
"text to speech",
"TTS",
"flashcards",
"AI flashcard generator",
"study tools",
"AI planner",
"productivity",
"Puter",
"cloud AI",
"GPT",
"language models",
"voice synthesis",
"learning tools",
],
};
export const metadata: Metadata = {
title: {
default: siteConfig.name,
template: `%s | ${siteConfig.name}`,
},
description: siteConfig.description,
keywords: siteConfig.keywords,
authors: [{ name: "Puter" }],
creator: "Puter",
publisher: "Puter",
metadataBase: new URL(siteConfig.url),
alternates: {
canonical: "/",
},
openGraph: {
type: "website",
locale: "en_US",
url: siteConfig.url,
title: siteConfig.name,
description: siteConfig.description,
siteName: siteConfig.name,
images: [
{
url: siteConfig.ogImage,
width: 1200,
height: 630,
alt: siteConfig.name,
},
],
},
twitter: {
card: "summary_large_image",
title: siteConfig.name,
description: siteConfig.description,
images: [siteConfig.ogImage],
creator: "@paborito",
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
"max-video-preview": -1,
"max-image-preview": "large",
"max-snippet": -1,
},
},
icons: {
icon: "/favicon.ico",
shortcut: "/favicon-16x16.png",
apple: "/apple-touch-icon.png",
},
manifest: "/site.webmanifest",
category: "technology",
};
export const viewport: Viewport = {
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "#ffffff" },
{ media: "(prefers-color-scheme: dark)", color: "#0a0a0a" },
],
width: "device-width",
initialScale: 1,
maximumScale: 5,
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<Script src="https://js.puter.com/v2/" strategy="beforeInteractive" />
{/* Google Calendar API scripts - only loaded in beta mode */}
{BETA_MODE && (
<>
<Script
src="https://apis.google.com/js/api.js"
strategy="afterInteractive"
/>
<Script
src="https://accounts.google.com/gsi/client"
strategy="afterInteractive"
/>
</>
)}
</head>
<body className={inter.className} suppressHydrationWarning>
<Providers>
<AuthInitializer />
<main className="h-screen overflow-hidden">{children}</main>
<ExtractionIndicator />
<GenerationIndicator />
<PomodoroIndicator />
<PomodoroTimerWatcher />
<PomodoroCompletionOverlay />
<EventReminderWatcher />
</Providers>
</body>
</html>
);
}