Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

fix(website): restore doc card title color (#1535)

Corentin Thomasset1210e2b36701
diff --git a/apps/website/src/docs/components/DocLinkCard.astro b/apps/website/src/docs/components/DocLinkCard.astro
index 6f5923b0..fbeba46b 100644
--- a/apps/website/src/docs/components/DocLinkCard.astro
+++ b/apps/website/src/docs/components/DocLinkCard.astro
@@ -3,9 +3,9 @@ import type { Locale } from '../../i18n/i18n.constants';
import { getDocUrl } from '../docs.models';
type Props = {
- title: string;
- docId: string;
- icon?: string;
+ title: string;
+ docId: string;
+ icon?: string;
};
const { title, docId, icon } = Astro.props;
@@ -13,10 +13,16 @@ const locale = Astro.params.locale as Locale | undefined;
---
<a
- href={getDocUrl({ docId, locale })}
- class="not-prose group block transition rounded-lg px-6 py-4 border hover:border-primary"
+ href={getDocUrl({ docId, locale })}
+ class="not-prose group block transition rounded-lg px-6 py-4 border hover:border-primary"
>
- {icon && <div class={`${icon} size-7 text-primary`} aria-hidden="true"></div>}
- <div class="transition group-hover:text-primary text-lg font-semibold mt-3">{title}</div>
- <div class="text-base text-muted-foreground"><slot /></div>
+ {icon && (
+ <div class={`${icon} size-7 text-primary`} aria-hidden="true"></div>
+ )}
+ <div class="transition text-foreground group-hover:text-primary text-lg font-semibold mt-3">
+ {title}
+ </div>
+ <div class="text-base text-muted-foreground">
+ <slot />
+ </div>
</a>