-
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.
- Loading branch information
1 parent
a9b6c7d
commit cc57a85
Showing
6 changed files
with
49 additions
and
8 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,9 @@ | ||
'use client'; | ||
|
||
import { Analytics } from '@vercel/analytics/react'; | ||
|
||
function AnalyticsWrapper() { | ||
return <Analytics />; | ||
} | ||
|
||
export default AnalyticsWrapper; |
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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import AnalyticsWrapper from './components/AnalyticsWrapper'; | ||
|
||
interface Props { | ||
children: ReactNode; | ||
} | ||
|
||
export const metadata = { | ||
description: 'Generated by create next app', | ||
title: 'Create Next App', | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
function RootLayout({ children }: Props) { | ||
return ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
<html lang="ko"> | ||
<body> | ||
{children} | ||
<AnalyticsWrapper /> | ||
</body> | ||
</html> | ||
); | ||
} | ||
|
||
export default RootLayout; |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
export default function Home() { | ||
function Index() { | ||
return ( | ||
<main> | ||
<h1>Next.js + TypeScript + Tailwind CSS</h1> | ||
</main> | ||
); | ||
} | ||
|
||
export default Index; |