chore(www): use View Transitions API (#1399)
This commit is contained in:
@@ -53,6 +53,7 @@ export default function Home(props: PageProps<HomeProps>) {
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={props.url.href} />
|
||||
<meta property="og:image" content={ogImageUrl} />
|
||||
<meta name="view-transition" content="same-origin" />
|
||||
</Head>
|
||||
<Header title="components" active="/components" />
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@ export default function DocsPage(props: PageProps<Data>) {
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={props.url.href} />
|
||||
<meta property="og:image" content={ogImageUrl} />
|
||||
<meta name="view-transition" content="same-origin" />
|
||||
</Head>
|
||||
<div class="flex flex-col min-h-screen">
|
||||
<Header title="docs" active="/docs" />
|
||||
|
||||
@@ -51,6 +51,7 @@ export default function MainPage(props: PageProps) {
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={props.url.href} />
|
||||
<meta property="og:image" content={ogImageUrl} />
|
||||
<meta name="view-transition" content="same-origin" />
|
||||
</Head>
|
||||
|
||||
<div class="flex flex-col min-h-screen">
|
||||
|
||||
@@ -20,6 +20,7 @@ export default function ShowcasePage(props: PageProps) {
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={props.url.href} />
|
||||
<meta property="og:image" content={ogImageUrl} />
|
||||
<meta name="view-transition" content="same-origin" />
|
||||
</Head>
|
||||
<Header title="showcase" active="/showcase" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user