small landing fixes

This commit is contained in:
Jamie Pine 2022-09-28 00:07:22 -07:00
parent 5167178eb3
commit 9dc6f7f48e
No known key found for this signature in database
GPG key ID: D5AC85A0C2F646E9
4 changed files with 24 additions and 3 deletions

View file

@ -4,5 +4,5 @@ module.exports = {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
},
ignorePatterns: ['**/*.js', '**/*.json', 'node_modules', 'public', 'dist']
ignorePatterns: ['**/*.js', '**/*.json', 'node_modules', 'public', 'dist', 'vite.config.ts']
};

View 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
}
}
};
}

View file

@ -30,7 +30,7 @@ function Page({ post }: { post: PostOrPage }) {
<meta content="summary_large_image" name="twitter:card" />
<meta name="author" content={post?.primary_author?.name || 'Spacedrive Technology Inc.'} />
</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 && (
<>
<figure>

View file

@ -14,12 +14,18 @@ function Page({ navigation }: { navigation: DocsNavigation }) {
<DocsLayout navigation={navigation}>
<Markdown>
<div className="">
<div className="mt-[105px]">
<h1 className="text-4xl font-bold">Spacedrive Docs</h1>
<p className="text-lg text-gray-400">
Welcome to the Spacedrive documentation. Here you can find all the information you
need to get started with Spacedrive.
</p>
<a
className="transition text-primary-600 hover:text-primary-500"
href="/docs/product/getting-started/introduction"
>
Get Started
</a>
</div>
</Markdown>
</DocsLayout>