rsnext/examples/with-turbopack/app/layout.tsx
jomeswang 31cd027d3d
Fix 404 link in example with-turbopack (#45843)
Change 404 project codebase link in example with-turbopack to the
correct one

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:
-->

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2023-02-13 14:47:05 +00:00

58 lines
1.7 KiB
TypeScript

import '@/styles/globals.css';
import React from 'react';
import AddressBar from '@/ui/AddressBar';
import GlobalNav from './GlobalNav';
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html>
<head>
<title>Next.js Turbopack App Directory Playground</title>
</head>
<body className="overflow-y-scroll bg-zinc-900">
<div className="grid grid-cols-[1fr,minmax(auto,240px),min(800px,100%),1fr] gap-x-8 py-8">
<div className="col-start-2">
<GlobalNav />
</div>
<div className="col-start-3 space-y-6">
<AddressBar />
<div className="rounded-xl border border-zinc-800 bg-black p-8">
{children}
</div>
</div>
<div className="col-start-3 col-end-4 mt-28 flex items-center justify-center">
<div className="text-sm text-zinc-600">
Created by the <b>Next.js</b>
{' team at '}
<a href="https://vercel.com">
<b>Vercel</b>
</a>
{'. '}
<a
className="underline decoration-dotted underline-offset-4"
href="https://github.com/vercel/next.js/tree/canary/examples/with-turbopack"
>
View the code
</a>
{' or '}
<a
className="underline decoration-dotted underline-offset-4"
href="https://vercel.com/templates/next.js"
>
deploy your own
</a>
{'.'}
</div>
</div>
</div>
</body>
</html>
);
}