Skip to content

Commit ef624e4

Browse files
committed
Remove VT.
1 parent 6508cf7 commit ef624e4

File tree

7 files changed

+2
-27
lines changed

7 files changed

+2
-27
lines changed

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,6 @@ export default defineConfig({
135135
},
136136
prefetch: {
137137
prefetchAll: true,
138+
defaultStrategy: "load",
138139
},
139140
});

src/components/BaseHead.astro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import { ClientRouter } from "astro:transitions";
32
interface Props {
43
title: string;
54
description: string;
@@ -27,8 +26,6 @@ const { title, description, image = "/social-card.png" } = Astro.props;
2726
<!-- Canonical URL -->
2827
<link rel="canonical" href={canonicalURL} />
2928

30-
<ClientRouter />
31-
3229
<!-- Primary Meta Tags -->
3330
<title>{title}</title>
3431
<meta name="title" content={title} />

src/components/Header.astro

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import links from "@data/links.json";
1111
<section
1212
id="navbar"
1313
class="fixed top-0 z-50 transition-transform duration-300 transform-gpu w-full"
14-
transition:name="navbar"
15-
transition:animate="fade"
1614
>
1715
<div
1816
class="container max-w-[1150px] mx-auto px-6 py-2 mt-1 lg:p-2 lg:mt-6 flex items-center justify-between relative z-40 bg-white/80 rounded-full backdrop-blur-md shadow-lg"
@@ -48,12 +46,6 @@ import links from "@data/links.json";
4846
</div>
4947
</section>
5048
<Search />
51-
52-
<style>
53-
:root::view-transition-group(navbar) {
54-
z-index: 100;
55-
}
56-
</style>
5749
<script>
5850
document.addEventListener("astro:page-load", () => {
5951
let prevScrollPos = window.pageYOffset;
@@ -63,7 +55,7 @@ document.addEventListener("astro:page-load", () => {
6355
let isFocused = false;
6456

6557
window.addEventListener("scroll", () => {
66-
if (isFocused) return; // Don't hide navbar if focused
58+
if (isFocused) return;
6759
let currentScrollPos = window.pageYOffset;
6860
if (prevScrollPos > currentScrollPos) {
6961
navbar.style.transform = "translateY(0)";
@@ -85,12 +77,4 @@ document.addEventListener("astro:page-load", () => {
8577
}
8678
});
8779
});
88-
89-
document.addEventListener("astro:before-preparation", ()=>{
90-
window.scrollTo({ left: 0, top: 0, behavior: "instant" });
91-
});
92-
93-
document.addEventListener("astro:after-preparation", ()=>{
94-
window.scrollTo({ left: 0, top: 0, behavior: "instant" });
95-
});
9680
</script>

src/pages/schedule.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,5 @@ window.addEventListener('load', function() {
8686
checkForAnchorAndHighlight();
8787

8888
window.addEventListener('hashchange', checkForAnchorAndHighlight);
89-
document.addEventListener('astro:after-swap', checkForAnchorAndHighlight);
9089
});
9190
</script>

src/pages/session/[slug].astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ const nextSessionsOrdered = sameRoomNextSession
176176
height={400}
177177
width={600}
178178
class="w-full max-w-[240px] sm:max-w-[540px] xl:max-w-[720px] max-h-[240px] sm:max-h-[540px] xl:max-h-[720px] object-scale-down"
179-
transition:animate="fade"
180-
transition:name=`speaker-${speaker.data.code}`
181179
/>
182180
</div>
183181
</div>

src/pages/speaker/[slug].astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ function getGitHosting(url: string): string | undefined {
9393
<div class="flex items-start">
9494
<div class="border-4 border-white rounded-lg shadow-lg inline-block mb-10">
9595
<Image
96-
transition:animate="fade"
97-
transition:name=`speaker-${entry.data.code}`
9896
src={entry.data.avatar}
9997
alt={entry.data.name}
10098
height={400}

src/pages/speakers.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ const description = "Our conference speakers organized alphabetically";
8181
{speaker.data.avatar ? (
8282

8383
<Image
84-
transition:animate="fade"
85-
transition:name=`speaker-${speaker.data.code}`
8684
src={speaker.data.avatar}
8785
alt={`${speaker.data.name}'s profile picture`}
8886
height={250}

0 commit comments

Comments
 (0)