Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Nov 23, 2024
1 parent be2dd94 commit 9e48abc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import type { Badge } from 'node_modules/@astrojs/starlight/schemas/badge';

// https://astro.build/config
export default defineConfig({
devToolbar: {enabled:false},
experimental: { directRenderScript: true },
site: 'https://vtbag.dev',
compressHTML: false,
Expand Down Expand Up @@ -132,8 +133,8 @@ function sidebar() {
{ label: "Turn Signal Directions", link: "/signal-demo/bag/" },
{ label: "Pseudo-Smooth-Scrolling", link: "/shaft-demo/1/" },
{ label: "Instant scrolling with Cam-Shaft", link: "/shaft-demo2/1/" },
{ label: "Can't confine List Elements", link: "/tips/hide-and-seek/problem/" },
{ label: "Simulated Nested Transition Groups", link: "/tips/hide-and-seek/solution/" }
{ label: "Can't confine List Elements", link: "/basics/hide-and-seek/problem/" },
{ label: "Simulated Nested Transition Groups", link: "/basics/hide-and-seek/solution/" }
]
}];
}
10 changes: 5 additions & 5 deletions src/pages/basics/hide-and-seek/problem.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Bsky from "../../../components/Bsky.astro";
content="Without nested groups, view transition images break out of their captivity as soon as the opportunity arises."
/>
<meta property="og:image" content="/hide-and-seek-og.png" />
<meta property="og:url" content="/tips/hide-and-seek/" />
<meta property="og:url" content="/basics/hide-and-seek/" />
<meta property="og:title" content="Hide and Seek" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="@vtbag" />
Expand Down Expand Up @@ -65,7 +65,7 @@ import Bsky from "../../../components/Bsky.astro";
if (event.viewTransition) {
if (
new URL(navigation.activation.from.url, location.href).pathname !==
"/tips/hide-and-seek/problem/"
"/basics/hide-and-seek/problem/"
) {
event.viewTransition.skipTransition?.();
}
Expand Down Expand Up @@ -109,7 +109,7 @@ import Bsky from "../../../components/Bsky.astro";
show how the items are shuffled. But with the start of the view
transition, they are all thrown on the screen, even if they were
transition, they are all thrown on the screen, even if they were
clipped before. Can we <a href="/tips/hide-and-seek/solution/"
clipped before. Can we <a href="/basics/hide-and-seek/solution/"
>do better</a
>?<br />
[<a href="/basics/hide-and-seek/#demo"
Expand All @@ -125,14 +125,14 @@ import Bsky from "../../../components/Bsky.astro";
"vtbag-hide-seek",
JSON.stringify({ scrollTop: ul.scrollTop, scrollY })
);
location.href = "/tips/hide-and-seek/problem/";
location.href = "/basics/hide-and-seek/problem/";
});
addEventListener("pageswap", (event) => {
// @ts-ignore
if (event.viewTransition) {
// @ts-ignore
const url = new URL(event.activation.entry.url, location.href);
if (url.pathname !== "/tips/hide-and-seek/problem/") {
if (url.pathname !== "/basics/hide-and-seek/problem/") {
// @ts-ignore
event.viewTransition.skipTransition?.();
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/basics/hide-and-seek/solution.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Bsky from "../../../components/Bsky.astro";
content="Without nested groups, view transition images break out of their captivity as soon as the opportunity arises."
/>
<meta property="og:image" content="/hide-and-seek-og.png" />
<meta property="og:url" content="/tips/hide-and-seek/" />
<meta property="og:url" content="/basics/hide-and-seek/" />
<meta property="og:title" content="Hide and Seek" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="@vtbag" />
Expand Down Expand Up @@ -93,7 +93,7 @@ import Bsky from "../../../components/Bsky.astro";
"vtbag-hide-seek",
JSON.stringify({ scrollTop: ul.scrollTop, scrollY })
);
location.href = "/tips/hide-and-seek/solution/";
location.href = "/basics/hide-and-seek/solution/";
});
}
function shuffleArray(array) {
Expand Down

0 comments on commit 9e48abc

Please sign in to comment.