Update layout, navigation, and content for documentation pages

Enhanced the documentation pages by updating the layout with aesthetic adjustments and adding better navigation elements. New documentation content was added: 'Authentication', 'Getting Started', and their child pages. This ensures users have a clearer path when viewing, navigating, and accessing the information they need. "Read more" fallback label was added to the documentation cards for better accessibility.
This commit is contained in:
giancarlo
2024-04-11 11:27:16 +08:00
parent 3e7a567786
commit 1c344d0d7f
12 changed files with 167 additions and 29 deletions

View File

@@ -4,6 +4,7 @@ import { notFound } from 'next/navigation';
import { ContentRenderer, createCmsClient } from '@kit/cms';
import { If } from '@kit/ui/if';
import { Separator } from '@kit/ui/separator';
import { withI18n } from '~/lib/i18n/with-i18n';
@@ -56,7 +57,9 @@ async function DocumentationPage({ params }: PageParams) {
<ContentRenderer content={page.content} />
</article>
<If condition={page.children}>
<If condition={page.children.length > 0}>
<Separator />
<DocsCards cards={page.children ?? []} />
</If>
</div>