File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed
components/Common/Partners Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11import Skeleton from '@node-core/ui-components/Common/Skeleton' ;
2- import type { ComponentProps , FC , ReactElement } from 'react' ;
2+ import type { ComponentProps , FC } from 'react' ;
33import { cloneElement } from 'react' ;
44
5+ import Link from '#site/components/Link' ;
56import type { Partners } from '#site/types' ;
67
7- import Button from '../../Button' ;
8-
98type ParnetsIconProps = Partners & ComponentProps < typeof Skeleton > ;
109
1110const PartnersIcon : FC < ParnetsIconProps > = ( { href, logo, loading } ) => {
1211 return (
13- < Skeleton loading = { loading } >
14- < Button href = { href } kind = "secondary" >
15- { cloneElement ( logo as ReactElement ) }
16- </ Button >
12+ < Skeleton loading = { loading } className = "h-12 w-12 p-1" >
13+ < Link
14+ kind = "secondary"
15+ href = { href }
16+ className = "flex h-12 w-auto min-w-12 items-center justify-center rounded-lg p-1 hover:bg-neutral-800"
17+ >
18+ { cloneElement ( logo , {
19+ className : 'h-12 w-12' ,
20+ } ) }
21+ </ Link >
1722 </ Skeleton >
1823 ) ;
1924} ;
Original file line number Diff line number Diff line change 1+ @reference "../../../../styles/index.css" ;
2+
13.partnersIconList {
24 @apply flex
35 flex-row
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ const PartnersIconList: FC<PartnersIconListProps> = ({ maxLength = 4 }) => {
3333 const renderSponsorsAnimation = setTimeout ( ( ) => {
3434 initialRenderer . current = false ;
3535
36- setSeedList ( randomPartnerList ( PARTNERS , maxLength , 1 ) ) ;
36+ setSeedList ( randomPartnerList ( PARTNERS , maxLength ) ) ;
3737 } , 0 ) ;
3838
3939 return ( ) => clearTimeout ( renderSponsorsAnimation ) ;
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ layout: home
2727 <small className = " !text-xs" >for Node.js 18 and below</small >
2828 </Button >
2929
30+ <span className = ' xs:mt-4' >Sponsored by:</span >
3031 <div className = ' flex flex-row gap-4 items-center' >
3132 <PartnersIconList />
3233 <Link href = " /about/partners" >and more...</Link >
You can’t perform that action at this time.
0 commit comments