MCPcopy Create free account
hub / github.com/github/docs / GuideCard

Function GuideCard

components/landing/GuideCard.tsx:6–25  ·  view source on GitHub ↗
({ guide }: Props)

Source from the content-addressed store, hash-verified

4 guide: FeaturedLink
5}
6export const GuideCard = ({ guide }: Props) => {
7 const authors = guide.authors && guide.authors.length > 0 ? guide.authors : ['GitHub']
8 const authorString = `@${authors.join(', @')}`
9
10 return (
11 <li className="col-lg-4 col-12 mb-4 list-style-none">
12 <a
13 className="Box color-shadow-medium height-full d-block hover-shadow-large no-underline color-fg-default p-5"
14 href={guide.href}
15 >
16 <h3 className="f2">{guide.title}</h3>
17 <p className="mt-2 mb-4 color-fg-muted">{guide.intro || ''}</p>
18
19 <footer className="d-flex">
20 <div>{authorString}</div>
21 </footer>
22 </a>
23 </li>
24 )
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected