Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vtbag/website. The @vtbag website. ⭐️ Please star to support this work! ⭐️
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142---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, description, image, backlink, prev, next } = Astro.props;---
<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} /></Layout><script> function delayedScroll() { const id = location.hash.slice(1); if (!id) return; console.log("Scrolling to", id); setTimeout(() => { const target = document.getElementById(id); console.log("Target element:", target); target?.scrollIntoView({ block: "start" }); }, 0); }
window.addEventListener("hashchange", delayedScroll); delayedScroll();</script>