-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com>
- Loading branch information
1 parent
0cf9807
commit 22ad8e8
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import './global.css' | ||
import type { Metadata } from 'next' | ||
import { GeistSans } from 'geist/font/sans' | ||
import { GeistMono } from 'geist/font/mono' | ||
import { Navbar } from './components/nav' | ||
import { Analytics } from '@vercel/analytics/react' | ||
import { SpeedInsights } from '@vercel/speed-insights/next' | ||
import Footer from './components/footer' | ||
import { baseUrl } from './sitemap' | ||
|
||
export const metadata: Metadata = { | ||
metadataBase: new URL(baseUrl), | ||
title: { | ||
default: 'Next.js Portfolio Starter', | ||
template: '%s | Next.js Portfolio Starter', | ||
}, | ||
description: 'This is my portfolio.', | ||
openGraph: { | ||
title: 'My Portfolio', | ||
description: 'This is my portfolio.', | ||
url: baseUrl, | ||
siteName: 'My Portfolio', | ||
locale: 'en_US', | ||
type: 'website', | ||
}, | ||
robots: { | ||
index: true, | ||
follow: true, | ||
googleBot: { | ||
index: true, | ||
follow: true, | ||
'max-video-preview': -1, | ||
'max-image-preview': 'large', | ||
'max-snippet': -1, | ||
}, | ||
}, | ||
} | ||
|
||
const cx = (...classes) => classes.filter(Boolean).join(' ') | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html | ||
lang="en" | ||
className={cx( | ||
'text-black bg-white dark:text-white dark:bg-black', | ||
GeistSans.variable, | ||
GeistMono.variable | ||
)} | ||
> | ||
<body className="antialiased max-w-xl mx-4 mt-8 lg:mx-auto"> | ||
<main className="flex-auto min-w-0 mt-6 flex flex-col px-2 md:px-0"> | ||
<Navbar /> | ||
{children} | ||
<Footer /> | ||
<Analytics /> | ||
<SpeedInsights /> | ||
</main> | ||
</body> | ||
</html> | ||
) | ||
} |
22ad8e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hand-pickr – ./
hand-pickr-git-main-devsec.vercel.app
hand-pickr.vercel.app
hand-pickr-devsec.vercel.app