-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
67 changed files
with
2,127 additions
and
590 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "Master Cross-Document View Transitions" | ||
description: Learn how to enhance a multi-page site with smooth view transitions in this step-by-step tutorial. | ||
--- | ||
|
||
Learn how to enhance a multi-page site with smooth view transitions in this step-by-step tutorial. | ||
|
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,4 @@ | ||
--- | ||
title: How to Debug View Transitions | ||
descriptions: | ||
--- |
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,4 @@ | ||
--- | ||
title: Avoid Distorted Text during View Transitions | ||
description: Especially text with background and borders tends to get distorted during view transition. Here are some tips to avoid that. | ||
--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,27 @@ | ||
--- | ||
import Layout from "@/layouts/Layout.astro"; | ||
import DemoNavigation from "@/components/DemoNavigation.astro"; | ||
export interface Props { | ||
title: string; | ||
description: string; | ||
image:string; | ||
backlink: string; | ||
prev: string; | ||
next: string; | ||
} | ||
const { title, backlink, prev, next } = Astro.props; | ||
const script = | ||
'const _=document.documentElement;_.dataset.theme=_.style.colorScheme=localStorage.getItem("starlight-theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches? "dark":"light")'; | ||
const { title, description, image, backlink, prev, next } = Astro.props; | ||
--- | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>{title}</title> | ||
<link rel="canonical" href={Astro.url.href} /> | ||
<slot name="early-head" /> | ||
<link href="/demo-explainer/styles.css" rel="stylesheet" /> | ||
<script is:inline set:html={script} /> | ||
<script is:inline src="/chamber.js/"></script> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/bag3.png" type="image/png" /> | ||
<slot name="late-head" /> | ||
</head> | ||
<body> | ||
<Layout {title} {description} {image}> | ||
<slot name="early-head" slot="head"/> | ||
<link href="/demo-explainer/styles.css" rel="stylesheet" slot="head2"/> | ||
<script is:inline src="/chamber.js/" slot="head2"></script> | ||
<slot name="late-head" slot="head2"/> | ||
|
||
<h1>{title}</h1> | ||
<DemoNavigation {prev} {backlink} {next} /> | ||
<slot /> | ||
<div id="vtbag-spacer" style="min-height:100vh"></div> | ||
<DemoNavigation {prev} {backlink} {next} /> | ||
</body> | ||
</html> | ||
</Layout> |
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
Oops, something went wrong.