1+ /* eslint-disable react/require-default-props */
12/* eslint-disable import/no-unresolved */
23/* eslint-disable @typescript-eslint/no-var-requires */
34/* eslint-disable global-require */
@@ -7,7 +8,9 @@ import styles from './styles.module.css'
78
89type FeatureItem = {
910 title : string
10- Svg : React . ComponentType < React . ComponentProps < 'svg' > >
11+ Svg ?: React . ComponentType < React . ComponentProps < 'svg' > >
12+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, react/no-unused-prop-types
13+ src ?: any
1114 link : string
1215}
1316
@@ -24,6 +27,14 @@ const FeatureList: FeatureItem[] = [
2427 } ,
2528]
2629
30+ const SponsorList : FeatureItem [ ] = [
31+ {
32+ title : 'Frigade' ,
33+ src : require ( '@site/static/img/sponsors/frigade.png' ) . default ,
34+ link : 'https://frigade.com/?source=react-tooltip' ,
35+ } ,
36+ ]
37+
2738function Feature ( { title, Svg, link } : FeatureItem ) {
2839 return (
2940 < div className = { clsx ( 'col col--6' ) } >
@@ -39,6 +50,21 @@ function Feature({ title, Svg, link }: FeatureItem) {
3950export default function HomepageSponsored ( ) : JSX . Element {
4051 return (
4152 < section className = { styles . features } >
53+ < div className = "container" >
54+ < h3 className = { styles . sponsoredTitle } > Sponsored by</ h3 >
55+ < div className = "row" >
56+ { SponsorList . map ( ( { link, title, src } , idx ) => (
57+ // eslint-disable-next-line react/no-array-index-key
58+ < div key = { idx } className = { clsx ( 'col col--12' ) } >
59+ < div className = "text--center" >
60+ < a href = { link } title = { title } target = "_blank" rel = "noreferrer" >
61+ < img src = { src } alt = { title } width = { 480 } />
62+ </ a >
63+ </ div >
64+ </ div >
65+ ) ) }
66+ </ div >
67+ </ div >
4268 < div className = "container" >
4369 < h3 className = { styles . sponsoredTitle } > Powered by</ h3 >
4470 < div className = "row" >
0 commit comments