mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 11:03:27 +00:00
small landing fixes
This commit is contained in:
parent
5167178eb3
commit
9dc6f7f48e
|
@ -4,5 +4,5 @@ module.exports = {
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname,
|
||||||
project: './tsconfig.json'
|
project: './tsconfig.json'
|
||||||
},
|
},
|
||||||
ignorePatterns: ['**/*.js', '**/*.json', 'node_modules', 'public', 'dist']
|
ignorePatterns: ['**/*.js', '**/*.json', 'node_modules', 'public', 'dist', 'vite.config.ts']
|
||||||
};
|
};
|
||||||
|
|
15
apps/landing/src/pages/blog/post.page.server.ts
Normal file
15
apps/landing/src/pages/blog/post.page.server.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import { PageContextBuiltIn } from 'vite-plugin-ssr';
|
||||||
|
|
||||||
|
import { getPost } from './blog';
|
||||||
|
|
||||||
|
export async function onBeforeRender(pageContext: PageContextBuiltIn) {
|
||||||
|
const post = await getPost(pageContext.routeParams['slug']);
|
||||||
|
|
||||||
|
return {
|
||||||
|
pageContext: {
|
||||||
|
pageProps: {
|
||||||
|
post
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
|
@ -30,7 +30,7 @@ function Page({ post }: { post: PostOrPage }) {
|
||||||
<meta content="summary_large_image" name="twitter:card" />
|
<meta content="summary_large_image" name="twitter:card" />
|
||||||
<meta name="author" content={post?.primary_author?.name || 'Spacedrive Technology Inc.'} />
|
<meta name="author" content={post?.primary_author?.name || 'Spacedrive Technology Inc.'} />
|
||||||
</Helmet>
|
</Helmet>
|
||||||
<div className="container max-w-4xl p-4 m-auto mt-8 mb-20 prose lg:prose-xs dark:prose-invert">
|
<div className="container max-w-4xl p-4 m-auto mb-20 prose pt-14 lg:prose-xs dark:prose-invert">
|
||||||
{post && (
|
{post && (
|
||||||
<>
|
<>
|
||||||
<figure>
|
<figure>
|
||||||
|
|
|
@ -14,12 +14,18 @@ function Page({ navigation }: { navigation: DocsNavigation }) {
|
||||||
|
|
||||||
<DocsLayout navigation={navigation}>
|
<DocsLayout navigation={navigation}>
|
||||||
<Markdown>
|
<Markdown>
|
||||||
<div className="">
|
<div className="mt-[105px]">
|
||||||
<h1 className="text-4xl font-bold">Spacedrive Docs</h1>
|
<h1 className="text-4xl font-bold">Spacedrive Docs</h1>
|
||||||
<p className="text-lg text-gray-400">
|
<p className="text-lg text-gray-400">
|
||||||
Welcome to the Spacedrive documentation. Here you can find all the information you
|
Welcome to the Spacedrive documentation. Here you can find all the information you
|
||||||
need to get started with Spacedrive.
|
need to get started with Spacedrive.
|
||||||
</p>
|
</p>
|
||||||
|
<a
|
||||||
|
className="transition text-primary-600 hover:text-primary-500"
|
||||||
|
href="/docs/product/getting-started/introduction"
|
||||||
|
>
|
||||||
|
Get Started →
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</Markdown>
|
</Markdown>
|
||||||
</DocsLayout>
|
</DocsLayout>
|
||||||
|
|
Loading…
Reference in a new issue