Files
opencode/packages/web/src/pages/s/index.astro
2025-06-08 01:17:54 -04:00

35 lines
849 B
Plaintext

---
import config from "virtual:starlight/user-config";
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
import Share from "../../components/Share.tsx";
const apiUrl = import.meta.env.VITE_API_URL;
const id = Astro.url.searchParams.get('id')
const res = await fetch(`${apiUrl}/share_messages?id=${id}`);
const data = await res.json();
---
<StarlightPage
hasSidebar={false}
frontmatter={{
title: "Share",
pagefind: false,
template: "splash",
tableOfContents: false,
}}
>
<Share api={apiUrl} data={data.messages} client:only="solid" />
</StarlightPage>
<style is:global>
body > .page > .main-frame .main-pane > main > .content-panel:first-of-type {
display: none;
}
body > .page > .main-frame .main-pane > main > .content-panel + .content-panel {
border-top: none !important;
}
</style>