@@ -4,6 +4,7 @@ import { Cell, Grid, Row } from '@material/react-layout-grid'
44import { Headline2 , Headline3 } from '@material/react-typography'
55
66import { SponsorBanner as Banner } from '../../atoms/SponsorBanner'
7+ import { PersonalSponsorAvatar } from '../../atoms/PersonalSponsorAvatar'
78import type { Props as SponsorProps } from '../../atoms/SponsorBanner'
89import type { Sponsor as Resource } from '../../resources'
910
@@ -17,11 +18,13 @@ export function Sponsors({
1718 gold,
1819 silver,
1920 supporter,
21+ personal,
2022} : {
2123 platinum : Resource [ ] ,
2224 gold : Resource [ ] ,
2325 silver : Resource [ ] ,
2426 supporter : Resource [ ] ,
27+ personal : Resource [ ] ,
2528} ) {
2629 return (
2730 < Grid >
@@ -43,7 +46,7 @@ export function Sponsors({
4346 < Headline3 > Platinum</ Headline3 >
4447 </ Cell >
4548 { platinum . map ( sponsor => (
46- < Cell columns = { 12 } style = { style } >
49+ < Cell columns = { 12 } style = { style } key = { sponsor . key } >
4750 { Banner ( toSponsor ( sponsor ) ) }
4851 </ Cell >
4952 ) ) }
@@ -53,7 +56,7 @@ export function Sponsors({
5356 </ Cell >
5457 < Row >
5558 { gold . map ( sponsor => (
56- < Cell columns = { 6 } desktopColumns = { 6 } style = { style } >
59+ < Cell columns = { 6 } desktopColumns = { 6 } style = { style } key = { sponsor . key } >
5760 { Banner ( toSponsor ( sponsor ) ) }
5861 </ Cell >
5962 ) ) }
@@ -63,7 +66,7 @@ export function Sponsors({
6366 </ Cell >
6467 < Row >
6568 { silver . map ( sponsor => (
66- < Cell columns = { 4 } desktopColumns = { 3 } style = { style } >
69+ < Cell columns = { 4 } desktopColumns = { 3 } style = { style } key = { sponsor . key } >
6770 { Banner ( toSponsor ( sponsor ) ) }
6871 </ Cell >
6972 ) ) }
@@ -73,11 +76,30 @@ export function Sponsors({
7376 </ Cell >
7477 < Row >
7578 { supporter . map ( sponsor => (
76- < Cell columns = { 4 } desktopColumns = { 3 } style = { style } >
79+ < Cell columns = { 4 } desktopColumns = { 3 } style = { style } key = { sponsor . key } >
7780 { Banner ( toSponsor ( sponsor ) ) }
7881 </ Cell >
7982 ) ) }
8083 </ Row >
84+ { personal . length > 0 && (
85+ < >
86+ < Cell >
87+ < Headline3 > Personal Sponsors</ Headline3 >
88+ </ Cell >
89+ < Row >
90+ < Cell columns = { 12 } style = { { textAlign : 'left' , padding : '20px' } } >
91+ { personal . map ( sponsor => (
92+ < PersonalSponsorAvatar
93+ key = { sponsor . key }
94+ name = { sponsor . name }
95+ href = { sponsor . url }
96+ src = { sponsor . banner }
97+ />
98+ ) ) }
99+ </ Cell >
100+ </ Row >
101+ </ >
102+ ) }
81103 </ Grid >
82104 )
83105}
0 commit comments