-
Notifications
You must be signed in to change notification settings - Fork 14
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
Showing
7 changed files
with
99 additions
and
53 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,36 @@ | ||
import 'tailwindcss/tailwind.css' | ||
|
||
import { IBM_Plex_Mono, Inter, PT_Serif } from 'next/font/google' | ||
|
||
const serif = PT_Serif({ | ||
variable: '--font-serif', | ||
style: ['normal', 'italic'], | ||
subsets: ['latin'], | ||
weight: ['400', '700'], | ||
}) | ||
const sans = Inter({ | ||
variable: '--font-sans', | ||
subsets: ['latin'], | ||
// @todo: understand why extrabold (800) isn't being respected when explicitly specified in this weight array | ||
// weight: ['500', '700', '800'], | ||
}) | ||
const mono = IBM_Plex_Mono({ | ||
variable: '--font-mono', | ||
subsets: ['latin'], | ||
weight: ['500', '700'], | ||
}) | ||
|
||
export default async function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html | ||
lang="en" | ||
className={`${mono.variable} ${sans.variable} ${serif.variable}`} | ||
> | ||
<body>{children}</body> | ||
</html> | ||
) | ||
} |
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,17 @@ | ||
'use client' | ||
|
||
import { NextStudio } from 'next-sanity/studio' | ||
import config from 'sanity.config' | ||
|
||
export default function Studio() { | ||
return ( | ||
<NextStudio | ||
config={config} | ||
unstable_globalStyles | ||
// This prop is for demo purposes on the deployment hosted by Sanity, you can safely delete it | ||
unstable_noAuthBoundary={ | ||
process.env.NEXT_PUBLIC_UNSTABLE_NOAUTHBOUNDARY === 'true' | ||
} | ||
/> | ||
) | ||
} |
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,19 @@ | ||
/** | ||
* This route is responsible for the built-in authoring environment using Sanity Studio v3. | ||
* All routes under /studio will be handled by this file using Next.js' catch-all routes: | ||
* https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes | ||
* | ||
* You can learn more about the next-sanity package here: | ||
* https://github.com/sanity-io/next-sanity | ||
*/ | ||
|
||
import Studio from './Studio' | ||
|
||
export const dynamic = 'force-static' | ||
|
||
export { metadata } from 'next-sanity/studio/metadata' | ||
export { viewport } from 'next-sanity/studio/viewport' | ||
|
||
export default function StudioPage() { | ||
return <Studio /> | ||
} |
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
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 was deleted.
Oops, something went wrong.