General fixes. Still far from good or working
This commit is contained in:
@@ -1,50 +1,49 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import type { Metadata, Viewport } from 'next';
|
||||
import { Geist, Geist_Mono } from 'next/font/google';
|
||||
import { cn } from '@acme/ui';
|
||||
import { ThemeProvider, ThemeToggle } from '@acme/ui/theme';
|
||||
import { Toaster } from '@acme/ui/toast';
|
||||
|
||||
import { cn } from "@acme/ui";
|
||||
import { ThemeProvider, ThemeToggle } from "@acme/ui/theme";
|
||||
import { Toaster } from "@acme/ui/toast";
|
||||
import { env } from '~/env';
|
||||
import { TRPCReactProvider } from '~/trpc/react';
|
||||
|
||||
import { env } from "~/env";
|
||||
import { TRPCReactProvider } from "~/trpc/react";
|
||||
|
||||
import "~/app/styles.css";
|
||||
import '~/app/styles.css';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL(
|
||||
env.VERCEL_ENV === "production"
|
||||
? "https://turbo.t3.gg"
|
||||
: "http://localhost:3000",
|
||||
env.VERCEL_ENV === 'production'
|
||||
? 'https://turbo.t3.gg'
|
||||
: 'http://localhost:3000',
|
||||
),
|
||||
title: "Create T3 Turbo",
|
||||
description: "Simple monorepo with shared backend for web & mobile apps",
|
||||
title: 'Create T3 Turbo',
|
||||
description: 'Simple monorepo with shared backend for web & mobile apps',
|
||||
openGraph: {
|
||||
title: "Create T3 Turbo",
|
||||
description: "Simple monorepo with shared backend for web & mobile apps",
|
||||
url: "https://create-t3-turbo.vercel.app",
|
||||
siteName: "Create T3 Turbo",
|
||||
title: 'Create T3 Turbo',
|
||||
description: 'Simple monorepo with shared backend for web & mobile apps',
|
||||
url: 'https://create-t3-turbo.vercel.app',
|
||||
siteName: 'Create T3 Turbo',
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
site: "@jullerino",
|
||||
creator: "@jullerino",
|
||||
card: 'summary_large_image',
|
||||
site: '@jullerino',
|
||||
creator: '@jullerino',
|
||||
},
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
themeColor: [
|
||||
{ media: "(prefers-color-scheme: light)", color: "white" },
|
||||
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
||||
{ media: '(prefers-color-scheme: light)', color: 'white' },
|
||||
{ media: '(prefers-color-scheme: dark)', color: 'black' },
|
||||
],
|
||||
};
|
||||
|
||||
const geistSans = Geist({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ['latin'],
|
||||
variable: '--font-geist-sans',
|
||||
});
|
||||
const geistMono = Geist_Mono({
|
||||
subsets: ["latin"],
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ['latin'],
|
||||
variable: '--font-geist-mono',
|
||||
});
|
||||
|
||||
export default function RootLayout(props: { children: React.ReactNode }) {
|
||||
@@ -52,7 +51,7 @@ export default function RootLayout(props: { children: React.ReactNode }) {
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body
|
||||
className={cn(
|
||||
"bg-background text-foreground min-h-screen font-sans antialiased",
|
||||
'bg-background text-foreground min-h-screen font-sans antialiased',
|
||||
geistSans.variable,
|
||||
geistMono.variable,
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user