@@ -8,28 +8,9 @@ import {
88} from "./Sponsors.style" ;
99import { SectionWrapper } from "@components/SectionWrapper/SectionWrapper" ;
1010import TitleSection from "@components/SectionTitle/TitleSection" ;
11- import { BasicSponsor } from "@views/Home/components/Sponsors/BasicSponsor" ;
12- import { MediaPartners } from "@views/Home/components/Sponsors/MediaPartners" ;
13- import { RegularSponsors } from "@views/Home/components/Sponsors/RegularSponsors" ;
14- import { PremiumSponsors } from "@views/Home/components/Sponsors/PremiumSponsors" ;
15- import { TopSponsors } from "@views/Home/components/Sponsors/TopSponsors" ;
16- import { Communities } from "@views/Home/components/Sponsors/Communities" ;
17- import { Supporters } from "@views/Home/components/Sponsors/Supporters" ;
11+ import { SponsorTier } from "@views/Home/components/Sponsors/SponsorTier" ;
1812import { sponsors } from "./SponsorsData" ;
1913
20- export const buildSlashes = ( module : number ) => {
21- const slashesElement = document . getElementById ( "Slashes" ) ;
22-
23- const slashesWidth = slashesElement ?. offsetWidth ?? 0 ;
24-
25- let slashes = "" ;
26- for ( let index = 0 ; index < slashesWidth ; index ++ ) {
27- if ( index % module === 0 ) slashes += "/ " ;
28- }
29-
30- return slashes ;
31- } ;
32-
3314const Sponsors : FC < React . PropsWithChildren < unknown > > = ( ) => (
3415 < SectionWrapper color = { Color . WHITE } >
3516 < StyledSponsorsContainer id = "sponsors" >
@@ -52,15 +33,66 @@ const Sponsors: FC<React.PropsWithChildren<unknown>> = () => (
5233 src = "/images/LessThanBlueWhiteIcon.svg"
5334 />
5435 </ StyledTitleContainer >
55- < TopSponsors sponsors = { sponsors . top } />
56- < PremiumSponsors sponsors = { sponsors . premium } />
57- < RegularSponsors sponsors = { sponsors . regular } />
58- < BasicSponsor sponsors = { sponsors . basic } />
59- < Communities sponsors = { sponsors . communities } />
60- < Supporters sponsors = { sponsors . supporters } />
61- < MediaPartners sponsors = { sponsors . media_partners } />
36+ < SponsorTier
37+ sponsors = { sponsors . top }
38+ title = "TOP"
39+ id = "top-sponsors"
40+ badgeColor = { Color . BLUE }
41+ badgePosition = "left"
42+ imageSize = "premium"
43+ />
44+ < SponsorTier
45+ sponsors = { sponsors . premium }
46+ title = "PREMIUM"
47+ id = "premium-sponsors"
48+ badgeColor = { Color . DARK_BLUE }
49+ badgePosition = "right"
50+ imageSize = "premium"
51+ />
52+ < SponsorTier
53+ sponsors = { sponsors . regular }
54+ title = "REGULAR"
55+ id = "regular-sponsors"
56+ badgeColor = { Color . DARK_BLUE }
57+ badgePosition = "left"
58+ imageSize = "regular"
59+ />
60+ < SponsorTier
61+ sponsors = { sponsors . basic }
62+ title = "BASIC"
63+ id = "basic-sponsors"
64+ badgeColor = { Color . DARK_BLUE }
65+ badgePosition = "right"
66+ imageSize = "nano"
67+ />
68+ < SponsorTier
69+ sponsors = { sponsors . communities }
70+ title = "COMMUNITIES"
71+ id = "communities"
72+ badgeColor = { Color . DARK_BLUE }
73+ badgePosition = "left"
74+ imageSize = "micro"
75+ />
76+ < SponsorTier
77+ sponsors = { sponsors . supporters }
78+ title = "SUPPORTERS"
79+ id = "supporters"
80+ badgeColor = { Color . DARK_BLUE }
81+ badgePosition = "right"
82+ imageSize = "micro"
83+ testId = "supporters"
84+ />
85+ < SponsorTier
86+ sponsors = { sponsors . media_partners }
87+ title = "MEDIA PARTNERS"
88+ id = "media-partners"
89+ badgeColor = { Color . DARK_BLUE }
90+ badgePosition = "left"
91+ imageSize = "micro"
92+ />
6293 </ StyledSponsorsContainer >
6394 </ SectionWrapper >
6495) ;
6596
6697export default Sponsors ;
98+
0 commit comments