Skip to content

Commit

Permalink
feat(website): add app dir (#8869)
Browse files Browse the repository at this point in the history
Co-authored-by: iCrawl <[email protected]>
  • Loading branch information
suneettipirneni and iCrawl authored Nov 27, 2022
1 parent decbce4 commit 12553da
Show file tree
Hide file tree
Showing 49 changed files with 940 additions and 952 deletions.
1 change: 1 addition & 0 deletions apps/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ src/styles/unocss.css
coverage/
.vercel
public/searchIndex
.vscode
1 change: 1 addition & 0 deletions apps/website/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
cleanDistDir: true,
experimental: {
appDir: true,
serverComponentsExternalPackages: ['@microsoft/api-extractor-model', 'jju', 'shiki'],
outputFileTracingRoot: fileURLToPath(new URL('../../', import.meta.url)),
fallbackNodePolyfills: false,
},
Expand Down
14 changes: 14 additions & 0 deletions apps/website/src/app/docs/[...slug]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { PropsWithChildren } from 'react';
import { Providers } from './providers';
import { CmdKDialog } from '~/components/CmdK';
import { Header } from '~/components/Header';

export default function SidebarLayout({ children }: PropsWithChildren<any>) {
return (
<Providers>
<Header />
<>{children}</>
<CmdKDialog />
</Providers>
);
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import Head from 'next/head';
// import Head from 'next/head';
import Link from 'next/link';

export default function FourOhFourPage() {
export default function NotFound() {
return (
<>
<Head>
{/* <Head>
<title key="title">discord.js | 404</title>
<meta content="discord.js | 404" key="og_title" property="og:title" />
</Head>
</Head> */}
<div className="mx-auto flex h-full max-w-lg flex-col place-content-center place-items-center gap-8 py-16 px-8 lg:py-0 lg:px-6">
<h1 className="text-[9rem] font-black leading-none md:text-[12rem]">404</h1>
<h2 className="text-[2rem] md:text-[3rem]">Not found.</h2>
<Link
className="bg-blurple focus:ring-width-2 flex h-11 transform-gpu cursor-pointer select-none appearance-none flex-row place-items-center rounded border-0 px-6 text-base font-semibold leading-none text-white no-underline outline-0 focus:ring focus:ring-white active:translate-y-px"
href="/docs/packages"
prefetch={false}
>
Take me back
</Link>
Expand Down
Loading

1 comment on commit 12553da

@vercel
Copy link

@vercel vercel bot commented on 12553da Nov 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.