Skip to content

Commit

Permalink
test: use local studio urls in edit links (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored Sep 12, 2023
1 parent ecd29b6 commit 7edbdf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apps/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { vercelStegaCombine } from '@vercel/stega'
export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
<div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex">
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
Get started by editing&nbsp;
<code className="font-mono font-bold">src/app/page.tsx</code>
Expand All @@ -29,7 +29,7 @@ export default function Home() {
</div>
</div>

<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 before:lg:h-[360px] z-[-1]">
<div className="before:bg-gradient-radial after:bg-gradient-conic relative z-[-1] flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 before:lg:h-[360px]">
<Image
className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"
src="/next.svg"
Expand All @@ -40,12 +40,12 @@ export default function Home() {
/>
</div>

<div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left">
<div className="mb-32 grid text-center lg:mb-0 lg:w-full lg:max-w-5xl lg:grid-cols-4 lg:text-left">
<a
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
data-sanity-edit-info={JSON.stringify({
origin: 'sanity.io',
href: 'https://next.sanity.build/studio/desk',
href: '/studio/desk',
})}
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Expand All @@ -69,7 +69,7 @@ export default function Home() {
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
{vercelStegaCombine('Calling vercelStegaCombine directly', {
origin: 'sanity.io',
href: 'https://next.sanity.build/studio/desk',
href: '/studio/desk',
})}
</p>
</a>
Expand Down
4 changes: 2 additions & 2 deletions apps/nuxt/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
:data-sanity-edit-info="
JSON.stringify({
origin: 'sanity.io',
href: 'https://next.sanity.build/studio/desk',
href: '/studio/desk',
})
"
>
Expand Down Expand Up @@ -70,7 +70,7 @@
{{
vercelStegaCombine('Calling vercelStegaCombine directly', {
origin: 'sanity.io',
href: 'https://next.sanity.build/studio/desk',
href: '/studio/desk',
})
}}
</p>
Expand Down

0 comments on commit 7edbdf8

Please sign in to comment.