Something went wrong. Try again.
doll.systems community website
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445---import Base from './Base.astro';import Dither from '../components/Dither.astro';import LinkGraph from '../components/LinkGraph.astro';import LinkIndex from '../components/LinkIndex.astro';import type { Page, Connections } from '../lib/content';import type { LinkGraphData, ReadingLayoutName } from '../lib/layouts';type Props = { layout?: ReadingLayoutName; page: Page; connections?: Connections; graph: LinkGraphData; lang?: 'en' | 'ja'; japanese?: boolean;};const { layout = 'edge', page, connections, graph, lang = 'en', japanese = false } = Astro.props;const artwork = page.art;---
<Base page={page} lang={lang} japanese={japanese} links={graph.nodes}> <div class="reading-layout" data-layout={layout} data-reactive-art> <div class="art-rail" aria-hidden="true"> <div class="layout-art"> <Dither {...artwork} /> <div class="art-cut"></div> {layout === 'edge' && <div class="edge-fault"></div>} </div> </div> {layout === 'threshold' && ( <div class="art-echo" aria-hidden="true"> <div class="echo-surface"> <Dither {...artwork} /> </div> </div> )} <main class="layout-content" id="main-content" tabindex="-1"> <div class="layout-reader"> <slot /> {connections && <LinkIndex {...connections} />} </div> <LinkGraph data={graph} current={page.id} /> </main> </div></Base>