Merging docs and share app
This commit is contained in:
39
app/packages/web/src/pages/share/index.astro
Normal file
39
app/packages/web/src/pages/share/index.astro
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
import config from "virtual:starlight/user-config";
|
||||
|
||||
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
|
||||
import Share from "../../components/Share.tsx";
|
||||
|
||||
// export const prerender = false;
|
||||
|
||||
const { id } = Astro.params;
|
||||
console.log(Astro.url);
|
||||
console.log(import.meta.env.VITE_API_URL);
|
||||
|
||||
//export function getStaticPaths() {
|
||||
// return [
|
||||
// { params: { slug: undefined }}
|
||||
// ];
|
||||
//}
|
||||
---
|
||||
|
||||
<StarlightPage
|
||||
hasSidebar={false}
|
||||
frontmatter={{
|
||||
title: "Share",
|
||||
pageFind: false,
|
||||
template: "splash",
|
||||
tableOfContents: false,
|
||||
}}
|
||||
>
|
||||
<Share id={id} api={import.meta.env.VITE_API_URL} 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;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user