()
| 6 | import { UserCard } from 'components/landing/UserCard' |
| 7 | |
| 8 | export const SponsorsExamples = () => { |
| 9 | const { productUserExamples } = useProductLandingContext() |
| 10 | const { t } = useTranslation('product_landing') |
| 11 | |
| 12 | if (!productUserExamples) { |
| 13 | return null |
| 14 | } |
| 15 | |
| 16 | return ( |
| 17 | <div> |
| 18 | <div className="d-flex flex-wrap gutter"> |
| 19 | {productUserExamples.slice(0, 6).map((user) => { |
| 20 | return ( |
| 21 | <div key={user.username} className="col-12 col-xl-4 col-lg-6 mb-4"> |
| 22 | <UserCard href={`https://github.com/sponsors/${user.username}`} user={user} /> |
| 23 | </div> |
| 24 | ) |
| 25 | })} |
| 26 | </div> |
| 27 | <Link href={`https://github.com/sponsors/community`} className="btn btn-outline float-right"> |
| 28 | {t('explore_people_and_projects')} <ArrowRightIcon /> |
| 29 | </Link> |
| 30 | </div> |
| 31 | ) |
| 32 | } |
nothing calls this directly
no test coverage detected