1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/components/landing/GuideCard.tsx
2023-01-17 13:19:28 +00:00

26 lines
770 B
TypeScript

import type { FeaturedLink } from 'components/context/ProductLandingContext'
type Props = {
guide: FeaturedLink
}
export const GuideCard = ({ guide }: Props) => {
const authors = guide.authors && guide.authors.length > 0 ? guide.authors : ['GitHub']
const authorString = `@${authors.join(', @')}`
return (
<li className="col-lg-4 col-12 mb-4 list-style-none">
<a
className="Box color-shadow-medium height-full d-block hover-shadow-large no-underline color-fg-default p-5"
href={guide.href}
>
<h3 className="f2">{guide.title}</h3>
<p className="mt-2 mb-4 color-fg-muted">{guide.intro || ''}</p>
<footer className="d-flex">
<div>{authorString}</div>
</footer>
</a>
</li>
)
}